TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPullParser Class Reference
Inheritance diagram for TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPullParser:
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 ($elementName)
 
 endElement ($elementName)
 
 getElementValue (&$elementName)
 
- Protected Member Functions inherited from TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser
 resetProperties ()
 
- Protected Member Functions inherited from TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractXmlParser
 createParser ()
 

Additional Inherited Members

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

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

Class constructor.

public

Definition at line 31 of file MirrorXmlPullParser.php.

Member Function Documentation

◆ createParser()

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

Create required parser

Returns
void

Definition at line 41 of file MirrorXmlPullParser.php.

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

◆ endElement()

TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPullParser::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 TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractXmlParser\notify(), and TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\resetProperties().

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

◆ getElementValue()

TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPullParser::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 TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPullParser\startElement().

◆ parseXml()

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

Method parses an extensions.xml file.

Parameters
string$filefile resource, typically a stream
Returns
void
Exceptions

Definition at line 53 of file MirrorXmlPullParser.php.

References TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPullParser\createParser(), TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPullParser\endElement(), and TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPullParser\startElement().

◆ startElement()

TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPullParser::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 TYPO3\CMS\Extensionmanager\Utility\Parser\MirrorXmlPullParser\getElementValue().

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