Esempio n. 1
0
 /**
  *  __construct
  *
  * This function get single connection to a database and put it in $this->_db
  *
  * @no param needed
  * @no return
  */
 public function __construct()
 {
     $this->_db = DB::getResource();
 }
Esempio n. 2
0
 /**
  *  __construct
  * 
  * This function get single connection to a database and put it in $this->_db
  * 
  * @no param needed 
  * @no return 
  */
 public function __construct()
 {
     // changed from instance to resource because i called it resource, not instance (:
     $this->_db = DB::getResource();
 }