public static function get_instance($text)
 {
     if (!isset(singleton::$singleton)) {
         singleton::$singleton = new singleton($text);
     }
     return singleton::$singleton;
 }
Beispiel #2
0
 function __construct()
 {
 $username = '******';
 $password = '******';
 $conn= singleton::singleton($username, $password);
 $this->dbObj = $conn->recipe;
 }