PreselectedItem::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. ui
  3. PreselectedItem
  4. __construct
  • Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/entityselector/preselecteditem.php
  • Класс: BitrixUIEntitySelectorPreselectedItem
  • Вызов: PreselectedItem::__construct
public function __construct(array $options)
{
	$id = $options['id'] ?? null;
	if ((is_string($id) && $id !== '') || is_int($id))
	{
		$this->id = $id;
	}

	$entityId = $options['entityId'] ?? null;
	if (is_string($entityId) && $entityId !== '')
	{
		$this->entityId = strtolower($entityId);
	}
}

Добавить комментарий