'.$this->jmeno.' '.$this->prijmeni.'','rozvrh/lektor?id='.$this->id); if ($this->specializace<>'') $str .= ' ('.$this->specializace.')'; if (($this->email<>'') or ($this->telefon<>'')) $str .= '
'.$this->telefon.' '; if ($this->email<>'') $str .= ''.$this->email.''; if ($this->Agentura->nazev<>$this->jmeno) $str .= '
'.link_to($this->Agentura->nazev,'rozvrh/agentura?id='.$this->Agentura->id,array ("style" => "font-weight: normal;")); return $str; } public function getLektorHtmlLong() { $str = ''.$this->jmeno.' '.$this->prijmeni.''; if ($this->specializace<>'') $str .= ' ('.$this->specializace.')'; if (($this->email<>'') or ($this->telefon<>'')) $str .= '
'.$this->telefon.' '.$this->email; if ($this->Agentura->nazev<>$this->jmeno) $str .= '
'.$this->Agentura->nazev; return $str; } public function __toString() { return $this->prijmeni.' '.$this->jmeno; } public function fullDelete() { Doctrine::getTable('Kurz_beh')->setOption('ignore_archive', true); foreach($this->getKurz_beh_list() as $beh) { $beh->fullDelete(); } $this->delete(); } }