Class Model
Class Model definition.
Direct known subclasses
CMS\Models\CMSHelp
,
CMS\Models\CMSUser
,
CMS\Models\CMSUserRole
Namespace: Core\Base
Used by: CMS\Helpers\Export::populateCsvfileCustomQuery()
Located at base/model.php
Methods summary
final public
|
|
final public
boolean
|
|
final public
|
|
final public
mixed
|
|
final public
boolean
|
|
final public
|
|
final public
object|array
|
|
final public
|
|
final public
|
|
final public
|
|
final public
array
|
|
final public
boolean
|
|
final public
mixed
|
|
final public
|
|
final public
|
|
private
|
|
private
object
|
|
private
array
|
#
hasAndBelongsToMany( array $association, string $name )
Get the all associated objects of the "has and belongs to many" association. |
private
|
|
private
|
|
private
|
|
private
|
|
private
|
#
populateFields( array $params )
Populates the object fields with content mainly called from the constructor. |
private
|
|
private
array
|
|
private
array
|
#
extractFieldsI18n( boolean $include_associations = false )
Prepare the object i18n fields suitable for database queries. |
private
boolean
|
|
private
boolean
|
|
private
boolean
|
|
private
|
|
private
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
final public
boolean
|
|
final public
boolean
|
|
final public static
|
|
final public
boolean
|
|
final public static
string
|
|
final public static
string
|
|
final public static
string
|
|
public
array
|
|
public static
array
|
|
public static
array
|
|
public static
array
|
|
public
array
|
|
public
array
|
|
public
mixed
|
|
public
array|false
|
|
public
|
|
public
string
|
Properties summary
public
array
|
$listeners
Observer listeners. |
#
array()
|
public static
string
|
$tableName
Name of the table. |
#
null
|
protected static
string
|
$primaryKeyField
The primary key field. |
#
'id'
|
protected
array
|
$fields
Stores all database fields of the object. |
#
array()
|
protected
array
|
$errors
Stores the errors that may occur during query executions or validation. |
#
array()
|
public
array
|
$belongsTo
Stores all associations of type "belongs to". |
#
array()
|
public
array
|
$hasMany
Stores all associations of type "has many". |
#
array()
|
public
array
|
$hasAndBelongsToMany
Stores all associations of type "has and belongs to many" (habtm). |
#
array()
|
public static
boolean
|
$isI18n
Whether the table we're looking at has a corresponding table, holding internationalized values. |
#
false
|
public static
string
|
$i18nTableName
Name of the corresponding i18n table. |
|
public static
string
|
$i18nLocale
Keeps the currently selected locale identifier. |
|
protected
array
|
$fieldsI18n
Info about multilingual columns. |
#
null
|
protected static
string
|
$i18nForeignKeyField
Name of the foreign key field for i18n tables. |
#
'i18n_foreign_key'
|
protected static
string
|
$i18nLocaleField
Name of the locale field for i18n tables. |
#
'i18n_locale'
|
protected static
string
|
$i18nTableNameSuffix
Suffix to be appended to the corresponding i18n table if not i18nTableName presented. |
#
'_i18n'
|
protected static
string
|
$i18nJoinType
Join type for i18n data. |
#
'INNER'
|
protected
string
|
$i18nLocalisation
Localisation. |
|
protected
|
$query
Query object to be used for communication with the DB layer. |