TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ExtensionListUtility Class Reference
Inheritance diagram for ExtensionListUtility:

Public Member Functions

 import ($localExtensionListFile, $repositoryUid=null)
 
 update (\SplSubject $subject)
 

Protected Member Functions

 loadIntoDatabase (\SplSubject &$subject)
 

Protected Attributes

 $parser
 
 $sumRecords = 0
 
 $arrRows = array()
 
 $repositoryUid = 1
 
 $repositoryRepository
 
 $extensionRepository
 
 $extensionModel
 

Static Protected Attributes

static $fieldNames
 
static $fieldIndicesNoQuote = array(2, 3, 5, 11, 13, 14, 15, 16)
 

Detailed Description

Module: Extension manager - Extension list importer Importer object for extension list

Since
2010-02-10

Definition at line 24 of file ExtensionListUtility.php.

Member Function Documentation

import (   $localExtensionListFile,
  $repositoryUid = null 
)

Method initializes parsing of extension.xml.gz file.

Parameters
string$localExtensionListFileabsolute path to extension list xml.gz
int$repositoryUidUID of repository when inserting records into DB
Returns
int total number of imported extension versions

Definition at line 136 of file ExtensionListUtility.php.

References $GLOBALS, ExtensionListUtility\$repositoryUid, and ExtensionListUtility\$sumRecords.

loadIntoDatabase ( \SplSubject &  $subject)
protected

Method collects and stores extension version details into the database.

Parameters
\SplSubject | \TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractExtensionXmlParser&$subjecta subject notifying this observer
Returns
void

Definition at line 159 of file ExtensionListUtility.php.

References $GLOBALS, ExtensionListUtility\$repositoryUid, and ExtensionListUtility\$sumRecords.

Referenced by ExtensionListUtility\update().

update ( \SplSubject  $subject)

Method receives an update from a subject.

Parameters
\SplSubject$subjecta subject notifying this observer
Returns
void

Definition at line 200 of file ExtensionListUtility.php.

References ExtensionListUtility\loadIntoDatabase().

Member Data Documentation

$arrRows = array()
protected

Definition at line 45 of file ExtensionListUtility.php.

$extensionModel
protected

Definition at line 104 of file ExtensionListUtility.php.

$extensionRepository
protected

Definition at line 99 of file ExtensionListUtility.php.

$fieldIndicesNoQuote = array(2, 3, 5, 11, 13, 14, 15, 16)
staticprotected

Definition at line 80 of file ExtensionListUtility.php.

$fieldNames
staticprotected
Initial value:
= array(
'extension_key',
'version',
'integer_version',
'current_version',
'alldownloadcounter',
'downloadcounter',
'title',
'ownerusername',
'author_name',
'author_email',
'authorcompany',
'last_updated',
'md5hash',
'repository',
'state',
'review_state',
'category',
'description',
'serialized_dependencies',
'update_comment'
)

Definition at line 52 of file ExtensionListUtility.php.

$parser
protected

Definition at line 31 of file ExtensionListUtility.php.

$repositoryRepository
protected

Definition at line 94 of file ExtensionListUtility.php.

$repositoryUid = 1
protected
$sumRecords = 0
protected