FUMAN_LASTUPDATE_COLUMNNAME
FUMAN_LASTUPDATE_COLUMNNAME
Default fuman last update column
Parent table of all Fuman_Table which are required to run the system.
$_primary : \Fuman_Column
Primary {@link Fuman_Column} of {@link Fuman_Table}
$_columnDataTypes : array<mixed,\Fuman_Db_DataType>
list of columns and their data type
$_inputTypes : array<mixed,\Fuman_InputType>
List of {@link Fuman_InputType}
$_subset : \Fuman_Db_Where
Subset (restricts users view)
$_systemSubset : \Fuman_Db_Where
Subset for system (used for dynamic tables, .
..)
$_hiddenInNavigation : boolean
If true, the table wont be shown in Navigation
$_recordListeners : array<mixed,\Fuman_Db_Record_Listener>
$_accessControllers : array<mixed,\Fuman_Db_Record_AccessController>
$_inheritedTable : \Fuman_Table
inherits inputtypes from the table
$_displayNameSetter : \Fuman_Table_SystemDisplayNameSetter
__construct(string $name) : \Fuman_Table_System
Constructor
After instantiating a Table call \Fuman_Table::preInit() and Fuman_Table::init() to load all Fuman_Column and Fuman_InputType.
Note: Make sure that all needed Classes of the Framework are ready when you call init and preInit.
string | $name |
addAccessController(\Fuman_Db_Record_AccessController $controller) : void
Adds an access controller
\Fuman_Db_Record_AccessController | $controller |
removeAccessController(\Fuman_Db_Record_AccessController $controller) : void
Removes access controller
\Fuman_Db_Record_AccessController | $controller |
isActionAllowedForRecord(string $actionClassName, \Fuman_Db_Record $record) : boolean
Is action allowed for record
string | $actionClassName | |
\Fuman_Db_Record | $record |
getPrimary() : \Fuman_Column
Returns the {@link Fuman_Column} which is set as primary column.
getPrimaryName() : string
Returns name of primary {@link Fuman_Column}.
Note: A primary Fuman_Column is optional. First check Fuman_Table::hasPrimary() before calling getPrimaryName.
getDb() : \Fuman_Db_Abstract
Returns {@link Fuman_Db_Abstract}.
Can be influenced when setting \Fuman_Table::setDbName($dbName) on Fuman_Table.
hasDb() : \Fuman_Db_Abstract
Checks if db available Can be influenced when setting {@link Fuman_Table::setDbName($dbName)} on {@link Fuman_Table}.
sqlJoin() : \Fuman_Db_SqlJoin
Gets Fuman_Db_SqlJoin
recordSaved(\Fuman_Db_Record $record) : void
Called when a record on this table has been saved
\Fuman_Db_Record | $record |
recordDeleted(\Fuman_Db_Record $record) : void
Called when a record on this table has been deleted
\Fuman_Db_Record | $record |
addRecordListener(\Fuman_Db_Record_Listener $listener) : void
Adds record listener
\Fuman_Db_Record_Listener | $listener |
removeRecordListener(\Fuman_Db_Record_Listener $listener) : void
Removes record listener
\Fuman_Db_Record_Listener | $listener |
getInputType(string $uniqueName) : \Fuman_InputType
Returns a {@link Fuman_InputType} by uniquename.
string | $uniqueName |
getInputTypesByClassName(string $className) : array<mixed,\Fuman_InputType>|null
Return all inputtypes wich are assignable to $className (instanceof)
string | $className |
getResponsibleContentBlockInputType(\Fuman_Db_Record $record) : \app_core_inputtype_contentblock|null
\Fuman_Db_Record | $record |
getInputTypes() : array<mixed,\Fuman_InputType>
Returns all {@link Fuman_InputType} of {@link Fuman_Table}
getShowInOverviewInputTypes() : array<mixed,\Fuman_InputType>
Gets the overview input types (showInOverview). If none has been found and the $returnFirstAsDefault is true, the first inputType will be returned.
getShowInSummaryInputTypes() : array<mixed,\Fuman_InputType>
Gets input types which should be shown in references. If none has been found and the $returnFirstAsDefault is true, the first inputType will be returned.
getColumnDataType(string $columnName) : \Fuman_Db_DataType
Returns the dataType for columns
string | $columnName |
getColumnDataTypes() : array<mixed,\Fuman_Db_DataType>
Returns the dataType for columns
setInheritedTable(\Fuman_Table $table)
Sets the inherited table {@link Fuman_Table}
\Fuman_Table | $table |
addSubset(\Fuman_Db_Where $where) : void
Adds subset
\Fuman_Db_Where | $where |
getSubset() : \Fuman_Db_Where
Gets subset
addSystemSubset(\Fuman_Db_Where $where) : void
Adds system subset (subsets used for dynamic tables, .
..)
\Fuman_Db_Where | $where |
getSystemSubset() : \Fuman_Db_Where
Gets the system subset subset (subsets used for dynamic tables, .
..)
addChild(\Fuman_Table $child) : void
Add {@link Fuman_Table} as child
\Fuman_Table | $child |
addColumn(\Fuman_Column $column) : void
Add a Column to the Table. A Column can be added multiple times on a Table, but just once with Write Access.
\Fuman_Column | $column |
Exception will be thrown when a {@link Fuman_Column} with write access was already added on the table.
getPreparedRecordSetMeta(boolean $considerRequestOrUserPreference = false) : \Fuman_Db_RecordSetMeta
Returns a {@link Fuman_Db_RecordSetMeta} which got prepared by the {{@link Fuman_InputType} of the {@link Fuman_Table}.
boolean | $considerRequestOrUserPreference |
addInputType(\Fuman_InputType $inputType, boolean $addColumns = true) : void
Add a {@link Fuman_InputType} to the {@link Fuman_Table}.
\Fuman_InputType | $inputType | |
boolean | $addColumns |
removeInputType(string $uniqueName, boolean $removeColumns = false) : \Fuman_InputType
Removes input type
string | $uniqueName | |
boolean | $removeColumns |
getTemplateData(string|null $orderColumn = null, boolean $ascendingOrder = true) : array<mixed,\Fuman_Template_Data>|null
Returns prepared data for front end (design view). Internally calls getDataByRecordSetMeta and creates a record-set-meta by the given arguments.
string|null | $orderColumn | |
boolean | $ascendingOrder |
getTemplateDataByRecordSetMeta(\Fuman_Db_RecordSetMeta|null $recordSetMeta = null, boolean $returnOne = false) : array<mixed,\Fuman_Template_Data>|null
Returns data prepared for frontend (design view). For every record a Fuman_Template_Data object will be created.
\Fuman_Db_RecordSetMeta|null | $recordSetMeta | |
boolean | $returnOne |
getRecord(integer $primaryValue, string|null $aclTableSubsetActionName = null, string|null $recordClass = null, boolean $ignoreSQLColumns = false) : \Fuman_Db_Record|null
Returns a {@link Fuman_Db_Record} or null by a primary Value.
integer | $primaryValue | |
string|null | $aclTableSubsetActionName | |
string|null | $recordClass | |
boolean | $ignoreSQLColumns |
getNewRecord() : \Fuman_Db_Record
Gets a new record for this table
getRecordSet(\Fuman_Db_RecordSetMeta|null $meta = null, string|null $aclTableSubsetActionName = null, string|null $recordClass = null) : \Fuman_Db_RecordSet|array<mixed,\Fuman_Db_Record>
Returns a {@link Fuman_Db_RecordSet}. The given {@link Fuman_Db_RecordSetMeta} will be extended by the subset of the {@link Fuman_Table}.
\Fuman_Db_RecordSetMeta|null | $meta | |
string|null | $aclTableSubsetActionName | |
string|null | $recordClass |
getFirstRecord(\Fuman_Db_RecordSetMeta|null $meta = null, string|null $aclTableSubsetActionName = null, string|null $recordClass = null) : \Fuman_Db_Record
Gets first record from record set
\Fuman_Db_RecordSetMeta|null | $meta | |
string|null | $aclTableSubsetActionName | |
string|null | $recordClass |
countRecords(\Fuman_Db_RecordSetMeta|null $meta = null) : integer
Gets total record count for this table (count(*))
\Fuman_Db_RecordSetMeta|null | $meta |
getRecordIndexOf(\Fuman_Db_Record $record, \Fuman_Db_RecordSetMeta|null $meta = null) : integer
Gets the index of an record in an ordered table
\Fuman_Db_Record | $record | |
\Fuman_Db_RecordSetMeta|null | $meta |
addRelationalColumn(\Fuman_Column_Relation $relationalColumn, string $referencedColumnName) : void
Add relational column
\Fuman_Column_Relation | $relationalColumn | |
string | $referencedColumnName |
getRelationalColumns(string $columnName) : array<mixed,\Fuman_Column_Relation>
Returns a list with all columns which are relational to the given column name
string | $columnName |
getAllRelationalColumns() : array<mixed,\Fuman_Column_Relation>
Return all relational columns
getTemplateUsages() : array<mixed,\Fuman_Template_InputTypeUsage>
Gets usage for templating
_fireRecordTableListeners(\Fuman_Db_Record $record, boolean $deleted, null|string $primaryKey = null) : void
Fires table record listeners
\Fuman_Db_Record | $record | |
boolean | $deleted | |
null|string | $primaryKey |
_setPreparedRecordSetMetaOrder(\Fuman_Db_RecordSetMeta $meta)
\Fuman_Db_RecordSetMeta | $meta |
_prepareDbRecordSetMeta(\Fuman_Db_RecordSetMeta|null $meta = null) : \Fuman_Db_RecordSetMeta
Prepares record set meta for this table (adds subset)
\Fuman_Db_RecordSetMeta|null | $meta |