本文整理匯總了PHP中HTMLForm::setTableId方法的典型用法代碼示例。如果您正苦於以下問題:PHP HTMLForm::setTableId方法的具體用法?PHP HTMLForm::setTableId怎麽用?PHP HTMLForm::setTableId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類HTMLForm
的用法示例。
在下文中一共展示了HTMLForm::setTableId方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: alterForm
protected function alterForm(HTMLForm $form)
{
$form->setDisplayFormat('vform');
$form->setId('mw-changeemail-form');
$form->setTableId('mw-changeemail-table');
$form->setWrapperLegend(false);
$form->setSubmitTextMsg('changeemail-submit');
$form->addHiddenField('returnto', $this->getRequest()->getVal('returnto'));
}
示例2: alterForm
protected function alterForm(HTMLForm $form)
{
$form->setId('mw-changeemail-form');
$form->setTableId('mw-changeemail-table');
$form->setWrapperLegendMsg('changeemail-header');
$form->setSubmitTextMsg('changeemail-submit');
$form->addButton('wpCancel', $this->msg('changeemail-cancel')->text());
$form->addHiddenField('returnto', $this->getRequest()->getVal('returnto'));
}
示例3: alterForm
protected function alterForm(HTMLForm $form)
{
$form->setId('mw-resetpass-form');
$form->setTableId('mw-resetpass-table');
$form->setWrapperLegendMsg('resetpass_header');
$form->setSubmitTextMsg($this->getUser()->isLoggedIn() ? 'resetpass-submit-loggedin' : 'resetpass_submit');
$form->addButton('wpCancel', $this->msg('resetpass-submit-cancel')->text());
$form->setHeaderText($this->msg('resetpass_text')->parseAsBlock());
$form->addHiddenFields($this->getRequest()->getValues('wpName', 'wpDomain', 'returnto', 'returntoquery'));
}
示例4: alterForm
protected function alterForm(HTMLForm $form)
{
$form->setId('mw-changeemail-form');
$form->setTableId('mw-changeemail-table');
$form->setSubmitTextMsg('changeemail-submit');
$form->addHiddenFields($this->getRequest()->getValues('returnto', 'returntoquery'));
}
示例5: alterForm
protected function alterForm(HTMLForm $form)
{
$form->setId('mw-changeemail-form');
$form->setTableId('mw-changeemail-table');
$form->setSubmitTextMsg('changeemail-submit');
$form->addHiddenFields($this->getRequest()->getValues('returnto', 'returntoquery'));
$form->addHeaderText($this->msg('changeemail-header')->parseAsBlock());
if ($this->getConfig()->get('RequirePasswordforEmailChange')) {
$form->addHeaderText($this->msg('changeemail-passwordrequired')->parseAsBlock());
}
}
示例6: alterForm
protected function alterForm(HTMLForm $form)
{
$form->setId('mw-botpasswords-form');
$form->setTableId('mw-botpasswords-table');
$form->addPreText($this->msg('botpasswords-summary')->parseAsBlock());
$form->suppressDefaultSubmit();
if ($this->par !== null) {
if ($this->botPassword->isSaved()) {
$form->setWrapperLegendMsg('botpasswords-editexisting');
$form->addButton(['name' => 'op', 'value' => 'update', 'label-message' => 'botpasswords-label-update', 'flags' => ['primary', 'progressive']]);
$form->addButton(['name' => 'op', 'value' => 'delete', 'label-message' => 'botpasswords-label-delete', 'flags' => ['destructive']]);
} else {
$form->setWrapperLegendMsg('botpasswords-createnew');
$form->addButton(['name' => 'op', 'value' => 'create', 'label-message' => 'botpasswords-label-create', 'flags' => ['primary', 'constructive']]);
}
$form->addButton(['name' => 'op', 'value' => 'cancel', 'label-message' => 'botpasswords-label-cancel']);
}
}