DataMap
A data map to map a single table configured in $TCA on a domain object.
only to be used within Extbase, not part of TYPO3 Core API.
Table of Contents
Properties
- $className : string
- $columnMaps : array<string|int, mixed>
- $creationDateColumnName : string|null
- $deletedFlagColumnName : string|null
- $disabledFlagColumnName : string|null
- $endTimeColumnName : string|null
- $frontendUserGroupColumnName : string|null
- $isStatic : bool
- $languageIdColumnName : string|null
- $modificationDateColumnName : string|null
- $recordType : string|null
- $recordTypeColumnName : string|null
- $rootLevel : bool
- $startTimeColumnName : string|null
- $subclasses : array<string|int, mixed>
- $tableName : string
- $translationOriginColumnName : string|null
- $translationOriginDiffSourceName : string|null
Methods
- __construct() : mixed
- getClassName() : string
- getColumnMap() : ColumnMap|null
- getCreationDateColumnName() : string|null
- getDeletedFlagColumnName() : string|null
- getDisabledFlagColumnName() : string|null
- getEndTimeColumnName() : string|null
- getFrontEndUserGroupColumnName() : string|null
- getIsStatic() : bool
- getLanguageIdColumnName() : string|null
- getModificationDateColumnName() : string|null
- getRecordType() : string|null
- getRecordTypeColumnName() : string|null
- getRootLevel() : bool
- getStartTimeColumnName() : string|null
- getSubclasses() : array<string|int, mixed>
- getTableName() : string
- getTranslationOriginColumnName() : string|null
- getTranslationOriginDiffSourceName() : string|null
- isPersistableProperty() : bool
Properties
$className
public
string
$className
$columnMaps
public
array<string|int, mixed>
$columnMaps
= []
$creationDateColumnName
public
string|null
$creationDateColumnName
= null
$deletedFlagColumnName
public
string|null
$deletedFlagColumnName
= null
$disabledFlagColumnName
public
string|null
$disabledFlagColumnName
= null
$endTimeColumnName
public
string|null
$endTimeColumnName
= null
$frontendUserGroupColumnName
public
string|null
$frontendUserGroupColumnName
= null
$isStatic
public
bool
$isStatic
= false
$languageIdColumnName
public
string|null
$languageIdColumnName
= null
$modificationDateColumnName
public
string|null
$modificationDateColumnName
= null
$recordType
public
string|null
$recordType
= null
$recordTypeColumnName
public
string|null
$recordTypeColumnName
= null
$rootLevel
public
bool
$rootLevel
= false
$startTimeColumnName
public
string|null
$startTimeColumnName
= null
$subclasses
public
array<string|int, mixed>
$subclasses
= []
$tableName
public
string
$tableName
$translationOriginColumnName
public
string|null
$translationOriginColumnName
= null
$translationOriginDiffSourceName
public
string|null
$translationOriginDiffSourceName
= null
Methods
__construct()
public
__construct(string $className, string $tableName[, string|null $recordType = null ][, array<string|int, mixed> $subclasses = [] ][, array<non-empty-string, ColumnMap> $columnMaps = [] ][, string|null $languageIdColumnName = null ][, string|null $translationOriginColumnName = null ][, string|null $translationOriginDiffSourceName = null ][, string|null $modificationDateColumnName = null ][, string|null $creationDateColumnName = null ][, string|null $deletedFlagColumnName = null ][, string|null $disabledFlagColumnName = null ][, string|null $startTimeColumnName = null ][, string|null $endTimeColumnName = null ][, string|null $frontendUserGroupColumnName = null ][, string|null $recordTypeColumnName = null ][, bool $isStatic = false ][, bool $rootLevel = false ]) : mixed
Parameters
- $className : string
-
Name of the class this column map represents
- $tableName : string
-
Name of the DB table this column map is located on
- $recordType : string|null = null
-
The record type stored in the "type" field as configured in $TCA
- $subclasses : array<string|int, mixed> = []
-
List of subclasses of the current class
- $columnMaps : array<non-empty-string, ColumnMap> = []
-
List of TCA columns with their ColumnMap representation
- $languageIdColumnName : string|null = null
-
Name of a column holding the language id of the record, often "sys_language_uid"
- $translationOriginColumnName : string|null = null
-
Name of a column holding the uid of the record this record is a translation of, often "l10n_parent" or "l18n_parent"
- $translationOriginDiffSourceName : string|null = null
-
Name of a column holding the diff data for the record this record is a translation of, often "l10n_diffsource" or "l10n_diffsource"
- $modificationDateColumnName : string|null = null
-
Name of a column holding the timestamp the record was last modified, often "tstamp"
- $creationDateColumnName : string|null = null
-
Name of a column holding the creation date timestamp, often "crdate"
- $deletedFlagColumnName : string|null = null
-
Name of a column indicating the soft deleted state of the row, often "deleted"
- $disabledFlagColumnName : string|null = null
-
Name of a column indicating the "hidden in frontend" state of the row, often "hidden" or "disabled"
- $startTimeColumnName : string|null = null
-
Name of a column holding the timestamp the record should not be displayed before, often "starttime"
- $endTimeColumnName : string|null = null
-
Name of a column holding the timestamp the record should not be displayed afterward, often "endtime"
- $frontendUserGroupColumnName : string|null = null
-
Name of a column holding the uid of the front-end user group which is allowed to edit this record
- $recordTypeColumnName : string|null = null
-
Name of a column holding the record type, example: "CType" in table "tt_content"
- $isStatic : bool = false
-
True if TCA[$tableName]['ctrl']['is_static'] is true
- $rootLevel : bool = false
-
Bool cast of TCA[$tableName]['ctrl']['rootLevel']
getClassName()
public
getClassName() : string
Return values
stringgetColumnMap()
public
getColumnMap(string $propertyName) : ColumnMap|null
Parameters
- $propertyName : string
Return values
ColumnMap|nullgetCreationDateColumnName()
public
getCreationDateColumnName() : string|null
Return values
string|nullgetDeletedFlagColumnName()
public
getDeletedFlagColumnName() : string|null
Return values
string|nullgetDisabledFlagColumnName()
public
getDisabledFlagColumnName() : string|null
Return values
string|nullgetEndTimeColumnName()
public
getEndTimeColumnName() : string|null
Return values
string|nullgetFrontEndUserGroupColumnName()
public
getFrontEndUserGroupColumnName() : string|null
Return values
string|nullgetIsStatic()
public
getIsStatic() : bool
Return values
boolgetLanguageIdColumnName()
public
getLanguageIdColumnName() : string|null
Return values
string|nullgetModificationDateColumnName()
public
getModificationDateColumnName() : string|null
Return values
string|nullgetRecordType()
public
getRecordType() : string|null
Return values
string|nullgetRecordTypeColumnName()
public
getRecordTypeColumnName() : string|null
Return values
string|nullgetRootLevel()
public
getRootLevel() : bool
Return values
boolgetStartTimeColumnName()
public
getStartTimeColumnName() : string|null
Return values
string|nullgetSubclasses()
public
getSubclasses() : array<string|int, mixed>
Return values
array<string|int, mixed>getTableName()
public
getTableName() : string
Return values
stringgetTranslationOriginColumnName()
public
getTranslationOriginColumnName() : string|null
Return values
string|nullgetTranslationOriginDiffSourceName()
public
getTranslationOriginDiffSourceName() : string|null
Return values
string|nullisPersistableProperty()
public
isPersistableProperty(string $propertyName) : bool
Parameters
- $propertyName : string