TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
MirrorXmlPullParser Class Reference
Inheritance diagram for MirrorXmlPullParser:
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 ($elementName)
 
 endElement ($elementName)
 
 getElementValue (&$elementName)
 
- Protected Member Functions inherited from AbstractMirrorXmlParser
 resetProperties ()
 
- Protected Member Functions inherited from AbstractXmlParser
 createParser ()
 

Additional Inherited Members

- Protected Attributes inherited from AbstractMirrorXmlParser
 $country = null
 
 $host = null
 
 $path = null
 
 $sponsorlink = null
 
 $sponsorlogo = null
 
 $sponsorname = null
 
 $title = null
 

Detailed Description

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.

Constructor & Destructor Documentation

__construct ( )

Class constructor.

public

Definition at line 31 of file MirrorXmlPullParser.php.

Member Function Documentation

createParser ( )
protected

Create required parser

Returns
void

Definition at line 41 of file MirrorXmlPullParser.php.

Referenced by MirrorXmlPullParser\parseXml().

endElement (   $elementName)
protected

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

Parameters
string$elementNameelement name at parser's current position
Returns
void
See Also
startElement()

Definition at line 119 of file MirrorXmlPullParser.php.

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

Referenced by MirrorXmlPullParser\parseXml().

getElementValue ( $elementName)
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.

Parameters
string&$elementNamename of element to retrieve it's value from
Returns
string an element's value if it has a value, otherwise NULL

Definition at line 141 of file MirrorXmlPullParser.php.

Referenced by MirrorXmlPullParser\startElement().

parseXml (   $file)

Method parses an extensions.xml file.

Parameters
string$filefile resource, typically a stream
Returns
void
Exceptions
\TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerExceptionin case of XML parser errors

Definition at line 53 of file MirrorXmlPullParser.php.

References MirrorXmlPullParser\createParser(), MirrorXmlPullParser\endElement(), and MirrorXmlPullParser\startElement().

startElement (   $elementName)
protected

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

Parameters
string$elementNameelement name at parser's current position
Returns
void
See Also
endElement()

Definition at line 83 of file MirrorXmlPullParser.php.

References MirrorXmlPullParser\getElementValue(), and path.

Referenced by MirrorXmlPullParser\parseXml().