From a38643d3fb8e407eba0619c6558b6ffd4f2fb981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 10 Dec 2011 16:15:49 +0100 Subject: [PATCH] Adding TimeIntervalOptionType --- .../system/option/TimeIntervalOptionType.php | 20 +++++++++++++++++++ language/de.xml | 4 +--- option.xml | 2 +- 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 file/lib/system/option/TimeIntervalOptionType.php diff --git a/file/lib/system/option/TimeIntervalOptionType.php b/file/lib/system/option/TimeIntervalOptionType.php new file mode 100644 index 0000000..3cf5558 --- /dev/null +++ b/file/lib/system/option/TimeIntervalOptionType.php @@ -0,0 +1,20 @@ + + * @package timwolla.wcf.chat + * @subpackage system.option + */ +class TimeIntervalOptionType extends TextOptionType { + /** + * @see wcf\system\option\IOptionType::getData() + */ + public function getData(\wcf\data\option\Option $option, $newValue) { + return \wcf\util\ChatUtil::timeModifier($newValue); + } +} diff --git a/language/de.xml b/language/de.xml index d785e61..36042e7 100644 --- a/language/de.xml +++ b/language/de.xml @@ -4,7 +4,6 @@ - @@ -22,9 +21,8 @@ - - + diff --git a/option.xml b/option.xml index 9a921a9..13418c2 100644 --- a/option.xml +++ b/option.xml @@ -72,7 +72,7 @@