Base entity
См. определение в файле entity.php строка 25
◆ __clone()
◆ addField()
addField |
( |
|
$fieldInfo, |
|
|
|
$fieldName = null |
|
) |
| |
- Аргументы
-
array | Field | $fieldInfo | |
null | string | $fieldName | |
- Возвращает
- Field|false
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле entity.php строка 527
◆ appendField()
appendField |
( |
Field |
$field | ) |
|
|
protected |
- Аргументы
-
- Возвращает
- bool
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле entity.php строка 462
◆ camel2snake()
static camel2snake |
( |
|
$str | ) |
|
|
static |
- Аргументы
-
- Возвращает
- string
См. определение в файле entity.php строка 859
◆ cleanCache()
Cleans all cache entries for the entity.
См. определение в файле entity.php строка 1397
◆ compileCollectionClass()
static compileCollectionClass |
( |
|
$dataClass | ) |
|
|
static |
- Аргументы
-
- Возвращает
- Collection|string
См. определение в файле entity.php строка 1195
◆ compileObjectClass()
static compileObjectClass |
( |
|
$dataClass | ) |
|
|
static |
- Аргументы
-
- Возвращает
- EntityObject|string
См. определение в файле entity.php строка 1157
◆ createCollection()
- Возвращает
- null Actual type should be annotated by orm:annotate
См. определение в файле entity.php строка 419
◆ createDbTable()
Creates table according to Fields collection
- Возвращает
- void
- Исключения
-
SystemException
См. определение в файле entity.php строка 1234
◆ createObject()
createObject |
( |
|
$setDefaultValues = true | ) |
|
- Аргументы
-
- Возвращает
- null Actual type should be annotated by orm:annotate
См. определение в файле entity.php строка 410
◆ destroy()
static destroy |
( |
|
$entity | ) |
|
|
static |
- Аргументы
-
- Возвращает
- bool
См. определение в файле entity.php строка 1247
◆ enableFullTextIndex()
enableFullTextIndex |
( |
|
$field, |
|
|
|
$mode = true |
|
) |
| |
Sets a flag indicating full text index support for a field.
- Аргументы
-
См. определение в файле entity.php строка 1414
◆ fullTextIndexEnabled()
fullTextIndexEnabled |
( |
|
$field | ) |
|
Returns true if full text index is enabled for a field.
- Аргументы
-
- Возвращает
- bool
См. определение в файле entity.php строка 1425
◆ get()
static get |
( |
|
$entityName | ) |
|
|
static |
Returns entity object
- Аргументы
-
- Возвращает
- Entity
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле entity.php строка 76
◆ getAutoIncrement()
◆ getCacheDir()
◆ getCacheTtl()
Returns cache TTL for the entity, possibly limited by the .settings.php: 'cache_flags' => array('value'=> array( "b_group_max_ttl" => 200, "b_group_min_ttl" => 100, )) Maximum is a higher-priority.
- Аргументы
-
- Возвращает
- int Calculated TTL
См. определение в файле entity.php строка 1374
◆ getCode()
◆ getCollectionClass()
- Возвращает
- Collection|string
См. определение в файле entity.php строка 383
◆ getCollectionClassName()
getCollectionClassName |
( |
| ) |
|
- Возвращает
- Collection|string
См. определение в файле entity.php строка 392
◆ getDataClass()
- Возвращает
- DataManager|string
См. определение в файле entity.php строка 697
◆ getDBTableName()
◆ getDefaultCollectionClassName()
static getDefaultCollectionClassName |
( |
|
$entityName | ) |
|
|
static |
◆ getDefaultObjectClassName()
static getDefaultObjectClassName |
( |
|
$entityName | ) |
|
|
static |
◆ getEntityClassParts()
static getEntityClassParts |
( |
|
$class | ) |
|
|
static |
◆ getField()
- Аргументы
-
- Возвращает
- Field|ScalarField
- Исключения
-
ArgumentException
См. определение в файле entity.php строка 567
◆ getFields()
◆ getFullName()
◆ getInstance()
static getInstance |
( |
|
$entityName | ) |
|
|
static |
- Аргументы
-
- Возвращает
- Entity
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле entity.php строка 103
◆ getLangCode()
◆ getModule()
◆ getName()
◆ getNamespace()
◆ getObjectClass()
Returns class of Object for current entity.
- Возвращает
- EntityObject|string
См. определение в файле entity.php строка 348
◆ getObjectClassName()
Returns class name of Object for current entity.
- Возвращает
- EntityObject|string
См. определение в файле entity.php строка 359
◆ getPrimary()
◆ getPrimaryArray()
◆ getReferencesCountTo()
getReferencesCountTo |
( |
|
$refEntityName | ) |
|
◆ getReferencesTo()
getReferencesTo |
( |
|
$refEntityName | ) |
|
◆ getScalarFields()
- Возвращает
- ScalarField[]
См. определение в файле entity.php строка 587
◆ getTitle()
◆ getUfId()
◆ getUField()
- Аргументы
-
- Возвращает
- UField
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле entity.php строка 611
◆ has()
static has |
( |
|
$entityName | ) |
|
|
static |
Checks if entity exists
- Аргументы
-
- Возвращает
- bool
См. определение в файле entity.php строка 88
◆ hasField()
◆ initializeField()
initializeField |
( |
|
$fieldName, |
|
|
|
$fieldInfo |
|
) |
| |
Fields factory
- Аргументы
-
string | $fieldName | |
array | Field | $fieldInfo | |
- Возвращает
- Field
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле entity.php строка 151
◆ isExists()
◆ isUtm()
◆ isUts()
◆ normalizeEntityClass()
static normalizeEntityClass |
( |
|
$entityName | ) |
|
|
static |
- Аргументы
-
- Возвращает
- string|DataManager
См. определение в файле entity.php строка 769
◆ normalizeName()
static normalizeName |
( |
|
$entityName | ) |
|
|
static |
◆ onUserTypeChange()
static onUserTypeChange |
( |
|
$userfield, |
|
|
|
$id = null |
|
) |
| |
|
static |
◆ postInitialize()
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле entity.php строка 262
◆ readFromCache()
readFromCache |
( |
|
$ttl, |
|
|
|
$cacheId, |
|
|
|
$countTotal = false |
|
) |
| |
Reads data from cache.
- Аргументы
-
int | $ttl | TTL. |
string | $cacheId | The cache ID. |
bool | $countTotal | Whether to read total count from the cache. |
- Возвращает
- Main\DB\ArrayResult|null
- Исключения
-
SystemException
См. определение в файле entity.php строка 1313
◆ reinitialize()
reinitialize |
( |
|
$className | ) |
|
Reinitializing entity object for another Table class. Can be useful for complex inheritance with cloning.
- Аргументы
-
- Исключения
-
SystemException
См. определение в файле entity.php строка 249
◆ setDefaultScope()
setDefaultScope |
( |
|
$query | ) |
|
- Аргументы
-
- Возвращает
- Query
См. определение в файле entity.php строка 753
◆ snake2camel()
static snake2camel |
( |
|
$str | ) |
|
|
static |
- Аргументы
-
- Возвращает
- mixed
См. определение в файле entity.php строка 871
◆ wakeUpCollection()
wakeUpCollection |
( |
|
$rows | ) |
|
- См. также
- Collection::wakeUp()
- Аргументы
-
- Возвращает
- null Actual type should be annotated by orm:annotate
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле entity.php строка 449
◆ wakeUpObject()
- См. также
- EntityObject::wakeUp()
- Аргументы
-
- Возвращает
- null Actual type should be annotated by orm:annotate
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле entity.php строка 434
◆ writeToCache()
writeToCache |
( |
Main\DB\Result |
$result, |
|
|
|
$cacheId, |
|
|
|
$countTotal = false |
|
) |
| |
- Аргументы
-
Main\DB\Result | $result | A query result to cache. |
string | $cacheId | The cache ID. |
bool | $countTotal | Whether to write total count to the cache. |
- Возвращает
- Main\DB\ArrayResult
- Исключения
-
ObjectPropertyException
- Исключения
-
SystemException
См. определение в файле entity.php строка 1347
◆ $autoIncrement
◆ $className
◆ $code
◆ $connectionName
◆ $dbTableName
◆ $fields
◆ $fieldsMap
◆ $instances
◆ $isClone
◆ $isUtm
◆ $isUts
◆ $module
◆ $name
◆ $primary
◆ $references
◆ $u_fields
◆ $uf_id
◆ $ufIdIndex
◆ DEFAULT_OBJECT_PREFIX
const DEFAULT_OBJECT_PREFIX = 'EO_' |