Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. class chat{
  3. private $_db;
  4. private static $_self = null;
  5. private function __construct($db){
  6. $this->_db = $db;
  7. }
  8. public static function _self($db){
  9. if(self::$_self == null){
  10. self::$_self = new self($db);
  11. }
  12.  
  13. return self::$_self;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement