예제 #1
0
{
    /** 
   * @inject
   * @var DbTable\Druh */
    public $druh;
    /**
   * @inject 
   * @var DbTable\Udaje_typ */
예제 #2
0
  /** 
 * Akcia pre editaciu udaju 
 * @param int $id */
  public function actionEdit($id)
  {
      if (($pol_udaje = $this->udaje->find($id)) === FALSE) {
          $this->setView('notFound');
      } else {
          $this["editUdajeForm"]->setDefaults($pol_udaje);
          $this["editUdajeForm"]->setDefaults(['spravca' => $pol_udaje->id_registracia == $this->ur_reg['admin'] ? 0 : 1, 'druh_null' => $pol_udaje->id_druh == NULL ? 1 : 0]);
      }
  }
  public function renderDefault()