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
- PROPERTY_LANGUAGE_UID = '_languageUid'
- PROPERTY_LOCALIZED_UID = '_localizedUid'
- PROPERTY_PID = 'pid'
- PROPERTY_UID = 'uid'
- PROPERTY_VERSIONED_UID = '_versionedUid'
Properties
- $_languageUid : int<-1, max>|null
- $_localizedUid : int<0, max>|null
- $_versionedUid : int|null
- The uid of the versioned record.
- $alldownloadcounter : int
- $authorEmail : string
- $authorName : string
- $category : int
- $currentVersion : bool
- $dependencies : SplObjectStorage<string|int, Dependency>
- $description : string
- $distributionImage : string
- $distributionWelcomeImage : string
- $documentationLink : string
- $extensionKey : string
- $integerVersion : int
- $lastUpdated : DateTime|null
- $md5hash : string
- $pid : int<0, max>|null
- $position : int
- $remote : string
- $reviewState : int
- $serializedDependencies : string
- $state : int
- $title : string
- $uid : int<1, max>|null
- $updateComment : string
- $version : string
Methods
- __clone() : void
- __toString() : non-empty-string
- _getCleanProperties() : array<non-empty-string, 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<non-empty-string, mixed>
- _getProperty() : mixed
- _hasProperty() : bool
- _isClone() : bool
- _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)
- _memorizeCleanState() : void
- Register an object's clean state, e.g. after it has been reconstituted from the database.
- _memorizePropertyCleanState() : void
- Register a property'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
- addDependency() : void
- createFromExtensionArray() : self
- Map a legacy extension array to an object
- getAlldownloadcounter() : int
- getAuthorEmail() : string
- getAuthorName() : string
- getCategory() : int
- getCategoryString() : string
- getCurrentVersion() : bool
- getDependencies() : SplObjectStorage<string|int, Dependency>
- getDescription() : string
- getDistributionImage() : string
- getDistributionWelcomeImage() : string
- getDocumentationLink() : string
- getExtensionKey() : string
- getIntegerVersion() : int
- getLastUpdated() : DateTime
- getMd5hash() : string
- getPid() : int<0, max>|null
- getPosition() : int
- getRemoteIdentifier() : string
- getReviewState() : int
- getSerializedDependencies() : string
- getState() : int
- getStateString() : string
- getTitle() : string
- getTypo3Dependency() : Dependency|null
- getUid() : int<1, max>|null
- getUpdateComment() : string
- getVersion() : string
- setAlldownloadcounter() : void
- setAuthorEmail() : void
- setAuthorName() : void
- setCategory() : void
- setCurrentVersion() : void
- setDependencies() : mixed
- setDescription() : void
- setDistributionImage() : void
- setDistributionWelcomeImage() : void
- setDocumentationLink() : void
- setExtensionKey() : void
- setIntegerVersion() : void
- setLastUpdated() : void
- setMd5hash() : void
- setPid() : void
- setPosition() : void
- setReviewState() : void
- setSerializedDependencies() : void
- setState() : void
- setTitle() : void
- setUpdateComment() : void
- setVersion() : void
- convertDependenciesToObjects() : SplObjectStorage<string|int, Dependency>
- Converts string dependencies to an object storage of dependencies
- isPropertyDirty() : bool
- Checks the $value against the $cleanState.
Constants
PROPERTY_LANGUAGE_UID
public
mixed
PROPERTY_LANGUAGE_UID
= '_languageUid'
PROPERTY_LOCALIZED_UID
public
mixed
PROPERTY_LOCALIZED_UID
= '_localizedUid'
PROPERTY_PID
public
mixed
PROPERTY_PID
= 'pid'
PROPERTY_UID
public
mixed
PROPERTY_UID
= 'uid'
PROPERTY_VERSIONED_UID
public
mixed
PROPERTY_VERSIONED_UID
= '_versionedUid'
Properties
$_languageUid
protected
int<-1, max>|null
$_languageUid
= null
The uid of the language of the object. This is the id of the corresponding sing language.
Tags
$_localizedUid
protected
int<0, max>|null
$_localizedUid
= null
The uid of the localized record. Holds the uid of the record in default language (the translationOrigin).
Tags
$_versionedUid
The uid of the versioned record.
protected
int|null
$_versionedUid
= null
Tags
$alldownloadcounter
protected
int
$alldownloadcounter
$authorEmail
protected
string
$authorEmail
= ''
$authorName
protected
string
$authorName
= ''
$category
protected
int
$category
= 0
$currentVersion
protected
bool
$currentVersion
= false
$dependencies
protected
SplObjectStorage<string|int, Dependency>
$dependencies
= null
$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|null
$lastUpdated
$md5hash
protected
string
$md5hash
= ''
$pid
protected
int<0, max>|null
$pid
= null
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<1, max>|null
$uid
= null
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()
public
__clone() : void
__toString()
public
__toString() : non-empty-string
Return values
non-empty-string_getCleanProperties()
Returns a hash map of clean properties and $values.
public
_getCleanProperties() : array<non-empty-string, mixed>
Return values
array<non-empty-string, 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(non-empty-string $propertyName) : mixed
Parameters
- $propertyName : non-empty-string
-
The name of the property to be memorized.
Return values
mixed —The clean property value or NULL
_getProperties()
public
_getProperties() : array<non-empty-string, mixed>
Return values
array<non-empty-string, mixed> —a hash map of property names and property values.
_getProperty()
public
_getProperty(string $propertyName) : mixed
Parameters
- $propertyName : string
_hasProperty()
public
_hasProperty(non-empty-string $propertyName) : bool
Parameters
- $propertyName : non-empty-string
Return values
bool_isClone()
public
_isClone() : bool
Return values
bool_isDirty()
Returns TRUE if the properties were modified after reconstitution
public
_isDirty([non-empty-string|null $propertyName = null ]) : bool
Parameters
- $propertyName : non-empty-string|null = 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)
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([non-empty-string|null $propertyName = null ]) : void
Parameters
- $propertyName : non-empty-string|null = null
-
The name of the property to be memorized. If omitted all persistable properties are memorized.
_memorizePropertyCleanState()
Register a property's clean state, e.g. after it has been reconstituted from the database.
public
_memorizePropertyCleanState(non-empty-string $propertyName) : void
Parameters
- $propertyName : non-empty-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()
public
_setProperty(string $propertyName, mixed $value) : bool
Parameters
- $propertyName : string
- $value : mixed
Return values
booladdDependency()
public
addDependency(Dependency $dependency) : void
Parameters
- $dependency : Dependency
createFromExtensionArray()
Map a legacy extension array to an object
public
static createFromExtensionArray(array<string|int, mixed> $extensionArray) : self
Parameters
- $extensionArray : array<string|int, mixed>
Return values
selfgetAlldownloadcounter()
public
getAlldownloadcounter() : int
Return values
intgetAuthorEmail()
public
getAuthorEmail() : string
Return values
stringgetAuthorName()
public
getAuthorName() : string
Return values
stringgetCategory()
public
getCategory() : int
Return values
intgetCategoryString()
public
getCategoryString() : string
Return values
stringgetCurrentVersion()
public
getCurrentVersion() : bool
Return values
boolgetDependencies()
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()
public
getPid() : int<0, max>|null
Return values
int<0, max>|nullgetPosition()
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()
public
getStateString() : string
Return values
stringgetTitle()
public
getTitle() : string
Return values
stringgetTypo3Dependency()
public
getTypo3Dependency() : Dependency|null
Return values
Dependency|nullgetUid()
public
getUid() : int<1, max>|null
Return values
int<1, max>|nullgetUpdateComment()
public
getUpdateComment() : string
Return values
stringgetVersion()
public
getVersion() : string
Return values
stringsetAlldownloadcounter()
public
setAlldownloadcounter(int $alldownloadcounter) : void
Parameters
- $alldownloadcounter : int
setAuthorEmail()
public
setAuthorEmail(string $authorEmail) : void
Parameters
- $authorEmail : string
setAuthorName()
public
setAuthorName(string $authorName) : void
Parameters
- $authorName : string
setCategory()
public
setCategory(int $category) : void
Parameters
- $category : int
setCurrentVersion()
public
setCurrentVersion(bool $currentVersion) : void
Parameters
- $currentVersion : bool
setDependencies()
public
setDependencies(SplObjectStorage<string|int, Dependency> $dependencies) : mixed
Parameters
- $dependencies : SplObjectStorage<string|int, Dependency>
setDescription()
public
setDescription(string $description) : void
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) : void
Parameters
- $extensionKey : string
setIntegerVersion()
public
setIntegerVersion(int $integerVersion) : void
Parameters
- $integerVersion : int
setLastUpdated()
public
setLastUpdated(DateTime $lastUpdated) : void
Parameters
- $lastUpdated : DateTime
setMd5hash()
public
setMd5hash(string $md5hash) : void
Parameters
- $md5hash : string
setPid()
public
setPid(int<0, max> $pid) : void
Parameters
- $pid : int<0, max>
setPosition()
public
setPosition(int $position) : void
Parameters
- $position : int
setReviewState()
public
setReviewState(int $reviewState) : void
Parameters
- $reviewState : int
setSerializedDependencies()
public
setSerializedDependencies(string $dependencies) : void
Parameters
- $dependencies : string
setState()
public
setState(int $state) : void
Parameters
- $state : int
setTitle()
public
setTitle(string $title) : void
Parameters
- $title : string
setUpdateComment()
public
setUpdateComment(string $updateComment) : void
Parameters
- $updateComment : string
setVersion()
public
setVersion(string $version) : void
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