* @license http://creativecommons.org/licenses/by-sa/3.0/de/ Creative Commons Attribution-Share Alike 3.0 Germany * @homepage http://oss.tiggerswelt.net/twMuc * @copyright Copyright © 2010 tiggersWelt.net **/ /** * twMUC_History * ------------- * Just a small storage for message-history * * @class twMUC_History * @package twMUC * @author Bernd Holzmueller **/ class twMUC_History { private $Nickname = ''; private $Timestamp = 0; private $Message = ''; private $Room = null; // {{{ __construct /** * Setup a new user * * @param string $JID * @param string $Nickname * * @access friendly * @return void **/ function __construct ($Nickname, $Message, $Timestamp, $Room) { $this->Nickname = $Nickname; $this->Message = $Message; $this->Timestamp = ($Timestamp !== null ? $Timestamp : time ()); $this->Room = $Room; } // }}} // {{{ getJID /** * Retrive our JID * * @access public * @return string **/ public function getJID () { return $this->Room->getJID () . '/' . $this->Nickname; } // }}} // {{{ getMessage /** * Retrive our stored message * * @access public * @return string **/ public function getMessage () { return $this->Message; } // }}} // {{{ getTimestamp /** * Retrive the timestamp of our message * * @access public * @return init **/ public function getTimestamp () { return $this->Timestamp; } // }}} } ?>