• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/taskliststate.php
  • Класс: CTaskListState
  • Вызов: CTaskListState::setTaskCategory
public function setTaskCategory($categoryId)
{
	$categoryId = (int) $categoryId;

	if ( ! $this->isCategoryExists($categoryId) )
		throw new TasksException('', TasksException::TE_WRONG_ARGUMENTS);

	$roleId = $this->getUserRole();

	$this->state[self::TOC_TASK_CATEGORY_SELECTED][$roleId] = $categoryId;
}