/** * @desc fill the dash results for the current sbas * @return <void> */ public function process() { try { //Get number of DLs $this->report['nb_dl'] = module_report_download::getNbDl($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); //Get Number of connexions $this->report['nb_conn'] = module_report_connexion::getNbConn($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); if ($this->app['conf']->get(['registry', 'modules', 'anonymous-report']) == false) { /** * get Top ten user of * number of dl doc, prev * number of weight dl by doc, prev */ $top = module_report_activity::topTenUser($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); $this->report['top_ten_user_doc'] = $top['top_ten_doc']; $this->report['top_ten_user_prev'] = $top['top_ten_prev']; $this->report['top_ten_user_poiddoc'] = $top['top_ten_poiddoc']; $this->report['top_ten_user_poidprev'] = $top['top_ten_poidprev']; } /** * get avtivity by hour */ $this->report['activity'] = module_report_activity::activity($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); // get activty by day $this->report['activity_day'] = module_report_activity::activityDay($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); // get Most document and preview DL $topdl = module_report_download::getTopDl($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); $this->report['top_dl_preview'] = $topdl['preview']; $this->report['top_dl_document'] = $topdl['document']; if ($this->app['conf']->get(['registry', 'modules', 'anonymous-report']) == false) { // get users that ask the most questions $this->report['ask'] = module_report_activity::activityQuestion($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); } //get the refferer $this->report['top_ten_site'] = module_report_activity::activiteTopTenSiteView($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); //Get the most asked questions $this->report['top_ten_question'] = module_report_activity::activiteTopQuestion($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); //get the number of added docuùments $this->report['activity_added'] = module_report_activity::activiteAddedDocument($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); //get number of edited document $this->report['activity_edited'] = module_report_activity::activiteEditedDocument($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); if ($this->app['conf']->get(['registry', 'modules', 'anonymous-report']) == false) { //get users that add the most documents $this->report['top_ten_added'] = module_report_activity::activiteAddedTopTenUser($this->app, $this->dminsql, $this->dmaxsql, $this->sbasid, $this->collection); } } catch (DBALException $e) { } return; }