conn = connection::getPDOConnection($app); $this->connbas = connection::getPDOConnection($app, $report->getSbasId()); $this->filter = new module_report_sqlfilter($app, $report); $this->sql = ''; $this->params = []; $this->total_row = 0; $this->enable_limit = $report->getEnableLimit(); } public function setGroupBy($groupby) { $this->groupby = $groupby; return $this; } public function getGroupby() { return $this->groupby; } public function setOn($on) { $this->on = $on; return $this; } public function getOn() { return $this->on; } public function setFilter(module_report_sqlfilter $filter) { $this->filter = $filter; } /** * * @return module_report_sqlfilter */ public function getFilters() { return $this->filter; } public function getSql() { return $this->sql; } public function getParams() { return $this->params; } public function getTotalRows() { return $this->total_row; } public function setTotalrows($total) { $this->total_row = $total; } public function getTransQuery($champ) { $tanslation = $this->filter->getCorFilter(); if (array_key_exists($champ, $tanslation)) { return $tanslation[$champ]; } else { return $champ; } } /** * * @return connection_PDO */ public function getConnBas() { return $this->connbas; } }