public function buildCreateRequest() { $conn = self::$connection; $request = new Request($conn); return $request->setProcedure('insert_record')->setArguments($this->table, $this->azienda, $this->esercizio, $this->toAPIFormat()); }
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; }