1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Base

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

 __construct ($id)
 getId ()
 resolve ($entity)
 setFields (array $fields)
 getField ($fieldName)

Защищенные члены

 loadFromDatabase ()
 addField ($fieldName, $internalName, $value)

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

static getInstance ($id)

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

 $id = null
 $fields = null
 $fieldMap = array()

Статические защищенные данные

static $instance = []

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

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

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

◆ __construct()

__construct ( $id)
Аргументы
integer$idEntity identifier.

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

Методы

◆ addField()

addField ( $fieldName,
$internalName,
$value )
protected

Sets new field value only when is not set yet. Adds mapping from field name to it's internal presentation.

Аргументы
string$fieldNameThe name of the field.
string$internalNameInternal name of the field.
string$valueValue to be stored.
Возвращает
void

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

◆ getField()

getField ( $fieldName)

Returns field value.

Аргументы
string$fieldNameName of the field to retrieve data from.
Возвращает
string

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

◆ getId()

getId ( )

Returns entity identifier.

Возвращает
integer

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

◆ getInstance()

getInstance ( $id)
staticprotected
Аргументы
integer$idEntity identifier.

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

◆ loadFromDatabase()

loadFromDatabase ( )
protected

Loads values from database. Returns true on success.

Возвращает
boolean

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

◆ resolve()

resolve ( $entity)

Used to find entity for template processing.

Аргументы
string$entityWhat to find.
Возвращает
\Bitrix\Iblock\Template\Entity\Base

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

◆ setFields()

setFields ( array $fields)

Used to initialize entity fields from some external source.

Аргументы
array$fieldsEntity fields.
Возвращает
void

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

Поля

◆ $fieldMap

$fieldMap = array()
protected

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

◆ $fields

$fields = null
protected

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

◆ $id

$id = null
protected

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

◆ $instance

$instance = []
staticprotected

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/iblock/lib/template/entity/base.php