Definition at line 30 of file SiteImporter.php.
◆ __construct()
SiteImporter::__construct |
( |
SiteStore | $store | ) |
|
◆ getAttributeValue()
SiteImporter::getAttributeValue |
( |
DOMElement | $element, |
|
|
| $name, |
|
|
| $default = false ) |
|
private |
- Parameters
-
DOMElement | $element | |
string | $name | |
string | null | bool | $default | |
- Returns
- null|string
- Exceptions
-
MWException | If the attribute is not found and no default is provided |
Definition at line 208 of file SiteImporter.php.
Referenced by makeSite().
◆ getChildText()
SiteImporter::getChildText |
( |
DOMElement | $element, |
|
|
| $name, |
|
|
| $default = false ) |
|
private |
- Parameters
-
DOMElement | $element | |
string | $name | |
string | null | bool | $default | |
- Returns
- null|string
- Exceptions
-
MWException | If the child element is not found and no default is provided |
Definition at line 232 of file SiteImporter.php.
Referenced by hasChild(), and makeSite().
◆ getExceptionCallback()
SiteImporter::getExceptionCallback |
( |
| ) |
|
◆ handleException()
SiteImporter::handleException |
( |
Exception | $ex | ) |
|
|
private |
◆ hasChild()
SiteImporter::hasChild |
( |
DOMElement | $element, |
|
|
| $name ) |
|
private |
◆ importFromDOM()
SiteImporter::importFromDOM |
( |
DOMElement | $root | ) |
|
|
private |
◆ importFromFile()
SiteImporter::importFromFile |
( |
| $file | ) |
|
◆ importFromXML()
SiteImporter::importFromXML |
( |
| $xml | ) |
|
◆ makeSite()
SiteImporter::makeSite |
( |
DOMElement | $siteElement | ) |
|
◆ makeSiteList()
SiteImporter::makeSiteList |
( |
DOMElement | $root | ) |
|
|
private |
◆ setExceptionCallback()
SiteImporter::setExceptionCallback |
( |
| $exceptionCallback | ) |
|
◆ $exceptionCallback
callable null SiteImporter::$exceptionCallback |
|
private |
◆ $store
The documentation for this class was generated from the following file: