mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Adding TimeIntervalOptionType
This commit is contained in:
parent
cc2902f720
commit
a38643d3fb
20
file/lib/system/option/TimeIntervalOptionType.php
Normal file
20
file/lib/system/option/TimeIntervalOptionType.php
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
namespace wcf\system\option;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TimeIntervalOptionType is an implementation of IOptionType for time intervals.
|
||||||
|
*
|
||||||
|
* @author Tim Düsterhus
|
||||||
|
* @copyright 2010-2011 Tim Düsterhus
|
||||||
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
||||||
|
* @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);
|
||||||
|
}
|
||||||
|
}
|
@ -4,7 +4,6 @@
|
|||||||
<item name="wcf.acp.option.category.chat"><![CDATA[Chat]]></item>
|
<item name="wcf.acp.option.category.chat"><![CDATA[Chat]]></item>
|
||||||
<item name="wcf.acp.option.category.chat.general"><![CDATA[Allgemein]]></item>
|
<item name="wcf.acp.option.category.chat.general"><![CDATA[Allgemein]]></item>
|
||||||
<item name="wcf.acp.option.chat_active"><![CDATA[Chat aktivieren]]></item>
|
<item name="wcf.acp.option.chat_active"><![CDATA[Chat aktivieren]]></item>
|
||||||
<item name="wcf.acp.option.chat_active.description"><![CDATA[Aktiviert den Chat]]></item>
|
|
||||||
<item name="wcf.acp.option.chat_reloadtime"><![CDATA[Nachladezeit]]></item>
|
<item name="wcf.acp.option.chat_reloadtime"><![CDATA[Nachladezeit]]></item>
|
||||||
<item name="wcf.acp.option.chat_reloadtime.description"><![CDATA[Gibt die Zeit in Sekunden an, nach der neue Nachrichten geladen werden. (Standard: alle 5 Sekunden)]]></item>
|
<item name="wcf.acp.option.chat_reloadtime.description"><![CDATA[Gibt die Zeit in Sekunden an, nach der neue Nachrichten geladen werden. (Standard: alle 5 Sekunden)]]></item>
|
||||||
<item name="wcf.acp.option.chat_lastmessages"><![CDATA[Anzahl der letzten Nachrichten]]></item>
|
<item name="wcf.acp.option.chat_lastmessages"><![CDATA[Anzahl der letzten Nachrichten]]></item>
|
||||||
@ -22,9 +21,8 @@
|
|||||||
|
|
||||||
<item name="wcf.acp.option.category.chat.log"><![CDATA[Protokoll]]></item>
|
<item name="wcf.acp.option.category.chat.log"><![CDATA[Protokoll]]></item>
|
||||||
<item name="wcf.acp.option.chat_log_active"><![CDATA[Protokoll aktivieren]]></item>
|
<item name="wcf.acp.option.chat_log_active"><![CDATA[Protokoll aktivieren]]></item>
|
||||||
<item name="wcf.acp.option.chat_log_active.description"><![CDATA[Aktiviert das Chatprotokoll]]></item>
|
|
||||||
<item name="wcf.acp.option.chat_log_archivetime"><![CDATA[Speicherzeit]]></item>
|
<item name="wcf.acp.option.chat_log_archivetime"><![CDATA[Speicherzeit]]></item>
|
||||||
<item name="wcf.acp.option.chat_log_archivetime.description"><![CDATA[Gibt die Zeit in Sekunden an, die eine Nachricht im Protokoll gespeichert bleibt.]]></item>
|
<item name="wcf.acp.option.chat_log_archivetime.description"><![CDATA[Gibt die Zeit in Minuten an, die eine Nachricht im Protokoll gespeichert bleibt.]]></item>
|
||||||
</category>
|
</category>
|
||||||
<category name="wcf.header">
|
<category name="wcf.header">
|
||||||
<item name="wcf.header.menu.chat"><![CDATA[Chat]]></item>
|
<item name="wcf.header.menu.chat"><![CDATA[Chat]]></item>
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
</option>
|
</option>
|
||||||
<option name="chat_log_archivetime">
|
<option name="chat_log_archivetime">
|
||||||
<categoryname>chat.log</categoryname>
|
<categoryname>chat.log</categoryname>
|
||||||
<optiontype>integer</optiontype>
|
<optiontype>timeInterval</optiontype>
|
||||||
<defaultvalue>172800</defaultvalue>
|
<defaultvalue>172800</defaultvalue>
|
||||||
<showorder>2</showorder>
|
<showorder>2</showorder>
|
||||||
</option>
|
</option>
|
||||||
|
Loading…
Reference in New Issue
Block a user