X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=blobdiff_plain;f=Uplink%2FP10_Channel.class.php;h=d38015b4a658e52e74f61917c568bce5035f6c32;hp=efe960de62b9f407f823241485cbcb766f099a49;hb=7ee52d8a44c982d62baecf92cea6b266e8c2eb26;hpb=feed224b3e95ae3ce7b0832f214b1401e75d4419 diff --git a/Uplink/P10_Channel.class.php b/Uplink/P10_Channel.class.php index efe960d..d38015b 100644 --- a/Uplink/P10_Channel.class.php +++ b/Uplink/P10_Channel.class.php @@ -46,10 +46,15 @@ class P10_Channel { 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; @@ -58,6 +63,7 @@ class P10_Channel { public function __construct($name) { $this->name = $name; $this->modes = new P10_ChannelModeSet($this); + $this->create_time = time(); self::$static_channels[strtolower($name)] = $this; } @@ -77,6 +83,10 @@ class P10_Channel { return $this->topic; } + public function getCreateTime() { + return $this->create_time; + } + public function joinUser($user) { $this->users[$user->getNumeric()] = $user; $this->userPrivs[$user->getNumeric()] = 0; @@ -122,6 +132,10 @@ class P10_Channel { } } + public function getUsers() { + return $this->users; + } + } ?> \ No newline at end of file