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