...Человеческий поиск в разработке...
- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/manager.php
- Класс: BitrixTasksManager
- Вызов: Manager::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); }