Пример #1
1
 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);
     }
 }
Пример #2
0
 public function update($_post)
 {
     $filter = "`userid` = " . $_post['userid'];
     $data = $this->prepare($_post);
     $this->id = parent::update($data, $filter, $this->table);
     return $this->id;
 }
Пример #3
0
 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');
 }
Пример #4
0
 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);
 }
Пример #5
0
 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;
 }
Пример #6
0
 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;
     }
     // }
 }