示例#1
0
 /**
  * Returns singleton instance of WebBotServer
  * 
  * @return WebBotServer WebBotServer singleton
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
示例#2
0
文件: WebBot.php 项目: bonan/neotor
 /**
  * The constructor
  *
  * @param object $parent The calling object.
  * @param array  $params Parameters for the __construct()
  */
 public function __construct($parent, $params)
 {
     $this->id = uniqid();
     $this->parent = $parent;
     $webbot = WebBotServer::getInstance();
 }