Bitrix API

Configuration extends Model

Class Configuration

Table of Contents

Constants

ATTRIBUTE_SLICE_DELIMITER  = '__'

Methods

__call()  : void
Implement delete and add actions for nested relations.
__construct()  : mixed
Model constructor.
delete()  : bool|null
factoryWithHorizontalCells()  : mixed
getClassName()  : string
getCreatedAt()  : DateTime
getCurrentDbState()  : array<string|int, mixed>
getErrors()  : array<string|int, mixed>
Get Errors collections.
getFieldClassName()  : string
getGId()  : string
getId()  : mixed
getKey()  : mixed
getMapAttributes()  : array<string|int, mixed>
Returns the list of pair for mapping data and object properties.
getMapReferenceAttributes()  : array<string|int, mixed>
Returns map of lazy loaded attributes of current model.
getTableClassName()  : string
Gets the fully qualified name of table class which belongs to current model.
getUpdatedAt()  : DateTime
getValue()  : mixed
getWeight()  : int
load()  : static
loadAttribute()  : void
loadById()  : static
loadByIds()  : array<string|int, static>
Load configuration list by ids, query to db and after build configuration entities list
save()  : Model
setCreatedAt()  : void
setFieldClassName()  : void
Set field class name.
setGId()  : void
Setter for gId value.
setId()  : void
setKey()  : void
setUpdatedAt()  : void
setValue()  : void
Serialize and set value.
setWeight()  : void
Weight value for sorting.

Constants

ATTRIBUTE_SLICE_DELIMITER

public mixed ATTRIBUTE_SLICE_DELIMITER = '__'

Methods

__call()

Implement delete and add actions for nested relations.

public __call(string $name, array<string|int, mixed> $arguments) : void
Parameters
$name : string

Getter name.

$arguments : array<string|int, mixed>

Arguments passed to getter.

__construct()

Model constructor.

public __construct() : mixed

delete()

public delete() : bool|null
Return values
bool|null

factoryWithHorizontalCells()

public static factoryWithHorizontalCells([mixed $cellCount = 1 ]) : mixed
Parameters
$cellCount : mixed = 1

getClassName()

public static getClassName() : string
Return values
string

getCurrentDbState()

public getCurrentDbState() : array<string|int, mixed>
Return values
array<string|int, mixed>

getErrors()

Get Errors collections.

public getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFieldClassName()

public getFieldClassName() : string
Return values
string

getId()

public getId() : mixed

getMapAttributes()

Returns the list of pair for mapping data and object properties.

public static getMapAttributes() : array<string|int, mixed>

Key is field in DataManager, value is object property.

Return values
array<string|int, mixed>

getMapReferenceAttributes()

Returns map of lazy loaded attributes of current model.

public static getMapReferenceAttributes() : array<string|int, mixed>

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')), ), ) )

Return values
array<string|int, mixed>

getTableClassName()

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

public static getTableClassName() : string
Return values
string

load()

public static load(array<string|int, mixed>|ConditionTree $filter[, array<string|int, mixed> $with = array() ][, array<string|int, mixed> $order = array() ]) : static
Parameters
$filter : array<string|int, mixed>|ConditionTree

Filter parameters.

$with : array<string|int, mixed> = array()

Relation keys to load.

$order : array<string|int, mixed> = array()

Order parameters.

Return values
static

loadAttribute()

public loadAttribute(string $attributeName) : void
Parameters
$attributeName : string

Attribute name to load to property from db.

loadById()

public static loadById(mixed $id) : static
Parameters
$id : mixed

Load entity by id.

Return values
static

loadByIds()

Load configuration list by ids, query to db and after build configuration entities list

public static loadByIds(array<string|int, mixed> $ids) : array<string|int, static>
Parameters
$ids : array<string|int, mixed>

Array of id.

Return values
array<string|int, static>

setCreatedAt()

public setCreatedAt(DateTime $createdAt) : void
Parameters
$createdAt : DateTime

Record create time.

setFieldClassName()

Set field class name.

public setFieldClassName(string $fieldClassName) : void
Parameters
$fieldClassName : string

Field class name.

Tags
see
Base::getClassName()

setGId()

Setter for gId value.

public setGId(string $gId) : void
Parameters
$gId : string

Value of gId.

setId()

public setId(mixed $id) : void
Parameters
$id : mixed

Id property value.

setKey()

public setKey(mixed $key) : void
Parameters
$key : mixed

Unique key for configuration in context.

setUpdatedAt()

public setUpdatedAt(DateTime $updatedAt) : void
Parameters
$updatedAt : DateTime

Record update time.

setValue()

Serialize and set value.

public setValue(mixed $value) : void
Parameters
$value : mixed

Value to set.

setWeight()

Weight value for sorting.

public setWeight(int $weight) : void
Parameters
$weight : int

Weight value.


        
On this page

Search results