Extension extends AbstractEntity
Main extension model
This class is a specific domain model implementation and is not part of the Public TYPO3 API.
Table of Contents
Constants
- DISTRIBUTION_CATEGORY = 10
- Category index for distributions
Properties
- $_languageUid : int
- $_localizedUid : int
- $_versionedUid : int
- $alldownloadcounter : int
- $authorEmail : string
- $authorName : string
- $category : int
- $currentVersion : bool
- $defaultCategories : array<string|int, mixed>
- Contains default categories.
- $defaultStates : array<string|int, mixed>
- Contains default states.
- $dependencies : SplObjectStorage<string|int, Dependency>
- $description : string
- $distributionImage : string
- $distributionWelcomeImage : string
- $documentationLink : string
- $extensionKey : string
- $integerVersion : int
- $lastUpdated : DateTime
- $md5hash : string
- $pid : int
- $position : int
- $remote : string
- $reviewState : int
- $serializedDependencies : string
- $state : int
- $title : string
- $uid : int
- $updateComment : string
- $version : string
Methods
- __clone() : mixed
- Clone method. Sets the _isClone property.
- __toString() : string
- Returns the class name and the uid of the object as string
- _getCleanProperties() : array<string|int, mixed>
- Returns a hash map of clean properties and $values.
- _getCleanProperty() : mixed
- Returns the clean value of the given property. The returned value will be NULL if the clean state was not memorized before, or if the clean value is NULL.
- _getProperties() : array<string|int, mixed>
- Returns a hash map of property names and property values. Only for internal use.
- _getProperty() : mixed
- Returns the property value of the given property name. Only for internal use.
- _hasProperty() : bool
- Returns the property value of the given property name. Only for internal use.
- _isClone() : bool
- Returns TRUE if the object has been cloned, FALSE otherwise.
- _isDirty() : bool
- Returns TRUE if the properties were modified after reconstitution
- _isNew() : bool
- Returns TRUE if the object is new (the uid was not set, yet). Only for internal use
- _memorizeCleanState() : mixed
- Register an object's clean state, e.g. after it has been reconstituted from the database.
- _memorizePropertyCleanState() : mixed
- Register a properties's clean state, e.g. after it has been reconstituted from the database.
- _setClone() : mixed
- Setter whether this Domain Object is a clone of another one.
- _setProperty() : bool
- Reconstitutes a property. Only for internal use.
- addDependency() : mixed
- createFromExtensionArray() : Extension
- Map a legacy extension array to an object
- getAlldownloadcounter() : int
- getAuthorEmail() : string
- getAuthorName() : string
- getCategory() : int
- getCategoryIndexFromStringOrNumber() : int
- Returns category index from a given string or an integer.
- getCategoryString() : string
- Get Category String
- getCurrentVersion() : bool
- getDefaultState() : mixed
- Returns either array with all default states or index/title of a state entry.
- getDependencies() : SplObjectStorage<string|int, Dependency>
- getDescription() : string
- getDistributionImage() : string
- getDistributionWelcomeImage() : string
- getDocumentationLink() : string
- getExtensionKey() : string
- getIntegerVersion() : int
- getLastUpdated() : DateTime
- getMd5hash() : string
- getPid() : int|null
- Getter for the pid.
- getPosition() : int
- getRemoteIdentifier() : string
- getReviewState() : int
- getSerializedDependencies() : string
- getState() : int
- getStateString() : string
- Get State string
- getTitle() : string
- getTypo3Dependency() : Dependency|null
- getUid() : int|null
- Getter for uid.
- getUpdateComment() : string
- getVersion() : string
- returnAllowedInstallPaths() : array<string|int, mixed>
- Allowed install paths
- returnAllowedInstallTypes() : array<string|int, mixed>
- Allowed install names: System, Global, Local
- returnInstallPaths() : array<string|int, mixed>
- Possible install paths
- setAlldownloadcounter() : mixed
- setAuthorEmail() : mixed
- setAuthorName() : mixed
- setCategory() : mixed
- setCurrentVersion() : mixed
- setDependencies() : mixed
- setDescription() : mixed
- setDistributionImage() : void
- setDistributionWelcomeImage() : void
- setDocumentationLink() : void
- setExtensionKey() : mixed
- setIntegerVersion() : mixed
- setLastUpdated() : mixed
- setMd5hash() : mixed
- setPid() : void
- Setter for the pid.
- setPosition() : mixed
- setReviewState() : mixed
- setSerializedDependencies() : mixed
- setState() : mixed
- setTitle() : mixed
- setUpdateComment() : mixed
- setVersion() : mixed
- convertDependenciesToObjects() : SplObjectStorage<string|int, Dependency>
- Converts string dependencies to an object storage of dependencies
- isPropertyDirty() : bool
- Checks the $value against the $cleanState.
Constants
DISTRIBUTION_CATEGORY
Category index for distributions
public
mixed
DISTRIBUTION_CATEGORY
= 10
Properties
$_languageUid
protected
int
$_languageUid
The uid of the language of the object. This is the uid of the language record in the table sys_language.
$_localizedUid
protected
int
$_localizedUid
The uid of the localized record. Holds the uid of the record in default language (the translationOrigin).
$_versionedUid
protected
int
$_versionedUid
The uid of the versioned record.
$alldownloadcounter
protected
int
$alldownloadcounter
$authorEmail
protected
string
$authorEmail
= ''
$authorName
protected
string
$authorName
= ''
$category
protected
int
$category
= 0
$currentVersion
protected
bool
$currentVersion
= false
$defaultCategories
Contains default categories.
protected
static array<string|int, mixed>
$defaultCategories
= [0 => 'be', 1 => 'module', 2 => 'fe', 3 => 'plugin', 4 => 'misc', 5 => 'services', 6 => 'templates', 8 => 'doc', 9 => 'example', self::DISTRIBUTION_CATEGORY => 'distribution']
$defaultStates
Contains default states.
protected
static array<string|int, mixed>
$defaultStates
= [0 => 'alpha', 1 => 'beta', 2 => 'stable', 3 => 'experimental', 4 => 'test', 5 => 'obsolete', 6 => 'excludeFromUpdates', 7 => 'deprecated', 999 => 'n/a']
$dependencies
protected
SplObjectStorage<string|int, Dependency>
$dependencies
$description
protected
string
$description
= ''
$distributionImage
protected
string
$distributionImage
= ''
$distributionWelcomeImage
protected
string
$distributionWelcomeImage
= ''
$documentationLink
protected
string
$documentationLink
= ''
$extensionKey
protected
string
$extensionKey
= ''
$integerVersion
protected
int
$integerVersion
= 0
$lastUpdated
protected
DateTime
$lastUpdated
$md5hash
protected
string
$md5hash
= ''
$pid
protected
int
$pid
The id of the page the record is "stored".
$position
protected
int
$position
= 0
$remote
protected
string
$remote
$reviewState
protected
int
$reviewState
$serializedDependencies
protected
string
$serializedDependencies
= ''
$state
protected
int
$state
= 0
$title
protected
string
$title
= ''
$uid
protected
int
$uid
The uid of the record. The uid is only unique in the context of the database table.
$updateComment
protected
string
$updateComment
= ''
$version
protected
string
$version
= ''
Methods
__clone()
Clone method. Sets the _isClone property.
public
__clone() : mixed
__toString()
Returns the class name and the uid of the object as string
public
__toString() : string
Return values
string_getCleanProperties()
Returns a hash map of clean properties and $values.
public
_getCleanProperties() : array<string|int, mixed>
Return values
array<string|int, mixed>_getCleanProperty()
Returns the clean value of the given property. The returned value will be NULL if the clean state was not memorized before, or if the clean value is NULL.
public
_getCleanProperty(string $propertyName) : mixed
Parameters
- $propertyName : string
-
The name of the property to be memorized.
Return values
mixed —The clean property value or NULL
_getProperties()
Returns a hash map of property names and property values. Only for internal use.
public
_getProperties() : array<string|int, mixed>
Return values
array<string|int, mixed> —The properties
_getProperty()
Returns the property value of the given property name. Only for internal use.
public
_getProperty(string $propertyName) : mixed
Parameters
- $propertyName : string
Return values
mixed —The propertyValue
_hasProperty()
Returns the property value of the given property name. Only for internal use.
public
_hasProperty(string $propertyName) : bool
Parameters
- $propertyName : string
Return values
bool —TRUE bool true if the property exists, FALSE if it doesn't exist or NULL in case of an error.
_isClone()
Returns TRUE if the object has been cloned, FALSE otherwise.
public
_isClone() : bool
Return values
bool —TRUE if the object has been cloned
_isDirty()
Returns TRUE if the properties were modified after reconstitution
public
_isDirty([string $propertyName = null ]) : bool
Parameters
- $propertyName : string = null
-
An optional name of a property to be checked if its value is dirty
Tags
Return values
bool_isNew()
Returns TRUE if the object is new (the uid was not set, yet). Only for internal use
public
_isNew() : bool
Return values
bool_memorizeCleanState()
Register an object's clean state, e.g. after it has been reconstituted from the database.
public
_memorizeCleanState([string $propertyName = null ]) : mixed
Parameters
- $propertyName : string = null
-
The name of the property to be memorized. If omitted all persistable properties are memorized.
_memorizePropertyCleanState()
Register a properties's clean state, e.g. after it has been reconstituted from the database.
public
_memorizePropertyCleanState(string $propertyName) : mixed
Parameters
- $propertyName : string
-
The name of the property to be memorized. If omitted all persistable properties are memorized.
_setClone()
Setter whether this Domain Object is a clone of another one.
public
_setClone(bool $clone) : mixed
NEVER SET THIS PROPERTY DIRECTLY. We currently need it to make the _isDirty check inside AbstractEntity work, but it is just a work- around right now.
Parameters
- $clone : bool
_setProperty()
Reconstitutes a property. Only for internal use.
public
_setProperty(string $propertyName, mixed $propertyValue) : bool
Parameters
- $propertyName : string
- $propertyValue : mixed
Return values
booladdDependency()
public
addDependency(Dependency $dependency) : mixed
Parameters
- $dependency : Dependency
createFromExtensionArray()
Map a legacy extension array to an object
public
static createFromExtensionArray(array<string|int, mixed> $extensionArray) : Extension
Parameters
- $extensionArray : array<string|int, mixed>
Return values
ExtensiongetAlldownloadcounter()
public
getAlldownloadcounter() : int
Return values
intgetAuthorEmail()
public
getAuthorEmail() : string
Return values
stringgetAuthorName()
public
getAuthorName() : string
Return values
stringgetCategory()
public
getCategory() : int
Return values
intgetCategoryIndexFromStringOrNumber()
Returns category index from a given string or an integer.
public
getCategoryIndexFromStringOrNumber(string|int $category) : int
Fallback to 4 - 'misc' in case string is not found or integer ist out of range.
Parameters
- $category : string|int
-
Category string or integer
Return values
int —Valid category index
getCategoryString()
Get Category String
public
getCategoryString() : string
Return values
stringgetCurrentVersion()
public
getCurrentVersion() : bool
Return values
boolgetDefaultState()
Returns either array with all default states or index/title of a state entry.
public
getDefaultState([mixed $state = null ]) : mixed
Parameters
- $state : mixed = null
-
state title or state index
getDependencies()
public
getDependencies() : SplObjectStorage<string|int, Dependency>
Return values
SplObjectStorage<string|int, Dependency>getDescription()
public
getDescription() : string
Return values
stringgetDistributionImage()
public
getDistributionImage() : string
Return values
stringgetDistributionWelcomeImage()
public
getDistributionWelcomeImage() : string
Return values
stringgetDocumentationLink()
public
getDocumentationLink() : string
Return values
stringgetExtensionKey()
public
getExtensionKey() : string
Return values
stringgetIntegerVersion()
public
getIntegerVersion() : int
Return values
intgetLastUpdated()
public
getLastUpdated() : DateTime
Return values
DateTimegetMd5hash()
public
getMd5hash() : string
Return values
stringgetPid()
Getter for the pid.
public
getPid() : int|null
Return values
int|null —The pid or NULL if none set yet.
getPosition()
public
getPosition() : int
Return values
intgetRemoteIdentifier()
public
getRemoteIdentifier() : string
Return values
stringgetReviewState()
public
getReviewState() : int
Return values
intgetSerializedDependencies()
public
getSerializedDependencies() : string
Return values
stringgetState()
public
getState() : int
Return values
intgetStateString()
Get State string
public
getStateString() : string
Return values
stringgetTitle()
public
getTitle() : string
Return values
stringgetTypo3Dependency()
public
getTypo3Dependency() : Dependency|null
Return values
Dependency|nullgetUid()
Getter for uid.
public
getUid() : int|null
Return values
int|null —The uid or NULL if none set yet.
getUpdateComment()
public
getUpdateComment() : string
Return values
stringgetVersion()
public
getVersion() : string
Return values
stringreturnAllowedInstallPaths()
Allowed install paths
public
static returnAllowedInstallPaths() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>returnAllowedInstallTypes()
Allowed install names: System, Global, Local
public
static returnAllowedInstallTypes() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>returnInstallPaths()
Possible install paths
public
static returnInstallPaths() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>setAlldownloadcounter()
public
setAlldownloadcounter(int $alldownloadcounter) : mixed
Parameters
- $alldownloadcounter : int
setAuthorEmail()
public
setAuthorEmail(string $authorEmail) : mixed
Parameters
- $authorEmail : string
setAuthorName()
public
setAuthorName(string $authorName) : mixed
Parameters
- $authorName : string
setCategory()
public
setCategory(int $category) : mixed
Parameters
- $category : int
setCurrentVersion()
public
setCurrentVersion(bool $currentVersion) : mixed
Parameters
- $currentVersion : bool
setDependencies()
public
setDependencies(SplObjectStorage<string|int, Dependency> $dependencies) : mixed
Parameters
- $dependencies : SplObjectStorage<string|int, Dependency>
setDescription()
public
setDescription(string $description) : mixed
Parameters
- $description : string
setDistributionImage()
public
setDistributionImage(string $imageUrl) : void
Parameters
- $imageUrl : string
setDistributionWelcomeImage()
public
setDistributionWelcomeImage(string $imageUrl) : void
Parameters
- $imageUrl : string
setDocumentationLink()
public
setDocumentationLink(string $documentationLink) : void
Parameters
- $documentationLink : string
setExtensionKey()
public
setExtensionKey(string $extensionKey) : mixed
Parameters
- $extensionKey : string
setIntegerVersion()
public
setIntegerVersion(int $integerVersion) : mixed
Parameters
- $integerVersion : int
setLastUpdated()
public
setLastUpdated(DateTime $lastUpdated) : mixed
Parameters
- $lastUpdated : DateTime
setMd5hash()
public
setMd5hash(string $md5hash) : mixed
Parameters
- $md5hash : string
setPid()
Setter for the pid.
public
setPid(int $pid) : void
Parameters
- $pid : int
setPosition()
public
setPosition(int $position) : mixed
Parameters
- $position : int
setReviewState()
public
setReviewState(int $reviewState) : mixed
Parameters
- $reviewState : int
setSerializedDependencies()
public
setSerializedDependencies(string $dependencies) : mixed
Parameters
- $dependencies : string
setState()
public
setState(int $state) : mixed
Parameters
- $state : int
setTitle()
public
setTitle(string $title) : mixed
Parameters
- $title : string
setUpdateComment()
public
setUpdateComment(string $updateComment) : mixed
Parameters
- $updateComment : string
setVersion()
public
setVersion(string $version) : mixed
Parameters
- $version : string
convertDependenciesToObjects()
Converts string dependencies to an object storage of dependencies
protected
convertDependenciesToObjects(string $dependencies) : SplObjectStorage<string|int, Dependency>
Parameters
- $dependencies : string
Return values
SplObjectStorage<string|int, Dependency>isPropertyDirty()
Checks the $value against the $cleanState.
protected
isPropertyDirty(mixed $previousValue, mixed $currentValue) : bool
Parameters
- $previousValue : mixed
- $currentValue : mixed