本文整理汇总了PHP中AbstractForm::readFormParameters方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractForm::readFormParameters方法的具体用法?PHP AbstractForm::readFormParameters怎么用?PHP AbstractForm::readFormParameters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AbstractForm
的用法示例。
在下文中一共展示了AbstractForm::readFormParameters方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['usernames'])) {
$this->usernames = StringUtil::trim($_POST['usernames']);
}
}
示例2: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['unignoredBoardIDArray']) && is_array($_POST['unignoredBoardIDArray'])) {
$this->unignoredBoardIDArray = ArrayUtil::toIntegerArray($_POST['unignoredBoardIDArray']);
}
}
示例3: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['values']) && is_array($_POST['values'])) {
$this->values = $_POST['values'];
}
}
示例4: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['applicationText'])) {
$this->applicationText = StringUtil::trim($_POST['applicationText']);
}
}
示例5: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
foreach ($this->oventTypes as $oventTypeID => $oventTypeData) {
if (isset($_POST['hideOventType' . $oventTypeID]) && $_POST['hideOventType' . $oventTypeID] == 'on') {
$this->hideOventTypes[$oventTypeID] = true;
} else {
$this->hideOventTypes[$oventTypeID] = false;
}
}
if (isset($_POST['dontAskOnHiding']) && $_POST['dontAskOnHiding'] == 'on') {
$this->dontAskOnHiding = true;
} else {
$this->dontAskOnHiding = false;
}
if (isset($_POST['hideInformation']) && $_POST['hideInformation'] == 'on') {
$this->hideInformation = true;
} else {
$this->hideInformation = false;
}
if (isset($_POST['hideColonies']) && $_POST['hideColonies'] == 'on') {
$this->hideColonies = true;
} else {
$this->hideColonies = false;
}
}
示例6: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['shipData'])) {
$this->shipDataStr = StringUtil::trim($_POST['shipData']);
$this->shipDataArray = (array) LWUtil::unserialize($this->shipDataStr);
}
}
示例7: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['username'])) {
$this->username = StringUtil::trim($_POST['username']);
}
if (isset($_POST['password'])) {
$this->password = $_POST['password'];
}
}
示例8: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['reason'])) {
$this->reason = StringUtil::trim($_POST['reason']);
}
if (isset($_POST['enableNotification'])) {
$this->enableNotification = intval($_POST['enableNotification']);
}
}
示例9: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['agreed'])) {
$this->agreed = (bool) $_POST['agreed'];
}
if (isset($_POST['answerText'])) {
$this->answerText = StringUtil::trim($_POST['answerText']);
}
}
示例10: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
AbstractForm::readFormParameters();
if (isset($_POST['reply'])) {
$this->reply = StringUtil::trim($_POST['reply']);
}
if (isset($_POST['applicationStatus'])) {
$this->applicationStatus = intval($_POST['applicationStatus']);
}
}
示例11: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['email'])) {
$this->email = StringUtil::trim($_POST['email']);
}
if (isset($_POST['checkbox'])) {
$this->checkbox = (bool) intval($_POST['checkbox']);
}
}
示例12: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['allianceName'])) {
$this->allianceName = StringUtil::trim($_POST['allianceName']);
}
if (isset($_POST['allianceTag'])) {
$this->allianceTag = StringUtil::trim($_POST['allianceTag']);
}
}
示例13: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['captchaID'])) {
$this->captchaID = intval($_POST['captchaID']);
}
if (isset($_POST['captchaString'])) {
$this->captchaString = StringUtil::trim($_POST['captchaString']);
}
}
示例14: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['fromYear'])) {
$this->fromYear = intval($_POST['fromYear']);
}
if (isset($_POST['toYear'])) {
$this->toYear = intval($_POST['toYear']);
}
if (isset($_POST['country'])) {
$this->country = $_POST['country'];
}
}
示例15: readFormParameters
/**
* @see Form::readFormParameters()
*/
public function readFormParameters()
{
parent::readFormParameters();
if (isset($_POST['username'])) {
$this->username = StringUtil::trim($_POST['username']);
}
if (isset($_POST['subject'])) {
$this->subject = StringUtil::trim($_POST['subject']);
}
if (isset($_POST['text'])) {
$this->text = StringUtil::trim($_POST['text']);
}
}