|
MediaWiki
master
|

Public Member Functions | |
| __construct (SiteStore $store) | |
| getExceptionCallback () | |
| importFromFile ($file) | |
| importFromXML ($xml) | |
| makeSite (DOMElement $siteElement) | |
| setExceptionCallback ($exceptionCallback) | |
Private Member Functions | |
| getAttributeValue (DOMElement $element, $name, $default=false) | |
| getChildText (DOMElement $element, $name, $default=false) | |
| handleException (Exception $ex) | |
| hasChild (DOMElement $element, $name) | |
| importFromDOM (DOMElement $root) | |
| makeSiteList (DOMElement $root) | |
Private Attributes | |
| callable null | $exceptionCallback |
| SiteStore | $store |
Definition at line 30 of file SiteImporter.php.
| SiteImporter::__construct | ( | SiteStore | $store | ) |
| SiteStore | $store |
Definition at line 45 of file SiteImporter.php.
|
private |
| DOMElement | $element | |
| $name | ||
| string | null | bool | $default |
| MWException | If the attribute is not found and no default is provided |
Definition at line 200 of file SiteImporter.php.
References $name.
Referenced by makeSite().
|
private |
| DOMElement | $element | |
| string | $name | |
| string | null | bool | $default |
| MWException | If the child element is not found and no default is provided |
Definition at line 224 of file SiteImporter.php.
References $name.
Referenced by hasChild(), and makeSite().
| SiteImporter::getExceptionCallback | ( | ) |
|
private |
| Exception | $ex |
Definition at line 255 of file SiteImporter.php.
References wfLogWarning().
Referenced by makeSiteList().
|
private |
| DOMElement | $element | |
| string | $name |
| MWException |
Definition at line 248 of file SiteImporter.php.
References $name, and getChildText().
Referenced by makeSite().
|
private |
| DOMElement | $root |
Definition at line 108 of file SiteImporter.php.
References makeSiteList(), and store.
Referenced by importFromXML().
| SiteImporter::importFromFile | ( | $file | ) |
| SiteImporter::importFromXML | ( | $xml | ) |
| string | $xml |
| InvalidArgumentException |
Definition at line 81 of file SiteImporter.php.
References as, and importFromDOM().
Referenced by importFromFile().
| SiteImporter::makeSite | ( | DOMElement | $siteElement | ) |
| DOMElement | $siteElement |
| InvalidArgumentException |
Definition at line 155 of file SiteImporter.php.
References $path, $type, getAttributeValue(), getChildText(), Site\GROUP_NONE, hasChild(), Site\newForType(), Site\SOURCE_LOCAL, and Site\TYPE_UNKNOWN.
Referenced by makeSiteList().
|
private |
| DOMElement | $root |
Definition at line 118 of file SiteImporter.php.
References handleException(), makeSite(), and store.
Referenced by importFromDOM().
| SiteImporter::setExceptionCallback | ( | $exceptionCallback | ) |
| callable | $exceptionCallback |
Definition at line 59 of file SiteImporter.php.
References $exceptionCallback.
|
private |
Definition at line 40 of file SiteImporter.php.
Referenced by getExceptionCallback(), and setExceptionCallback().
|
private |
Definition at line 35 of file SiteImporter.php.
Referenced by __construct().