• Модуль: highloadblock
  • Путь к файлу: ~/bitrix/modules/highloadblock/lib/highloadblockrightstable.php
  • Класс: BitrixHighloadblockHighloadBlockRightsTable
  • Вызов: HighloadBlockRightsTable::getOperationsName
static function getOperationsName($hlId)
{
	$operations = array();
	$uid = $GLOBALS['USER']->getId();//@fixme
	$acc = new CAccess;
	$acc->UpdateCodes();

	$res = BitrixHighloadBlockHighloadBlockRightsTable::getList(array(
			'select' => array(
				'HL_ID',
				'OPNAME' => 'TASK_OPERATION.OPERATION.NAME'
			),
			'filter' => array(
				'HL_ID' => $hlId,
				'USER_ACCESS.USER_ID' => $uid,
				'!TASK_OPERATION.OPERATION.NAME' => false
			)
		));
	while ($row = $res->fetch())
	{
		if (!isset($operations[$row['HL_ID']]))
		{
			$operations[$row['HL_ID']] = array();
		}
		$operations[$row['HL_ID']][] = $row['OPNAME'];
	}

	return is_array($hlId) ? $operations : $operations[$hlId];
}