Example #1
0
		public function getInstance()
	{
		if ( self::$__has_instance )
		{
			return self;
		}
		else
		{
			self::$__has_instance = true;
			return new self();
		}
	}
Example #2
0
 function __construct($conf)
 {
     require_once dirname(__FILE__).'/qqrobot.api.php';
     $this->api = qqrobot_api_driver::getInstance();
     $this->api->config($conf);
 }