コード例 #1
0
ファイル: Post.Class.php プロジェクト: Assaffr/sociality-
 /**
  *  __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();
 }
コード例 #2
0
ファイル: friends.class.php プロジェクト: Assaffr/sociality-
 /**
  *  __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();
 }