projects
/
PHP-P10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added recv_join & recv_part
[PHP-P10.git]
/
Uplink
/
P10_Channel.class.php
diff --git
a/Uplink/P10_Channel.class.php
b/Uplink/P10_Channel.class.php
index efe960de62b9f407f823241485cbcb766f099a49..a15548166c719916e28ea5ffaf2e9140bfc38aac 100644
(file)
--- a/
Uplink/P10_Channel.class.php
+++ b/
Uplink/P10_Channel.class.php
@@
-46,10
+46,15
@@
class P10_Channel {
return NULL;
}
return NULL;
}
+ public static function getChannels() {
+ return self::$static_channels;
+ }
+
private $name;
private $topic;
private $modes;
private $name;
private $topic;
private $modes;
+ private $create_time;
private $users = array();
const USERPRIV_OPED = 0x0001;
const USERPRIV_VOICE = 0x0002;
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);
public function __construct($name) {
$this->name = $name;
$this->modes = new P10_ChannelModeSet($this);
+ $this->create_time = time();
self::$static_channels[strtolower($name)] = $this;
}
self::$static_channels[strtolower($name)] = $this;
}
@@
-77,6
+83,14
@@
class P10_Channel {
return $this->topic;
}
return $this->topic;
}
+ public function setCreateTime($time) {
+ $this->create_time = $time;
+ }
+
+ public function getCreateTime() {
+ return $this->create_time;
+ }
+
public function joinUser($user) {
$this->users[$user->getNumeric()] = $user;
$this->userPrivs[$user->getNumeric()] = 0;
public function joinUser($user) {
$this->users[$user->getNumeric()] = $user;
$this->userPrivs[$user->getNumeric()] = 0;
@@
-122,6
+136,10
@@
class P10_Channel {
}
}
}
}
+ public function getUsers() {
+ return $this->users;
+ }
+
}
?>
\ No newline at end of file
}
?>
\ No newline at end of file