Esempio n. 1
0
 public function GetAllowableOperations($documentType)
 {
     $iblockId = intval(substr($documentType, strlen("iblock_")));
     if ($iblockId <= 0) {
         throw new CBPArgumentOutOfRangeException("documentType", $documentType);
     }
     if (CIBlock::GetArrayByID($iblockId, "RIGHTS_MODE") === "E") {
         $operations = array();
         $tasks = self::getRightsTasks();
         foreach ($tasks as $ar) {
             $key = empty($ar['LETTER']) ? $ar['ID'] : $ar['LETTER'];
             $operations[$key] = $ar['TITLE'];
         }
         return $operations;
     }
     return parent::GetAllowableOperations($documentType);
 }