Beispiel #1
0
 public function IsAlreadyDownloaded()
 {
     $ep = new Episode();
     $ep->set_condition('show_id = :show_id AND season = :season AND episode = :episode');
     $ep->show_id = $this->show()->show_id;
     $ep->season = $this->season;
     $ep->episode = $this->episode;
     try {
         $result = $ep->Fetch();
         return $result != NULL;
     } catch (\phalanx\data\ModelException $e) {
         return FALSE;
     }
 }