public function __construct($dbconnection = '') { parent::__construct(); if (!empty($dbconnection)) { $this->db = new Database($dbconnection); } }
/** * Loads the database instance, if the database is not already loaded. * * @return void */ public function __construct() { parent::__construct(); $this->session = Session::instance(); $this->uid = $this->session->get('uid'); }