DataSource::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. DataSource
  4. __construct
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/widget/data/datasource.php
  • Класс: Bitrix\Crm\Widget\Data\DataSource
  • Вызов: DataSource::__construct
public function __construct(array $settings, $userID = 0, $enablePermissionCheck = true)
{
	$this->settings = $settings;

	if(!is_int($userID))
	{
		$userID = (int)$userID;
	}
	if($userID <= 0)
	{
		$userID = \CCrmSecurityHelper::GetCurrentUserID();
	}
	$this->userID = $userID;
	if(!is_bool($enablePermissionCheck))
	{
		$enablePermissionCheck = (bool)$enablePermissionCheck;
	}
	$this->enablePermissionCheck = $enablePermissionCheck;
	$this->filterContextData = array();
}

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