TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Extension Class Reference
Inheritance diagram for Extension:
AbstractEntity AbstractDomainObject DomainObjectInterface ObjectMonitoringInterface

Public Member Functions

 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager)
 
 setAuthorEmail ($authorEmail)
 
 getAuthorEmail ()
 
 setAuthorName ($authorName)
 
 getAuthorName ()
 
 setCategory ($category)
 
 getCategory ()
 
 getCategoryString ()
 
 getCategoryIndexFromStringOrNumber ($category)
 
 setDescription ($description)
 
 getDescription ()
 
 setExtensionKey ($extensionKey)
 
 getExtensionKey ()
 
 setLastUpdated (\DateTime $lastUpdated)
 
 getLastUpdated ()
 
 setState ($state)
 
 getState ()
 
 getStateString ()
 
 getDefaultState ($state=null)
 
 setTitle ($title)
 
 getTitle ()
 
 setUpdateComment ($updateComment)
 
 getUpdateComment ()
 
 setVersion ($version)
 
 getVersion ()
 
 setCurrentVersion ($currentVersion)
 
 getCurrentVersion ()
 
 setMd5hash ($md5hash)
 
 getMd5hash ()
 
 setSerializedDependencies ($dependencies)
 
 getSerializedDependencies ()
 
 setDependencies ($dependencies)
 
 addDependency (\TYPO3\CMS\Extensionmanager\Domain\Model\Dependency $dependency)
 
 setIntegerVersion ($integerVersion)
 
 getIntegerVersion ()
 
 setReviewState ($reviewState)
 
 getReviewState ()
 
 setPosition ($position)
 
 getPosition ()
 
 setAlldownloadcounter ($alldownloadcounter)
 
 getAlldownloadcounter ()
 
- Public Member Functions inherited from AbstractDomainObject
 getUid ()
 
 setPid ($pid)
 
 getPid ()
 
 _setProperty ($propertyName, $propertyValue)
 
 _getProperty ($propertyName)
 
 _getProperties ()
 
 _hasProperty ($propertyName)
 
 _isNew ()
 
 _memorizeCleanState ($propertyName=null)
 
 _memorizePropertyCleanState ($propertyName)
 
 _getCleanProperties ()
 
 _getCleanProperty ($propertyName)
 
 _isDirty ($propertyName=null)
 
 _isClone ()
 
 _setClone ($clone)
 
 __clone ()
 
 __toString ()
 
- Public Member Functions inherited from ObjectMonitoringInterface
 _memorizeCleanState ()
 
 _isDirty ()
 

Static Public Member Functions

static returnInstallPaths ()
 
static returnAllowedInstallPaths ()
 
static returnAllowedInstallTypes ()
 

Public Attributes

const DISTRIBUTION_CATEGORY = 10
 

Protected Attributes

 $objectManager
 
 $extensionKey = ''
 
 $version = ''
 
 $integerVersion = 0
 
 $title = ''
 
 $description = ''
 
 $state = 0
 
 $category = 0
 
 $lastUpdated
 
 $updateComment = ''
 
 $authorName = ''
 
 $authorEmail = ''
 
 $currentVersion = false
 
 $md5hash = ''
 
 $reviewState
 
 $alldownloadcounter
 
 $serializedDependencies = ''
 
 $dependencies = null
 
 $position = 0
 
- Protected Attributes inherited from AbstractDomainObject
 $uid
 
 $_localizedUid
 
 $_languageUid
 
 $_versionedUid
 
 $pid
 

Static Protected Attributes

static $defaultCategories
 
static $defaultStates
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractDomainObject
 isPropertyDirty ($previousValue, $currentValue)
 

Detailed Description

Main extension model

Definition at line 20 of file extensionmanager/Classes/Domain/Model/Extension.php.

Member Function Documentation

addDependency ( \TYPO3\CMS\Extensionmanager\Domain\Model\Dependency  $dependency)
Parameters
\TYPO3\CMS\Extensionmanager\Domain\Model\Dependency$dependency
Returns
void

Definition at line 548 of file extensionmanager/Classes/Domain/Model/Extension.php.

getAlldownloadcounter ( )
getAuthorEmail ( )
Returns
string

Definition at line 177 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$authorEmail.

getAuthorName ( )
Returns
string

Definition at line 194 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$authorName.

getCategory ( )
Returns
int

Definition at line 211 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$category.

Referenced by Extension\getCategoryString().

getCategoryIndexFromStringOrNumber (   $category)

Returns category index from a given string or an integer. Fallback to 4 - 'misc' in case string is not found or integer ist out of range.

Parameters
string | int$categoryCategory string or integer
Returns
int Valid category index

Definition at line 237 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$category.

getCategoryString ( )

Get Category String

Returns
string

Definition at line 221 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\getCategory().

getCurrentVersion ( )
Returns
bool

Definition at line 434 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$currentVersion.

getDefaultState (   $state = null)

Returns either array with all default states or index/title of a state entry.

Parameters
mixed$statestate title or state index
Returns
mixed

Definition at line 343 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$state.

