21 parent::__construct($a_title, $a_postvar);
30 $isValid = parent::checkInput();
38 $this->thresholdUnits->setValueByArray((array)
$_POST);
40 $unit = $this->thresholdUnits->getValue();
43 case $unit ==
'days' && $this->
getValue() > 31:
45 $GLOBALS[
'DIC']->language()->txt(
'chat_deletion_ival_max_val'),
46 $GLOBALS[
'DIC']->language()->txt(
'days'),
52 case $unit ==
'weeks' && $this->
getValue() > 52:
54 $GLOBALS[
'DIC']->language()->txt(
'chat_deletion_ival_max_val'),
55 $GLOBALS[
'DIC']->language()->txt(
'weeks'),
61 case $unit ==
'months' && $this->
getValue() > 12:
63 $GLOBALS[
'DIC']->language()->txt(
'chat_deletion_ival_max_val'),
64 $GLOBALS[
'DIC']->language()->txt(
'months'),
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.