• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/item.php
  • Класс: BitrixTasksItem
  • Вызов: Item::setAccessController
public function setAccessController($instance)
{
	if($this->isImmutable())
	{
		return; // todo: throw NotAllowedException?
	}

	// actually, there should be like "immutable" attribute
	//		if(!$this->configurable)
	//		{
	//			throw new SystemException('Controller is non-configurable');
	//		}

	$this->accessController = $instance;
}