コード例 #1
0
 /**
  * Creates the sidebar object for given user.
  *
  * @param	MessageSidebarObject	$user
  */
 public function create(MessageSidebarObject $object)
 {
     if (!isset($this->messageSidebars[$object->getMessageType() . '-' . $object->getMessageID()])) {
         // create sidebar
         $sidebar = new MessageSidebar($object);
         $this->messageSidebars[$object->getMessageType() . '-' . $object->getMessageID()] = $sidebar;
     }
 }
コード例 #2
0
 /**
  * Returns the message id.
  *
  * @return	integer
  */
 public function getMessageID()
 {
     return $this->object->getMessageID();
 }