public static function getInstance() { if (empty(self::$instance)) { self::$instance = new self(); } return self::$instance; }
protected function onClose($id) { $this->usermgr->RemoveUser($id); QueueMgr::getInstance()->LeaveQueue($id); }
static function cmsg_leave_queue($data, $id, $context) { QueueMgr::getInstance()->LeaveQueue($id); }