public function __construct(Application $app, module_report $report) { $this->app = $app; $this->conn = $app->findDataboxById($report->getSbasId())->get_connection(); if (is_array($report->getTransQueryString())) { $this->cor_query = $report->getTransQueryString(); } $this->buildFilter($report); $this->report = $report; }
public function __construct(Application $app, module_report $report) { $this->conn = $app['phraseanet.appbox']->get_connection(); $this->connbas = $app['phraseanet.appbox']->get_databox($report->getSbasId())->get_connection(); $this->filter = new module_report_sqlfilter($app, $report); $this->sql = ''; $this->params = []; $this->total_row = 0; $this->enable_limit = $report->getEnableLimit(); }