return NULL;
}
+ public static function getServerCount() {
+ return count(self::$static_servers);
+ }
+
+ public static function getServers() {
+ return self::$static_servers;
+ }
+
private $name;
private $numeric;
self::$static_servers[$numeric] = $this;
}
- public function disconnectServer($linked_only = false) {
+ public function disconnectServer($eventHandler, $linked_only = false) {
if(!$linked_only) {
+ if($eventHandler)
+ $eventHandler->event_squit($this);
if($this->parent_server) {
$this->parent_server->delServer($this);
}
unset(self::$static_servers[$this->numeric]);
}
foreach($this->servers as $server) {
- $server->disconnectServer();
+ $server->disconnectServer($eventHandler);
}
}
public function getUsers() {
return $this->users;
}
+
+ public function getUserCount() {
+ return count($this->users);
+ }
}
?>
\ No newline at end of file