public function update($_post) { $filter = "`userid` = " . $this->getUser()->id; $data = $this->prepare($_post); $success = parent::update($data, $filter, $this->table); if ($success) { return $_post; } else { throw new Exception("Update failed.", 1); } }
public function update($_post) { $filter = "`userid` = " . $_post['userid']; $data = $this->prepare($_post); $this->id = parent::update($data, $filter, $this->table); return $this->id; }
public function update($_post) { $this->prepare($_post); $filter = "`id` = " . $_post['id'] . " and`userid` = " . self::jsid(); // echo $filter;exit; $this->id = parent::update($_post, $filter, 'a_language'); }
public function update($_post) { $data = $this->prepare($_post); $filter = "`id` = " . $_post['id'] . " and`userid` = " . self::jsid(); // echo $filter;exit; $this->id = parent::update($data, $filter, $this->table); }
public function update($_post) { $filter = "`id` = " . $_post['id'] . " and`userid` = " . $_post['userid']; $data = $this->prepare($_post); // return $filter; $this->id = parent::update($data, $filter, 'a_company'); return $this->id; }
public function updatetype($id, $datatype2) { // $data = $this->prepare($_post); // foreach ($id as $obj){ for ($i = 0; $i < count($id); $i++) { $data['type2'] = $datatype2; $filter = "`id` = " . $id; $this->id = parent::update($data, $filter, $this->table); return $this->id; } // } }