Esempio n. 1
0
 /**
  * Get the record by id
  *
  * @param string $id
  *
  * @return SeriaRecord
  */
 public function getById($id)
 {
     $seria = parent::getById($id);
     $seria['semester'] = $seria['semester_id'];
     $seria['aktualna'] = $id == $this->kategoria->aktualna_seria_id;
     return new SeriaRecord($seria);
 }
Esempio n. 2
0
 /**
  * Get the record by id
  *
  * @param string $id
  *
  * @return RiesitelRecord
  */
 public function getById($id)
 {
     $data = parent::getById($id);
     $data['datum'] = new \Nette\DateTime();
     return new RiesitelRecord($data);
 }
Esempio n. 3
0
 /**
  * Get the record by id
  *
  * @param string $id
  *
  * @return RiesitelRecord
  */
 public function getById($id)
 {
     return new SkolaRecord(parent::getById($id));
 }
Esempio n. 4
0
 /**
  * Get the record by id
  *
  * @param string $id
  *
  * @return SeriaRecord
  */
 public function getById($id)
 {
     $priklad = parent::getById($id);
     $priklad['seria'] = $priklad['seria_id'];
     return new PrikladRecord($priklad);
 }