TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MirrorXmlPushParser Class Reference
Inheritance diagram for MirrorXmlPushParser:
AbstractMirrorXmlParser AbstractXmlParser

Public Member Functions

 __construct ()
 
 parseXml ($file)
 
- Public Member Functions inherited from AbstractMirrorXmlParser
 getAll ()
 
 getCountry ()
 
 getHost ()
 
 getPath ()
 
 getSponsorlink ()
 
 getSponsorlogo ()
 
 getSponsorname ()
 
 getTitle ()
 
- Public Member Functions inherited from 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 AbstractMirrorXmlParser
 resetProperties ()
 
- Protected Member Functions inherited from AbstractXmlParser
 createParser ()
 

Protected Attributes

 $element
 
- Protected Attributes inherited from AbstractMirrorXmlParser
 $country = null
 
 $host = null
 
 $path = null
 
 $sponsorlink = null
 
 $sponsorlogo = null
 
 $sponsorname = null
 
 $title = null
 
- Protected Attributes inherited from AbstractXmlParser
 $objXml
 
 $requiredPhpExtensions
 
 $observers = array()
 

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 ( )

Class constructor.

Definition at line 38 of file MirrorXmlPushParser.php.

Member Function Documentation

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 132 of file MirrorXmlPushParser.php.

References path.

createParser ( )
protected

Create required parser

Returns
void

Definition at line 48 of file MirrorXmlPushParser.php.

Referenced by MirrorXmlPushParser\parseXml().

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 110 of file MirrorXmlPushParser.php.

References AbstractXmlParser\notify(), and AbstractMirrorXmlParser\resetProperties().

parseXml (   $file)

Method parses a mirror.xml file.

Parameters
string$fileGZIP stream resource
Returns
void
Exceptions
\TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerExceptionin case of XML parser errors

Definition at line 61 of file MirrorXmlPushParser.php.

References MirrorXmlPushParser\createParser().

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 92 of file MirrorXmlPushParser.php.

Member Data Documentation

$element
protected

Definition at line 33 of file MirrorXmlPushParser.php.