当前位置: 首页>>代码示例>>PHP>>正文


PHP HTMLForm::setId方法代码示例

本文整理汇总了PHP中HTMLForm::setId方法的典型用法代码示例。如果您正苦于以下问题:PHP HTMLForm::setId方法的具体用法?PHP HTMLForm::setId怎么用?PHP HTMLForm::setId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HTMLForm的用法示例。


在下文中一共展示了HTMLForm::setId方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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'));
 }
开发者ID:whysasse,项目名称:kmwiki,代码行数:9,代码来源:SpecialChangeEmail.php

示例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'));
 }
开发者ID:Habatchii,项目名称:wikibase-for-mediawiki,代码行数:9,代码来源:SpecialChangeEmail.php

示例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'));
 }
开发者ID:biribogos,项目名称:wikihow-src,代码行数:10,代码来源:SpecialChangePassword.php

示例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'));
     $form->addHeaderText($this->msg('changeemail-header')->parseAsBlock());
     if ($this->getConfig()->get('RequirePasswordforEmailChange')) {
         $form->addHeaderText($this->msg('changeemail-passwordrequired')->parseAsBlock());
     }
 }
开发者ID:Acidburn0zzz,项目名称:mediawiki,代码行数:11,代码来源:SpecialChangeEmail.php

示例5: getForm

 function getForm()
 {
     $fields = array();
     $fields['limit'] = array('type' => 'select', 'name' => 'limit', 'label-message' => 'table_pager_limit_label', 'options' => $this->getLimitSelectList(), 'default' => $this->mLimit);
     if (!$this->getConfig()->get('MiserMode')) {
         $fields['ilsearch'] = array('type' => 'text', 'name' => 'ilsearch', 'id' => 'mw-ilsearch', 'label-message' => 'listfiles_search_for', 'default' => $this->mSearch, 'size' => '40', 'maxlength' => '255');
     }
     $this->getOutput()->addModules('mediawiki.userSuggest');
     $fields['user'] = array('type' => 'text', 'name' => 'user', 'id' => 'mw-listfiles-user', 'label-message' => 'username', 'default' => $this->mUserName, 'size' => '40', 'maxlength' => '255', 'cssclass' => 'mw-autocomplete-user');
     $fields['ilshowall'] = array('type' => 'check', 'name' => 'ilshowall', 'id' => 'mw-listfiles-show-all', 'label-message' => 'listfiles-show-all', 'default' => $this->mShowAll);
     $query = $this->getRequest()->getQueryValues();
     unset($query['title']);
     unset($query['limit']);
     unset($query['ilsearch']);
     unset($query['ilshowall']);
     unset($query['user']);
     $form = new HTMLForm($fields, $this->getContext());
     $form->setMethod('get');
     $form->setTitle($this->getTitle());
     $form->setId('mw-listfiles-form');
     $form->setWrapperLegendMsg('listfiles');
     $form->setSubmitTextMsg('table_pager_limit_submit');
     $form->addHiddenFields($query);
     $form->prepareForm();
     $form->displayForm('');
 }
开发者ID:mb720,项目名称:mediawiki,代码行数:26,代码来源:SpecialListfiles.php

示例6: 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'));
 }
开发者ID:eliagbayani,项目名称:LiteratureEditor,代码行数:7,代码来源:SpecialChangeEmail.php

示例7: 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']);
     }
 }
开发者ID:claudinec,项目名称:galan-wiki,代码行数:18,代码来源:SpecialBotPasswords.php


注:本文中的HTMLForm::setId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。