예제 #1
0
 public function fetchAll($where = null, $orderby = 'updated_date DESC')
 {
     $resultSet = $this->getDbTable()->fetchAll($where, $orderby);
     $entries = array();
     foreach ($resultSet as $row) {
         $entry = new Default_Model_Resume();
         $entry->setResumeId($row->resume_id);
         $entry->setResumeCode($row->resume_code);
         $entry->setFullName($row->full_name);
         $entry->setBirthday($row->birthday);
         $entry->setGender($row->gender);
         $entry->setMaritalStatus($row->marital_status);
         $entry->setStatus($row->status);
         $entry->setEmail1($row->email_1);
         $entry->setEmail2($row->email_2);
         $entry->setMobile1($row->mobile_1);
         $entry->setMobile2($row->mobile_2);
         $entry->setTel($row->tel);
         $entry->setAddress($row->address);
         $entry->setViewCount($row->view_count);
         $entry->setCreatedDate($row->created_date);
         $entry->setUpdatedDate($row->updated_date);
         $entry->setCreatedConsultantId($row->created_consultant_id);
         $entry->setUpdatedConsultantId($row->updated_consultant_id);
         $entries[] = $entry;
     }
     return $entries;
 }