![]() |
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 ($parser, $elementName, $attrs) | |
endElement ($parser, $elementName) | |
characterData ($parser, $data) | |
![]() | |
resetProperties () | |
![]() | |
createParser () | |
Protected Attributes | |
$element | |
![]() | |
$country = null | |
$host = null | |
$path = null | |
$sponsorlink = null | |
$sponsorlogo = null | |
$sponsorname = null | |
$title = null | |
![]() | |
$objXml | |
$requiredPhpExtensions | |
$observers = array() | |
Parser for TYPO3's mirrors.xml file.
Depends on PHP ext/xml which should be available with PHP 4+. This is the parser used in TYPO3 Core <= 4.3 (without the "collect all data in one array" behaviour). Notice: ext/xml has proven to be buggy with entities. Use at least PHP 5.2.9+ and libxml2 2.7.3+!
Definition at line 28 of file MirrorXmlPushParser.php.
__construct | ( | ) |
Class constructor.
Definition at line 38 of file MirrorXmlPushParser.php.
|
protected |
Method is invoked when parser accesses any character other than elements. Although the first parameter seems unused, it needs to be there for adherence to the API of xml_set_character_data_handler
resource | $parser | parser resource |
string | $data | an element's value |
Definition at line 132 of file MirrorXmlPushParser.php.
References path.
|
protected |
Create required parser
Definition at line 48 of file MirrorXmlPushParser.php.
Referenced by MirrorXmlPushParser\parseXml().
|
protected |
Method is invoked when parser accesses end tag of an element. Although the first parameter seems unused, it needs to be there for adherence to the API of xml_set_element_handler
resource | $parser | parser resource |
string | $elementName | element name at parser's current position |
Definition at line 110 of file MirrorXmlPushParser.php.
References AbstractXmlParser\notify(), and AbstractMirrorXmlParser\resetProperties().
parseXml | ( | $file | ) |
Method parses a mirror.xml file.
string | $file | GZIP stream resource |
\TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException | in case of XML parser errors |
Definition at line 61 of file MirrorXmlPushParser.php.
References MirrorXmlPushParser\createParser().
|
protected |
Method is invoked when parser accesses start tag of an element.
resource | $parser | parser resource |
string | $elementName | element name at parser's current position |
array | $attrs | array of an element's attributes if available |
Definition at line 92 of file MirrorXmlPushParser.php.
|
protected |
Definition at line 33 of file MirrorXmlPushParser.php.