Ejemplo n.º 1
0
 public static function fetchAll($where = null, $order = null, $limit = null, $offset = null)
 {
     $resultSet = self::getDbTable()->fetchAll($where, $order, $limit, $offset);
     $entries = array();
     foreach ($resultSet as $row) {
         $entry = new Application_Model_O_Travel();
         $entry->setId($row->id)->setType($row->type)->setLocation_type($row->location_type)->setAdult_oprice($row->adult_oprice)->setAdult_dprice($row->adult_dprice)->setChild_oprice($row->child_oprice)->setChild_dprice($row->child_dprice)->setArea($row->area)->setSales($row->sales)->setTitle($row->title)->setSubtitle($row->subtitle)->setImg($row->img)->setCtime($row->ctime)->setUtime($row->utime)->setStatus($row->status);
         $entry->setNew(false);
         $entries[] = $entry;
     }
     return $entries;
 }