added RRD Stats Module
[PHP-P10.git] / Uplink / P10_User.class.php
index cd3a485d51a0426da735778705c985cd46bdb9c0..8d4e5a35ffa2381679cecb64d0a8f8f8e87f4060 100644 (file)
@@ -55,6 +55,10 @@ class P10_User {
                return NULL;
        }
        
+       public static function getAllUsers() {
+               return self::$static_users;
+       }
+       
        
        private $numeric;
        private $server;
@@ -66,6 +70,7 @@ class P10_User {
        private $modes;
        private $realname;
        private $channels;
+       private $away = null;
        
        public function __construct($nick, $numeric, $server, $connect_time, $ident, $host, $ip, $realname, $modes) {
                $this->nick = $nick;
@@ -125,6 +130,18 @@ class P10_User {
                return $this->realname;
        }
        
+       public function setAway($away) {
+               $this->away = $away;
+       }
+       
+       public function getAway() {
+               return $this->away;
+       }
+       
+       public function isAway() {
+               return ($this->away != null);
+       }
+       
        public function quit($reason) {
                $this->server->delUser($this);
                foreach($this->channels as $channel) {