Esempio n. 1
0
 /**
  *
  * @param type $pk
  * @return Zend_Db_Table_Row
  * @throws Exception
  */
 public function getItemByPK($pk)
 {
     try {
         $row = $this->_model->findOne($pk);
     } catch (Exception $exc) {
         throw new Exception("Wystąpił błąd podczas pobierania wiersza delegacji! Treść: " . $exc->getMessage());
     }
     if (null == $row) {
         return null;
     }
     if (!Logic_Utilities::delegationAccessControl($row)) {
         throw new Exception("Brak uprawnień do wglądu.");
     }
     return $row;
 }