Documentation TYPO3 par Ameos

SC_mod_tools_em_xmlhandler Class Reference

List of all members.

Public Member Functions

 searchExtensionsXML ($search, $owner='', $order='', $allExt=false, $allVer=false, $offset=0, $limit=500)
 countExtensions ()
 loadExtensionsXML ()
 freeExtensionsXML ()
 removeObsolete (&$extensions)
 getReviewState ($extKey, $version)
 checkReviewState (&$extensions)
 checkReviewStateGlobal ()
 startElement ($parser, $name, $attrs)
 endElement ($parser, $name)
 characterData ($parser, $data)
 parseExtensionsXML ($filename)
 storeXMLResult ()
 parseMirrorsXML ($string)
 parseL10nXML ($string)

Public Attributes

 $emObj
 $extXMLResult = array()
 $extensionsXML = array()
 $reviewStates = null
 $useUnchecked = false
 $useObsolete = false

Detailed Description

Definition at line 38 of file class.em_xmlhandler.php.


Member Function Documentation

SC_mod_tools_em_xmlhandler::searchExtensionsXML ( search,
owner = '',
order = '',
allExt = false,
allVer = false,
offset = 0,
limit = 500 
)

Reduces the entries in $this->extensionsXML to the latest version per extension and removes entries not matching the search parameter

Parameters:
string $search The list of extensions is reduced to entries matching this. If empty, the full list is returned.
string $owner If set only extensions of that user are fetched
string $order A field to order the result by
boolean $allExt If set also unreviewed and obsolete extensions are shown
boolean $allVer If set returns all version of an extension, otherwise only the last
integer $offset Offset to return result from (goes into LIMIT clause)
integer $limit Maximum number of entries to return (goes into LIMIT clause)
Returns:
void

Definition at line 64 of file class.em_xmlhandler.php.

Referenced by loadExtensionsXML().

SC_mod_tools_em_xmlhandler::loadExtensionsXML (  ) 

Loads the pre-parsed extension list

Returns:
boolean true on success, false on error

Definition at line 152 of file class.em_xmlhandler.php.

References searchExtensionsXML().

SC_mod_tools_em_xmlhandler::freeExtensionsXML (  ) 

Frees the pre-parsed extension list

Returns:
void

Definition at line 161 of file class.em_xmlhandler.php.

SC_mod_tools_em_xmlhandler::removeObsolete ( &$  extensions  ) 

Removes all extension with a certain state from the list

Parameters:
array &$extensions The "versions" subpart of the extension list
Returns:
void

Definition at line 172 of file class.em_xmlhandler.php.

SC_mod_tools_em_xmlhandler::getReviewState ( extKey,
version 
)

Returns the reviewstate of a specific extension-key/version

Parameters:
string $extKey
string $version: ...
Returns:
integer Review state, if none is set 0 is returned as default.

Definition at line 189 of file class.em_xmlhandler.php.

SC_mod_tools_em_xmlhandler::checkReviewState ( &$  extensions  ) 

Removes all extension versions from $extensions that have a reviewstate<1, unless explicitly allowed

Parameters:
array &$extensions The "versions" subpart of the extension list
Returns:
void

Definition at line 205 of file class.em_xmlhandler.php.

SC_mod_tools_em_xmlhandler::checkReviewStateGlobal (  ) 

Removes all extension versions from the list of available extensions that have a reviewstate<1, unless explicitly allowed

Returns:
void

Definition at line 220 of file class.em_xmlhandler.php.

SC_mod_tools_em_xmlhandler::startElement ( parser,
name,
attrs 
)

Enter description here...

Parameters:
unknown_type $parser
unknown_type $name
unknown_type $attrs
Returns:
[type] ...

Definition at line 244 of file class.em_xmlhandler.php.

Referenced by parseExtensionsXML().

SC_mod_tools_em_xmlhandler::endElement ( parser,
name 
)

Enter description here...

Parameters:
unknown_type $parser
unknown_type $name
Returns:
[type] ...

Definition at line 267 of file class.em_xmlhandler.php.

Referenced by parseExtensionsXML().

SC_mod_tools_em_xmlhandler::characterData ( parser,
data 
)

Enter description here...

Parameters:
unknown_type $parser
unknown_type $data
Returns:
[type] ...

Definition at line 287 of file class.em_xmlhandler.php.

Referenced by parseExtensionsXML().

SC_mod_tools_em_xmlhandler::parseExtensionsXML ( filename  ) 

Parses content of mirrors.xml into a suitable array

Parameters:
string XML data file to parse
Returns:
string HTLML output informing about result

Definition at line 315 of file class.em_xmlhandler.php.

References characterData(), endElement(), and startElement().

SC_mod_tools_em_xmlhandler::parseMirrorsXML ( string  ) 

Parses content of mirrors.xml into a suitable array

Parameters:
string $string: XML data to parse
Returns:
string HTLML output informing about result

Definition at line 475 of file class.em_xmlhandler.php.

SC_mod_tools_em_xmlhandler::parseL10nXML ( string  ) 

Parses content of *-l10n.xml into a suitable array

Parameters:
string $string: XML data to parse
Returns:
array Array representation of XML data

Definition at line 552 of file class.em_xmlhandler.php.


The documentation for this class was generated from the following file:


Généré par L'expert TYPO3 avec  doxygen 1.4.6