예제 #1
0
 public function request($verb, array $params = [])
 {
     parent::request($verb, $params);
     if ($verb == \Carbo\Http\Verb::Post) {
         $this->form_data->update($this->table, @$_POST['row'], @$_FILES['row'], $this->key, $this->value, @$_POST['link']);
         $this->headers['Location'] = '../../..';
         $this->code = \Carbo\Http\Code::Found;
     }
 }
예제 #2
0
 public function request($verb, array $params = [])
 {
     parent::request($verb, $params);
     if ($verb == \Carbo\Http\Verb::Post) {
         if ($this->da->delete($this->table, [$this->key => $this->value])) {
             $this->headers['Location'] = '../../..';
             $this->code = \Carbo\Http\Code::Found;
             $this->deleted = true;
         }
     }
 }
예제 #3
0
 public function request($verb, array $params = [])
 {
     $this->field = $params['field'];
     parent::request($verb, $params);
 }