/**
  * @see	\wcf\system\option\IOptionType::getData()
  */
 public function getData(Option $option, $newValue)
 {
     $newValue = StringUtil::unifyNewlines(parent::getData($option, $newValue));
     // check for wildcard
     if ($option->wildcard) {
         $values = explode("\n", $newValue);
         if (in_array($option->wildcard, $values)) {
             $newValue = $option->wildcard;
         }
     }
     return $newValue;
 }
Esempio n. 2
0
	/**
	 * @see	wcf\system\option\IOptionType::getData()
	 */
	public function getData(Option $option, $newValue) {
		return StringUtil::unifyNewlines(parent::getData($option, $newValue));
	}