Example #1
0
 public function __construct($dbconnection = '')
 {
     parent::__construct();
     if (!empty($dbconnection)) {
         $this->db = new Database($dbconnection);
     }
 }
Example #2
0
 /**
  * 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');
 }