TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPushParser Class Reference
Inheritance diagram for TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPushParser:
TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractXmlParser

Public Member Functions

 __construct ()
 
 parseXml ($file)
 
- Public Member Functions inherited from TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser
 getAll ()
 
 getCountry ()
 
 getHost ()
 
 getPath ()
 
 getSponsorlink ()
 
 getSponsorlogo ()
 
 getSponsorname ()
 
 getTitle ()
 
- Public Member Functions inherited from TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractXmlParser
 attach (\SplObserver $observer)
 
 detach (\SplObserver $observer)
 
 notify ()
 
 isAvailable ()
 
 parseXml ($file)
 

Protected Member Functions

 createParser ()
 
 startElement ($parser, $elementName, $attrs)
 
 endElement ($parser, $elementName)
 
 characterData ($parser, $data)
 
- Protected Member Functions inherited from TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser
 resetProperties ()
 
- Protected Member Functions inherited from TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractXmlParser
 createParser ()
 

Protected Attributes

 $element
 
- Protected Attributes inherited from TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser
 $country = null
 
 $host = null
 
 $path = null
 
 $sponsorlink = null
 
 $sponsorlogo = null
 
 $sponsorname = null
 
 $title = null
 
- Protected Attributes inherited from TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractXmlParser
 $objXml
 
 $requiredPhpExtensions
 
 $observers = []
 

Detailed Description

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+!

Since
2010-11-17

Definition at line 28 of file MirrorXmlPushParser.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPushParser::__construct ( )

Class constructor.

Definition at line 38 of file MirrorXmlPushParser.php.

Member Function Documentation

◆ characterData()

TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPushParser::characterData (   $parser,
  $data 
)
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

See also
xml_set_character_data_handler
Parameters
resource$parserparser resource
string$dataan element's value
Returns
void

Definition at line 135 of file MirrorXmlPushParser.php.

◆ createParser()

TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPushParser::createParser ( )
protected

Create required parser

Returns
void

Definition at line 48 of file MirrorXmlPushParser.php.

Referenced by TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPushParser\parseXml().

◆ endElement()

TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPushParser::endElement (   $parser,
  $elementName 
)
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

See also
xml_set_element_handler
Parameters
resource$parserparser resource
string$elementNameelement name at parser's current position
Returns
void

Definition at line 113 of file MirrorXmlPushParser.php.

References TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractXmlParser\notify(), and TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\resetProperties().

◆ parseXml()

TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPushParser::parseXml (   $file)

Method parses a mirror.xml file.

Parameters
string$fileGZIP stream resource
Returns
void
Exceptions

Definition at line 61 of file MirrorXmlPushParser.php.

References TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPushParser\createParser().

◆ startElement()

TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPushParser::startElement (   $parser,
  $elementName,
  $attrs 
)
protected

Method is invoked when parser accesses start tag of an element.

Parameters
resource$parserparser resource
string$elementNameelement name at parser's current position
array$attrsarray of an element's attributes if available
Returns
void

Definition at line 95 of file MirrorXmlPushParser.php.

Member Data Documentation

◆ $element

TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPushParser::$element
protected

Definition at line 33 of file MirrorXmlPushParser.php.