use wcf\data\user\User;
use wcf\data\DatabaseObjectDecorator;
use wcf\system\exception\SystemException;
-use wcf\system\option\user\IUserOptionOutputContactInformation;
use wcf\util\ClassUtil;
use wcf\util\StringUtil;
*/
public $optionValue = '';
- /**
- * user option output data
- * @var array
- */
- public $outputData = array();
-
/**
* Sets option values for a specific user.
*
if ($this->outputClass) {
$outputObj = $this->getOutputObject();
- if ($outputObj instanceof IUserOptionOutputContactInformation) {
- $this->outputData = $outputObj->getOutputData($user, $this->getDecoratedObject(), $optionValue);
- }
-
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);
+++ /dev/null
-<?php
-namespace wcf\system\option\user;
-use wcf\data\user\option\UserOption;
-use wcf\data\user\User;
-
-/**
- * Any user option output class should implement this interface.
- *
- * @author Marcel Werk
- * @copyright 2001-2012 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package com.woltlab.wcf
- * @subpackage system.option.user
- * @category Community Framework
- */
-interface IUserOptionOutputContactInformation {
- /**
- * Returns the output data of this user option.
- *
- * @param wcf\data\user\User $user
- * @param wcf\data\user\option\UserOption $optionData
- * @param string $value
- * @return array
- */
- public function getOutputData(User $user, UserOption $option, $value);
-}
-?>