/**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['subject'])) {
         $this->subject = $_POST['subject'];
     }
     if (isset($_POST['text'])) {
         $this->text = $_POST['text'];
     }
     if (isset($_POST['enableSmilies'])) {
         $this->enableSmilies = $_POST['enableSmilies'];
     }
     if (isset($_POST['enableHtml'])) {
         $this->enableHtml = $_POST['enableHtml'];
     }
     if (isset($_POST['enableBBCodes'])) {
         $this->enableBBCodes = $_POST['enableBBCodes'];
     }
     if (isset($_POST['showSignature'])) {
         $this->showSignature = $_POST['showSignature'];
     }
     if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) {
         $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']);
     }
     if (isset($_POST['preview'])) {
         $this->preview = (bool) $_POST['preview'];
     }
     if (isset($_POST['send'])) {
         $this->send = (bool) $_POST['send'];
     }
     if (isset($_POST['maxLifeTime'])) {
         $this->maxLifeTime = intval($_POST['maxLifeTime']);
     }
 }
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['tplID'])) {
         $this->tplID = $_POST['tplID'];
     }
     if (isset($_POST['subject'])) {
         $this->subject = $_POST['subject'];
     }
     if (isset($_POST['text'])) {
         $this->text = $_POST['text'];
     }
     if (isset($_POST['enableSmilies'])) {
         $this->enableSmilies = $_POST['enableSmilies'];
     }
     if (isset($_POST['enableHtml'])) {
         $this->enableHtml = $_POST['enableHtml'];
     }
     if (isset($_POST['enableBBCodes'])) {
         $this->enableBBCodes = $_POST['enableBBCodes'];
     }
     if (isset($_POST['enabled'])) {
         $this->enabled = $_POST['enabled'];
     }
     if (isset($_POST['preview'])) {
         $this->preview = (bool) $_POST['preview'];
     }
     if (isset($_POST['send'])) {
         $this->send = (bool) $_POST['send'];
     }
 }
 /**
  * @see	Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_REQUEST['moduleID'])) {
         $this->moduleID = intval($_REQUEST['moduleID']);
     }
     if (isset($_REQUEST['position'])) {
         $this->position = StringUtil::trim($_REQUEST['position']);
     }
 }
 /**
  * @see Form::readFormParameters()
  */
 public function readFormParameters()
 {
     parent::readFormParameters();
     if (isset($_POST['hour'])) {
         $this->dateValues['hour'] = intval($_POST['hour']);
     }
     if (isset($_POST['day'])) {
         $this->dateValues['day'] = intval($_POST['day']);
     }
     if (isset($_POST['month'])) {
         $this->dateValues['month'] = intval($_POST['month']);
     }
     if (isset($_POST['year'])) {
         $this->dateValues['year'] = intval($_POST['year']);
     }
     if (isset($_POST['test'])) {
         $this->sendTestmail = true;
     }
 }
 /**
  * @see	Form::readFormParameters()
  */
 public function readFormParameters()
 {
     WysiwygCacheloaderForm::readFormParameters();
     // loop through array
     foreach ($_POST as $name => $value) {
         if (is_array($value)) {
             foreach ($value as $optionName => $optionValue) {
                 // validate
                 if ($this->optionGroupList->getGroup($name)->getOption($optionName)->getType() == 'select') {
                     $validValues = array();
                     foreach ($this->optionGroupList->getGroup($name)->getOption($optionName)->getFields() as $field) {
                         $validValues[] = $field['value'];
                     }
                     if (!in_array($optionValue, $validValues)) {
                         continue;
                     }
                 }
                 $this->optionGroupList->setOption($name, $optionName, $optionValue);
             }
         }
     }
     // set not sent boolean values to false
     foreach ($this->optionGroupList->getOptionGroups() as $group) {
         $groupName = $group->getName();
         foreach ($group->getOptions() as $option) {
             $optionName = $option->getName();
             if ($option->getType() == 'boolean') {
                 if (!isset($_POST[$groupName][$optionName])) {
                     $this->optionGroupList->getGroup($groupName)->getOption($optionName)->setValue(0);
                 }
             } elseif ($option->getType() == 'editor') {
                 $this->optionGroupList->getGroup($groupName)->getOption($optionName)->setValue($this->text);
             }
         }
     }
 }