public function __construct()
 {
     $this->pageTitle = 'Reports';
     parent::__construct();
     // As we're local, we just call the class report with suppress set to true, which will prevent
     // it from writing to the screen.
     $this->repServ = new ReportEngine($this->get_allowed_website_id_list('editor'));
 }
 public function __construct($modelname, $viewname = NULL, $controllerpath = NULL, $gridId = NULL)
 {
     $this->model = ORM::factory($modelname);
     $this->modelname = $modelname;
     $this->viewname = is_null($viewname) ? "{$modelname}/index" : $viewname;
     $this->controllerpath = is_null($controllerpath) ? $modelname : $controllerpath;
     $this->gridId = $gridId;
     $this->base_filter = array();
     $this->auth_filter = null;
     $this->pagetitle = "Abstract gridview class - override this title!";
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
     if (!is_numeric($this->uri->last_segment())) {
         throw new Exception('Page cannot be accessed without a survey filter');
     }
     if (!isset($_GET['type'])) {
         throw new Exception('Page cannot be accessed without a type parameter');
     }
     if ($_GET['type'] != 'sample' && $_GET['type'] != 'occurrence' && $_GET['type'] != 'location') {
         throw new Exception('Type parameter in URL is invalid');
     }
     $this->type = $_GET['type'];
     $this->pagetitle = 'Attributes for a survey';
     $this->get_auth();
     $this->auth_filter = $this->gen_auth_filter;
     $this->model = ORM::factory($this->type . '_attributes_website');
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->tableNames = array_keys($this->tableMetadata);
 }