/**
  * @see	\wcf\system\menu\user\profile\content\IUserProfileMenuContent::getContent()
  */
 public function getContent($userID)
 {
     if ($this->optionHandler === null) {
         $this->optionHandler = new UserOptionHandler(false, '', 'profile');
         $this->optionHandler->enableEditMode(false);
         $this->optionHandler->showEmptyOptions(false);
     }
     $user = new User($userID);
     $this->optionHandler->setUser($user);
     WCF::getTPL()->assign(array('options' => $this->optionHandler->getOptionTree(), 'userID' => $user->userID));
     return WCF::getTPL()->fetch('userProfileAbout');
 }
Exemplo n.º 2
0
 /**
  * Returns the user option handler object.
  * 
  * @param	\wcf\data\user\User	$user
  * @param	boolean			$editMode
  * @return	\wcf\system\option\user\UserOptionHandler
  */
 protected function getOptionHandler(User $user, $editMode = true)
 {
     $optionHandler = new UserOptionHandler(false, '', 'profile');
     if (!$editMode) {
         $optionHandler->showEmptyOptions(false);
         $optionHandler->enableEditMode(false);
     }
     $optionHandler->setUser($user);
     return $optionHandler;
 }