Ejemplo n.º 1
0
 protected static function getRightsTasks()
 {
     if (self::$cachedTasks === null) {
         $iterator = CTask::getList(array("LETTER" => "asc"), array("MODULE_ID" => "iblock", "BINDING" => "iblock"));
         while ($ar = $iterator->fetch()) {
             self::$cachedTasks[$ar["LETTER"]] = $ar;
         }
     }
     return self::$cachedTasks;
 }
Ejemplo n.º 2
0
 protected function loadDiskTasks()
 {
     if ($this->diskTasks !== null) {
         return;
     }
     $this->diskTasks = array();
     /** @noinspection PhpUndefinedClassInspection */
     $query = \CTask::getList(array('ID' => 'asc'), array('MODULE_ID' => 'disk'));
     while ($task = $query->fetch()) {
         $this->diskTasks[$task['ID']] = $task;
     }
     return;
 }