Exemplo n.º 1
0
 /**
  * Load postes SSPI
  *
  * @param int  $permType  Permission level
  * @param bool $load_bloc Load blocs
  *
  * @return CPosteSSPI[]
  */
 function loadPostes($permType = PERM_READ, $load_bloc = true)
 {
     $poste = new CPosteSSPI();
     $where = array("group_id" => "= '{$this->_id}'");
     /** @var CPosteSSPI[] $postes */
     $postes = $poste->loadListWithPerms($permType, $where, "nom");
     if ($load_bloc) {
         foreach ($postes as $_poste) {
             $_poste->loadRefBloc();
         }
     }
     return $this->_ref_postes = $postes;
 }