Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Model
+ Граф наследования:Model:

Открытые члены

 __construct ()
 
 save ()
 
 delete ()
 
 getId ()
 
 setId ($id)
 
 getCreatedAt ()
 
 setCreatedAt (DateTime $createdAt)
 
 getUpdatedAt ()
 
 setUpdatedAt (DateTime $updatedAt)
 
 loadAttribute ($attributeName)
 
 getErrors ()
 
 getCurrentDbState ()
 

Открытые статические члены

static getTableClassName ()
 
static getMapAttributes ()
 
static getMapReferenceAttributes ()
 
static getClassName ()
 
static load ($filter, array $with=array(), $order=array())
 
static loadById ($id)
 
static factoryWithHorizontalCells ($cellCount=1)
 

Открытые атрибуты

const ATTRIBUTE_SLICE_DELIMITER = '__'
 

Защищенные статические члены

static getModelList (array $parameters)
 
static prepareGetListParameters (array $parameters)
 

Защищенные данные

 $id
 
 $createdAt
 
 $updatedAt
 
 $errors
 

Подробное описание

См. определение в файле model.php строка 17

Конструктор(ы)

◆ __construct()

__construct ( )

Model constructor.

Переопределяется в Widget.

См. определение в файле model.php строка 31

Методы

◆ delete()

delete ( )
Возвращает
bool|null

Переопределяется в Widget.

См. определение в файле model.php строка 584

◆ factoryWithHorizontalCells()

static factoryWithHorizontalCells ( $cellCount = 1)
static

См. определение в файле model.php строка 876

◆ getClassName()

static getClassName ( )
static
Возвращает
string

См. определение в файле model.php строка 310

◆ getCreatedAt()

getCreatedAt ( )
Возвращает
DateTime

См. определение в файле model.php строка 701

◆ getCurrentDbState()

getCurrentDbState ( )
Возвращает
array

См. определение в файле model.php строка 870

◆ getErrors()

getErrors ( )
Возвращает
array

Замещает IErrorable.

См. определение в файле model.php строка 862

◆ getId()

getId ( )
Возвращает
mixed

См. определение в файле model.php строка 684

◆ getMapAttributes()

static getMapAttributes ( )
static

Returns the list of pair for mapping data and object properties. Key is field in DataManager, value is object property.

Возвращает
array

Переопределяется в Configuration, Dashboard, DashboardRow, Report и Widget.

См. определение в файле model.php строка 53

◆ getMapReferenceAttributes()

static getMapReferenceAttributes ( )
static

Returns map of lazy loaded attributes of current model. supported relation types ONE_TO_MANY, MANY_TO_ONE, MANY_TO_MANY example: array( 'lazyLoadAttributeName_1' => array( 'type' => Common::ONE_TO_MANY, 'targetEntity' => TargetEntityClass::getClassName(), //inheritor of this class 'mappedBy' => 'targetEntityField', ), 'lazyLoadAttributeName_2' => array( 'type' => Common::MANY_TO_ONE, 'targetEntity' => TargetEntityClass::getClassName(), //inheritor of this class 'inveredBy' => '', 'join' => array( 'field' => array('thisFieldName', 'relationEntityFieldMame') ) ), 'lazyLoadAttributeName_1' => array( 'type' => Common::MANY_TO_MANY, 'targetEntity' => TargetEntityClass::getClassName(), //inheritor of this class 'join' => array( 'tableClassName' => TableClassName::getClassName //Supporting table ORM class name for connecting 2 entities 'column' => array(SUPPORTING_CONNECT_COLUMN => array('thisPrimaryFieldName', 'SUPPORTING_TABLE_APPROPRIATE_FIELD_NAME')), 'inverseColumn' => array(SUPPORTING_CONNECT_COLUMN => array('relationEntityPrimaryFieldName', 'SUPPORTING_TABLE_APPROPRIATE_FIELD_NAME')), ), ) )

Возвращает
array

Переопределяется в Dashboard, DashboardRow, Report и Widget.

См. определение в файле model.php строка 92

◆ getModelList()

static getModelList ( array $parameters)
staticprotected

Get model list like getList

Аргументы
array$parameters
Возвращает
static[]

См. определение в файле model.php строка 338

◆ getTableClassName()

static getTableClassName ( )
static

Gets the fully qualified name of table class which belongs to current model.

Исключения

Bitrix\Main\NotImplementedException

Возвращает
string

Переопределяется в Configuration, Dashboard, DashboardRow, Report и Widget.

См. определение в файле model.php строка 42

◆ getUpdatedAt()

getUpdatedAt ( )
Возвращает
DateTime

См. определение в файле model.php строка 718

◆ load()

static load ( $filter,
array $with = array(),
$order = array() )
static
Аргументы
array | ConditionTree$filterFilter parameters.
array$withRelation keys to load.
array$orderOrder parameters.
Возвращает
static

См. определение в файле model.php строка 322

◆ loadAttribute()

loadAttribute ( $attributeName)
Аргументы
string$attributeNameAttribute name to load to property from db.
Возвращает
void

См. определение в файле model.php строка 746

◆ loadById()

static loadById ( $id)
static
Аргументы
mixed$idLoad entity by id.
Возвращает
static

См. определение в файле model.php строка 736

◆ prepareGetListParameters()

static prepareGetListParameters ( array $parameters)
staticprotected
Аргументы
array$parameters
Исключения

Bitrix\Main\SystemException

Возвращает
array

См. определение в файле model.php строка 496

◆ save()

save ( )
Возвращает
Model

См. определение в файле model.php строка 101

◆ setCreatedAt()

setCreatedAt ( DateTime $createdAt)
Аргументы
DateTime$createdAtRecord create time.
Возвращает
void

См. определение в файле model.php строка 710

◆ setId()

setId ( $id)
Аргументы
mixed$idId property value.
Возвращает
void

См. определение в файле model.php строка 693

◆ setUpdatedAt()

setUpdatedAt ( DateTime $updatedAt)
Аргументы
DateTime$updatedAtRecord update time.
Возвращает
void

См. определение в файле model.php строка 727

Данные класса

◆ $createdAt

$createdAt
protected

См. определение в файле model.php строка 21

◆ $errors

$errors
protected

См. определение в файле model.php строка 23

◆ $id

$id
protected

См. определение в файле model.php строка 20

◆ $updatedAt

$updatedAt
protected

См. определение в файле model.php строка 22

◆ ATTRIBUTE_SLICE_DELIMITER

const ATTRIBUTE_SLICE_DELIMITER = '__'

См. определение в файле model.php строка 19