* Sets option values for a specific user.
*
* @param wcf\data\user\User $user
- * @param string $outputType
*/
- public function setOptionValue(User $user, $outputType = 'normal') {
+ public function setOptionValue(User $user) {
$userOption = 'userOption' . $this->optionID;
$optionValue = $user->{$userOption};
// use output class
if ($this->outputClass) {
$outputObj = $this->getOutputObject();
-
- if ($outputType == 'normal') $this->optionValue = $outputObj->getOutput($user, $this->getDecoratedObject(), $optionValue);
- else if ($outputType == 'short') $this->optionValue = $outputObj->getShortOutput($user, $this->getDecoratedObject(), $optionValue);
- else $outputType = $outputObj->getMediumOutput($user, $this->getDecoratedObject(), $optionValue);
+ $this->optionValue = $outputObj->getOutput($user, $this->getDecoratedObject(), $optionValue);
}
else {
$this->optionValue = StringUtil::encodeHTML($optionValue);
* @category Community Framework
*/
interface IUserOptionOutput {
- /**
- * Returns a short version of the html code for the output of the given user option.
- *
- * @param wcf\data\user\User $user
- * @param wcf\data\user\option\UserOption $option
- * @param string $value
- * @return string
- */
- public function getShortOutput(User $user, UserOption $option, $value);
-
- /**
- * Returns a medium version of the html code for the output of the given user option.
- *
- * @param wcf\data\user\User $user
- * @param wcf\data\user\option\UserOption $option
- * @param string $value
- * @return string
- */
- public function getMediumOutput(User $user, UserOption $option, $value);
-
/**
* Returns the html code for the output of the given user option.
*