/** * Method description * * More detailed method description * @param mixed $post * @param array $errors * @return string */ function restorePOST() { $errors = POSTErrors::getErrorFor($this->getName(), $this->getAdditionalID()); if ($errors !== null) { $this->setFilterError(implode("<br/>", $errors)); } $post_data = POSTErrors::getPOSTData($this->getName(), $this->getAdditionalID()); if (isset($post_data)) { $this->setChecked(1); } }
/** * Method description * * More detailed method description * @param mixed $post * @param array $errors * @return string */ function restorePOST() { $errors = POSTErrors::getErrorFor($this->getName(), $this->getAdditionalID()); if ($errors !== null) { $this->setFilterError(implode("<br/>", $errors)); } $post_data = POSTErrors::getPOSTData($this->getName(), $this->getAdditionalID()); if (isset($post_data)) { ResultSetPool::set(t(new ResultSet())->f1("wselect[name=" . $this->getName() . "] wselectoption[value=" . $post_data . "]")->set('selected', 1), ResultSetPool::SYSTEM_PRIORITY); } }
/** * Method description * * More detailed method description * @param mixed $post * @param array $errors * @return string */ function restorePOST() { $errors = POSTErrors::getErrorFor($this->getName(), $this->getAdditionalID()); if ($errors !== null) { $this->setFilterError(implode("<br/>", $errors)); } $this->setValue(POSTErrors::getPOSTData($this->getName(), $this->getAdditionalID())); }