getDescription ( )
Returns
string

Definition at line 266 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$description.

getExtensionKey ( )
getIntegerVersion ( )
Returns
int

Definition at line 565 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$integerVersion.

getLastUpdated ( )
Returns

Definition at line 300 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$lastUpdated.

getMd5hash ( )
Returns
string

Definition at line 451 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$md5hash.

getPosition ( )
Returns
int

Definition at line 599 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$position.

getReviewState ( )
Returns
int

Definition at line 582 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$reviewState.

getSerializedDependencies ( )
Returns
string

Definition at line 517 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$serializedDependencies.

getState ( )
Returns
int

Definition at line 317 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$state.

Referenced by Extension\getStateString().

getStateString ( )

Get State string

Returns
string

Definition at line 327 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\getState().

getTitle ( )
Returns
string

Definition at line 383 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$title.

getUpdateComment ( )
Returns
string

Definition at line 400 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$updateComment.

getVersion ( )
injectObjectManager ( \TYPO3\CMS\Extbase\Object\ObjectManager  $objectManager)
Parameters
\TYPO3\CMS\Extbase\Object\ObjectManager$objectManager

Definition at line 160 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$objectManager.

static returnAllowedInstallPaths ( )
static

Allowed install pathes

Returns
array

Definition at line 478 of file extensionmanager/Classes/Domain/Model/Extension.php.

References $GLOBALS.

Referenced by ExtensionManagementService\copyDependencies(), and FileHandlingUtility\isValidExtensionPath().

static returnAllowedInstallTypes ( )
static

Allowed install names: System, Global, Local

Returns
array

Definition at line 499 of file extensionmanager/Classes/Domain/Model/Extension.php.

Referenced by RemoveExtensionViewHelper\render(), and DownloadUtility\setDownloadPath().

static returnInstallPaths ( )
static
setAlldownloadcounter (   $alldownloadcounter)
Parameters
int$alldownloadcounter

Definition at line 607 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$alldownloadcounter.

setAuthorEmail (   $authorEmail)
Parameters
string$authorEmail
Returns
void

Definition at line 169 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$authorEmail.

setAuthorName (   $authorName)
Parameters
string$authorName
Returns
void

Definition at line 186 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$authorName.

setCategory (   $category)
Parameters
int$category
Returns
void

Definition at line 203 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$category.

setCurrentVersion (   $currentVersion)
Parameters
bool$currentVersion
Returns
void

Definition at line 426 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$currentVersion.

setDependencies (   $dependencies)
Parameters
\SplObjectStorage$dependencies
Returns
void

Definition at line 526 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$dependencies.

setDescription (   $description)
Parameters
string$description
Returns
void

Definition at line 258 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$description.

setExtensionKey (   $extensionKey)
Parameters
string$extensionKey
Returns
void

Definition at line 275 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$extensionKey.

setIntegerVersion (   $integerVersion)
Parameters
int$integerVersion
Returns
void

Definition at line 557 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$integerVersion.

setLastUpdated ( \DateTime  $lastUpdated)
Parameters
\DateTime$lastUpdated
Returns
void

Definition at line 292 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$lastUpdated.

setMd5hash (   $md5hash)
Parameters
string$md5hash
Returns
void

Definition at line 443 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$md5hash.

setPosition (   $position)
Parameters
int$position
Returns
void

Definition at line 591 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$position.

setReviewState (   $reviewState)
Parameters
int$reviewState
Returns
void

Definition at line 574 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$reviewState.

setSerializedDependencies (   $dependencies)
Parameters
string$dependencies
Returns
void

Definition at line 509 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$dependencies.

setState (   $state)
Parameters
int$state
Returns
void

Definition at line 309 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$state.

setTitle (   $title)
Parameters
string$title
Returns
void

Definition at line 375 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$title.

setUpdateComment (   $updateComment)
Parameters
string$updateComment
Returns
void

Definition at line 392 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$updateComment.

setVersion (   $version)
Parameters
string$version
Returns
void

Definition at line 409 of file extensionmanager/Classes/Domain/Model/Extension.php.

References Extension\$version.

Member Data Documentation

$alldownloadcounter
protected
$authorEmail = ''
protected
$authorName = ''
protected
$currentVersion = false
protected
$defaultCategories
staticprotected
Initial value:
= [
0 => 'be'

Definition at line 32 of file extensionmanager/Classes/Domain/Model/Extension.php.

$defaultStates
staticprotected
Initial value:
= [
0 => 'alpha'

Definition at line 50 of file extensionmanager/Classes/Domain/Model/Extension.php.

$dependencies = null
protected
$description = ''
protected
$extensionKey = ''
protected
$integerVersion = 0
protected
$lastUpdated
protected
$md5hash = ''
protected
$objectManager
protected
$position = 0
protected
$reviewState
protected
$serializedDependencies = ''
protected
$title = ''
protected
$updateComment = ''
protected
$version = ''
protected
const DISTRIBUTION_CATEGORY = 10

Category index for distributions

Definition at line 25 of file extensionmanager/Classes/Domain/Model/Extension.php.