return $this->getDecoratedObject()->getTitle();
}
+ /**
+ * Sets the session-based last activity time.
+ *
+ * @param integer $timestamp
+ */
+ public function setSessionLastActivityTime($timestamp) {
+ $this->object->data['sessionLastActivityTime'] = $timestamp;
+ }
+
/**
* Returns an "empty" user profile object for a guest with the given username.
*
*/
protected function init() {
$this->userProfile = new UserProfile(WCF::getUser());
+ $this->userProfile->setSessionLastActivityTime(WCF::getSession()->lastActivityTime);
}
/**
*/
public function reloadUserProfile() {
$this->userProfile = new UserProfile(new User($this->userID));
+ $this->userProfile->setSessionLastActivityTime(WCF::getSession()->lastActivityTime);
}
/**