Bitrix-D7 23.9
 
Указатель Классы Пространства имен Функции Переменные
Загрузка...
Поиск...
Не найдено
Пространство имен Bitrix\UI\EntityEditor

Классы

class  Action
 
class  BaseProvider
 
interface  ReturnsEditorFields
 

Функции

 getUfEntityId ()
 
 getUfPrefix ()
 
 getFields ()
 
 getUfComponentFields ()
 
 getUfEntityFields ()
 
 fillUfEntityFields (array $fields)
 
 fillUfEntityData (array $entityData)
 
 getUfEntityData ()
 

Переменные

trait ProviderWithUserFieldsTrait
 

Функции

◆ fillUfEntityData()

fillUfEntityData ( array $entityData)
protected

Filling in entity data of UF data.

Example:

public function getEntityData(): array
{
$result = [];
// ...fill values of entity fields...
$result = $this->fillUfEntityData($result);
return $result;
}
Аргументы
array$entityData
Возвращает
array

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

◆ fillUfEntityFields()

fillUfEntityFields ( array $fields)
protected

Filling in the entity fields of UF data.

Example:

public function getEntityFields(): array
{
$fields = [
[
'name' => 'TITLE',
],
// ...
];
$fields = $this->fillUfEntityFields($fields);
return $fields;
}
Аргументы
array$fields
Возвращает
array

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

◆ getFields()

getFields ( )

Override BaseProvider method.

См. также
\Bitrix\UI\EntityEditor\BaseProvider
Возвращает
array

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

◆ getUfComponentFields()

getUfComponentFields ( )
protected

Component params.

Возвращает
array

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

◆ getUfEntityData()

getUfEntityData ( )
protected

Returns formatted values for the ENTITY_DATA parameter.

Аргументы
array$field
Возвращает
array

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

◆ getUfEntityFields()

getUfEntityFields ( )
protected

Entity fields info of user fields.

См. также
\Bitrix\UI\EntityEditor\BaseProvider method getEntityFields
Возвращает
array

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

◆ getUfEntityId()

getUfEntityId ( )
abstract

User field ENTITY_ID

Возвращает
string

◆ getUfPrefix()

getUfPrefix ( )
abstract

The prefix for UF codes

Возвращает
string

Переменные

◆ ProviderWithUserFieldsTrait

trait ProviderWithUserFieldsTrait
Инициализатор
{
protected $userFieldInfos = null

A trait to expand the functionality of the provider and the ability to work with UF fields.

For start, you need:

  1. implement method getUfEntityId
  2. append UF info to entity fields - see method ::fillUfEntityFields
  3. append UF values to entity data - see method ::fillUfEntityData

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