isExists()) require_once($filename); else throw new \Bitrix\Main\IO\FileNotFoundException($filename); if(isset($rolesDefinitions)) $def = $rolesDefinitions; else $def = array(); } return $def; } /** * @param string $roleId * @return array graphs * @throws \Bitrix\Main\ArgumentNullException */ public static function getGraphsCategories($roleId) { if($roleId == '') throw new \Bitrix\Main\ArgumentNullException("roleId"); $result = array(); $role = static::getRole($roleId); if(isset($role["GRAPH_CATEGORIES"])) $result = $role["GRAPH_CATEGORIES"]; return $result; } }