return NULL;
}
+ public static function getChannels() {
+ return self::$static_channels;
+ }
+
private $name;
private $topic;
private $modes;
+ private $create_time;
private $users = array();
const USERPRIV_OPED = 0x0001;
const USERPRIV_VOICE = 0x0002;
public function __construct($name) {
$this->name = $name;
$this->modes = new P10_ChannelModeSet($this);
+ $this->create_time = time();
self::$static_channels[strtolower($name)] = $this;
}
return $this->topic;
}
+ public function getCreateTime() {
+ return $this->create_time;
+ }
+
public function joinUser($user) {
$this->users[$user->getNumeric()] = $user;
$this->userPrivs[$user->getNumeric()] = 0;
}
}
+ public function getUsers() {
+ return $this->users;
+ }
+
}
?>
\ No newline at end of file