예제 #1
0
파일: show.php 프로젝트: rsesek/nztv
 public static function FetchByName($name)
 {
     $show = new Show();
     $show->set_condition('name = :name');
     $show->name = $name;
     try {
         $show->FetchInto();
         return $show;
     } catch (\phalanx\data\ModelException $e) {
         return NULL;
     }
 }