/** * @see Form::validate() */ public function validate() { parent::validate(); if (!AdminTools::validateInt($this->cronDelLogDays)) { throw new UserInputException('cronDelLogDays', 'notNumeric'); } else { if (!AdminTools::validateInt($this->cronDelMovedThreadDays)) { throw new UserInputException('cronDelMovedThreadDays', 'notNumeric'); } else { if (!AdminTools::validateInt($this->cronDelPmDays)) { throw new UserInputException('cronDelPmDays', 'notNumeric'); } else { if ($this->cronDelPmDaysExclUgrps != '' && !AdminTools::validateCommaSeparatedIntList($this->cronDelPmDaysExclUgrps)) { throw new UserInputException('cronDelPmDaysExclUgrps', 'commaSeparatedIntList'); } else { if ($this->cronDelPmDaysExclUser != '' && !AdminTools::validateCommaSeparatedIntList($this->cronDelPmDaysExclUser)) { throw new UserInputException('cronDelPmDaysExclUser', 'commaSeparatedIntList'); } else { if (!AdminTools::validateInt($this->cronDelInactiveUserDays)) { throw new UserInputException('cronDelInactiveUserDays', 'notNumeric'); } else { if ($this->cronDelInactiveUserExclUgrps != '' && !AdminTools::validateCommaSeparatedIntList($this->cronDelInactiveUserExclUgrps)) { throw new UserInputException('cronDelInactiveUserExclUgrps', 'commaSeparatedIntList'); } else { if ($this->cronDelInactiveUserExcl != '' && !AdminTools::validateCommaSeparatedIntList($this->cronDelInactiveUserExcl)) { throw new UserInputException('cronDelInactiveUserExcl', 'commaSeparatedIntList'); } else { if (!AdminTools::validateInt($this->cronThreadArchiveDays)) { throw new UserInputException('cronThreadArchiveDays', 'notNumeric'); } else { if ($this->cronThreadArchiveTgt > 0 && is_array($this->cronThreadArchiveSrc) && count($this->cronThreadArchiveSrc) && in_array($this->cronThreadArchiveTgt, $this->cronThreadArchiveSrc)) { throw new UserInputException('cronThreadArchiveTgt', 'equalTgtSrc'); } } } } } } } } } } }