Exemple #1
0
 static function get_instance()
 {
     if (empty(self::$_this)) {
         self::$_this = new WPANSWER_USER_Config();
         self::$_this->load_config();
         return self::$_this;
     }
     return self::$_this;
 }
Exemple #2
0
 function load_configs()
 {
     include_once 'classes/newuser_config.php';
     $this->configs = WPANSWER_USER_Config::get_instance();
 }