![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
parseXml ($file) | |
![]() | |
getAll () | |
getCountry () | |
getHost () | |
getPath () | |
getSponsorlink () | |
getSponsorlogo () | |
getSponsorname () | |
getTitle () | |
![]() | |
attach (\SplObserver $observer) | |
detach (\SplObserver $observer) | |
notify () | |
isAvailable () | |
parseXml ($file) | |
Protected Member Functions | |
createParser () | |
startElement ($elementName) | |
endElement ($elementName) | |
getElementValue (&$elementName) | |
![]() | |
resetProperties () | |
![]() | |
createParser () | |
Additional Inherited Members | |
![]() | |
$country = null | |
$host = null | |
$path = null | |
$sponsorlink = null | |
$sponsorlogo = null | |
$sponsorname = null | |
$title = null | |
Parser for TYPO3's mirrors.xml file.
Depends on PHP ext/xmlreader which should be available with PHP >= 5.1.0. 2010-02-19
Definition at line 24 of file MirrorXmlPullParser.php.
__construct | ( | ) |
|
protected |
Create required parser
Definition at line 41 of file MirrorXmlPullParser.php.
Referenced by MirrorXmlPullParser\parseXml().
|
protected |
Method is invoked when parser accesses end tag of an element.
string | $elementName | element name at parser's current position |
Definition at line 119 of file MirrorXmlPullParser.php.
References AbstractXmlParser\notify(), and AbstractMirrorXmlParser\resetProperties().
Referenced by MirrorXmlPullParser\parseXml().
|
protected |
Method returns the value of an element at XMLReader's current position.
Method will read until it finds the end of the given element. If element has no value, method returns NULL.
string | &$elementName | name of element to retrieve it's value from |
Definition at line 141 of file MirrorXmlPullParser.php.
Referenced by MirrorXmlPullParser\startElement().
parseXml | ( | $file | ) |
Method parses an extensions.xml file.
string | $file | file resource, typically a stream |
\TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException | in case of XML parser errors |
Definition at line 53 of file MirrorXmlPullParser.php.
References MirrorXmlPullParser\createParser(), MirrorXmlPullParser\endElement(), and MirrorXmlPullParser\startElement().
|
protected |
Method is invoked when parser accesses start tag of an element.
string | $elementName | element name at parser's current position |
Definition at line 83 of file MirrorXmlPullParser.php.
References MirrorXmlPullParser\getElementValue(), and path.
Referenced by MirrorXmlPullParser\parseXml().