Пример #1
0
 public function update($user, $id)
 {
     $data = unset_if_empty($user, array('email_id', 'phone_no', 'full_name'));
     return $this->updateRecord(TBL_PASSENGER, array('id' => $id), $data);
 }
Пример #2
0
 public function update($id, $data)
 {
     $data = unset_if_empty($data);
     return $this->updateRecord(TBL_VEHICALS, array('id' => $id), $data);
 }