should::getItemsInoperable

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. should
  4. getItemsInoperable
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/manager.php
  • Класс: BitrixTasksshould
  • Вызов: should::getItemsInoperable
static function getItemsInoperable(array $toActionItems, array $currentItems, array $actions)
{
	$inoperable = array();
	foreach($toActionItems as $itemId)
	{
		if(isset($currentItems['DATA'][$itemId]))
		{
			$canDo = false;
			foreach($actions as $action)
			{
				if(static::checkCanDoOnItem($currentItems['CAN'][$itemId], $action))
				{
					$canDo = true;
					break;
				}
			}

			if(!$canDo)
			{
				$inoperable[$itemId] = true;
			}
		}
	}

	return array_keys($inoperable);
}

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