TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
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 = []
 
 $repositoryUid = 1
 
 $repositoryRepository
 
 $extensionRepository
 
 $extensionModel
 

Static Protected Attributes

static $fieldNames
 
static $fieldIndicesNoQuote = [2, 3, 5, 11, 13, 14, 15, 16]
 

Detailed Description

Importer object for extension list

Definition at line 22 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 137 of file ExtensionListUtility.php.

References ExtensionListUtility\$repositoryUid, ExtensionListUtility\$sumRecords, and GeneralUtility\makeInstance().

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 166 of file ExtensionListUtility.php.

References ExtensionListUtility\$repositoryUid, ExtensionListUtility\$sumRecords, VersionNumberUtility\convertVersionStringToArray(), and GeneralUtility\makeInstance().

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 213 of file ExtensionListUtility.php.

References ExtensionListUtility\loadIntoDatabase().

Member Data Documentation

$arrRows = []
protected

Definition at line 43 of file ExtensionListUtility.php.

$extensionModel
protected

Definition at line 102 of file ExtensionListUtility.php.

$extensionRepository
protected

Definition at line 97 of file ExtensionListUtility.php.

$fieldIndicesNoQuote = [2, 3, 5, 11, 13, 14, 15, 16]
staticprotected

Definition at line 78 of file ExtensionListUtility.php.

$fieldNames
staticprotected
Initial value:
= [
'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 50 of file ExtensionListUtility.php.

$parser
protected

Definition at line 29 of file ExtensionListUtility.php.

$repositoryRepository
protected

Definition at line 92 of file ExtensionListUtility.php.

$repositoryUid = 1
protected
$sumRecords = 0
protected