/** * @see Form::save() */ public function save() { parent::save(); // save WarningEditor::create($this->title, $this->points, $this->expiresHour * 3600 + $this->expiresDay * 86400 + $this->expiresWeek * 86400 * 7); $this->saved(); // reset values $this->title = ''; $this->points = $this->expiresWeek = $this->expiresDay = $this->expiresHour = 0; // show success message WCF::getTPL()->assign('success', true); }