Ejemplo n.º 1
0
 public function modify($stateId, $name, $status)
 {
     global $STATUS;
     if (!empty($stateId) && !empty($name)) {
         $newData = array('name' => $name);
         if (in_array($status, array(0, 1))) {
             $newData['status'] = $STATUS[$status];
         }
         $where = array('state_id' => array('op' => '=', 'val' => $stateId));
         return parent::update($newData, $where);
     }
 }
Ejemplo n.º 2
0
 protected function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 3
0
 public function getById($jobId)
 {
     return parent::select(array('job_id' => array('op' => '=', 'val' => $jobId)));
 }
Ejemplo n.º 4
0
 public function getById($cityId)
 {
     return parent::select(array('city_id' => array('op' => '=', 'val' => $cityId)));
 }
Ejemplo n.º 5
0
 public function getById($stateId)
 {
     return parent::select(array('state_id' => array('op' => '=', 'val' => $stateId)));
 }
Ejemplo n.º 6
0
 public function getById($qualificationId)
 {
     return parent::select(array('qualification_id' => array('op' => '=', 'val' => $qualificationId)));
 }
Ejemplo n.º 7
0
 public function modify($employer_login_id, $login_type, $fullname, $phone, $passwd, $company_id, $status, $update_by)
 {
     return parent::update(array('login_type' => $login_type, 'fullname' => $fullname, 'phone' => $phone, 'passwd' => $passwd, 'last_update_date' => time(), 'status' => $status, 'update_by' => $update_by), array('employer_login_id' => array('op' => '=', 'val' => $employer_login_id)));
 }
Ejemplo n.º 8
0
 public function create($title, $description_1, $company_id, $job_id, $qualification_id, $current_job_id, $experience, $description_2, $keywords)
 {
     global $STATUS;
     return parent::add(array('title' => $title, 'description_1' => $description_1, 'company_id' => $company_id, 'job_id' => $job_id, 'qualification_id' => $qualification_id, 'current_job_id' => $current_job_id, 'experience' => $experience, 'description_2' => $description_2, 'keywords' => $keywords, 'status' => $STATUS[0]));
 }
Ejemplo n.º 9
0
 public function modify($company_id, $name, $contact_persion, $contact_no, $email, $address1, $status, $update_by)
 {
     global $STATUS;
     return parent::update(array('name' => $name, 'contact_person' => $contact_persion, 'contact_number' => $contact_no, 'email' => $email, 'address1' => $address1, 'last_update_date' => time(), 'status' => $STATUS[$status], 'update_by' => $update_by), array('company_id' => array('op' => '=', 'val' => $company_id)));
 }
Ejemplo n.º 10
0
 public function deleteByCompanyId($id)
 {
     return parent::delete(array('company_id' => array('op' => '=', 'val' => $id)));
 }