예제 #1
0
 public function buildCreateRequest()
 {
     $conn = self::$connection;
     $request = new Request($conn);
     return $request->setProcedure('insert_record')->setArguments($this->table, $this->azienda, $this->esercizio, $this->toAPIFormat());
 }
예제 #2
0
 public function buildGetRequest()
 {
     $request = new Request($this->connection);
     $request->setProcedure('select_data')->setArguments($this->table, $this->fields, $this->where, $this->order, $this->orderDir, $this->offset, $this->limit)->setProcessor(new ProcessSelectData($this->model));
     return $request;
 }