Exemple #1
0
 /**
  * Run init routines
  *
  * @return void
  */
 protected function _init()
 {
     $this->init();
     // Determine if we can turn ajax on.
     if (($forceajax = optional_param('forceajax', -1, PARAM_INT)) != -1) {
         $this->preferences->set('forceajax', $forceajax);
     }
     // Setup Paging.
     $this->paging = new mr_html_paging($this->preferences, $this->url);
     if ($this->config->perpage) {
         $this->paging->set_perpageopts($this->config->perpageopts);
     }
     // Setup Export.
     if ($this->config->export) {
         $this->export = new mr_file_export($this->config->export, false, $this->url, $this->name());
     }
 }