Beispiel #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_ConsultDialog();
         $entry->setId($row->id)->setFrom_user($row->from_user)->setFrom_role($row->from_role)->setTo_user($row->to_user)->setTo_role($row->to_role)->setMessage($row->message)->setCtime($row->ctime)->setUtime($row->utime)->setStatus($row->status);
         $entry->setNew(false);
         $entries[] = $entry;
     }
     return $entries;
 }