• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/util/user.php
  • Класс: BitrixTasksUtilUser
  • Вызов: User::getAccessOperationsForEntity
static function getAccessOperationsForEntity($entityName)
{
	$entityName = trim((string) $entityName);
	if($entityName == '')
	{
		return array();
	}

	if(!array_key_exists($entityName, static::$accessOperations))
	{
		// todo: there could be php cache

		$res = OperationTable::getList(array(
			'filter' => array(
				'=MODULE_ID' => 'tasks',
				'=BINDING' => $entityName,
			)
		));
		$operations = array();
		while($item = $res->fetch())
		{
			$operations[$item['ID']] = $item;
		}

		static::$accessOperations[$entityName] = $operations;
	}

	return static::$accessOperations[$entityName];
}