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


PHP FormSpecialPage::execute方法代码示例

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


在下文中一共展示了FormSpecialPage::execute方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: execute

 /**
  * Main execution point
  * @param string $par
  */
 function execute($par)
 {
     $out = $this->getOutput();
     $out->disallowUserJs();
     $out->addModules('mediawiki.special.changeemail');
     parent::execute($par);
 }
开发者ID:eliagbayani,项目名称:LiteratureEditor,代码行数:11,代码来源:SpecialChangeEmail.php

示例2: execute

 /**
  * Main execution point
  * @param string $par
  */
 function execute($par)
 {
     $this->checkLoginSecurityLevel();
     $out = $this->getOutput();
     $out->disallowUserJs();
     parent::execute($par);
 }
开发者ID:claudinec,项目名称:galan-wiki,代码行数:11,代码来源:SpecialChangeEmail.php

示例3: execute

 public function execute($par)
 {
     // This is a preferences page, so no user JS for y'all.
     $this->getOutput()->disallowUserJs();
     $this->requireLogin();
     parent::execute($par);
     $this->getOutput()->addReturnTo(SpecialPage::getTitleFor('Preferences'));
 }
开发者ID:paladox,项目名称:mediawiki,代码行数:8,代码来源:SpecialResetTokens.php

示例4: execute

 public function execute($par)
 {
     $user = $this->getUser();
     if (!$this->userCanExecute($user)) {
         throw new \PermissionsError('commentadmin');
     }
     parent::execute($par);
 }
开发者ID:nbdd0121,项目名称:MW-FlowThread,代码行数:8,代码来源:Import.php

示例5: execute

 /**
  * @param string $par
  */
 public function execute($par)
 {
     $output = $this->getContext()->getOutput();
     $output->addModules('ext.CollaborationKit.iconbrowser');
     $output->addModuleStyles('ext.CollaborationKit.iconbrowser.styles');
     $output->addJsConfigVars('wgCollaborationKitIconList', CollaborationKitIcon::getCannedIcons());
     parent::execute($par);
 }
开发者ID:wikimedia,项目名称:mediawiki-extensions-CollaborationKit,代码行数:11,代码来源:SpecialCreateHubFeature.php

示例6: execute

 /**
  * Main method.
  *
  * @since 0.1
  *
  * @param string $subPage
  */
 public function execute($subPage)
 {
     if ($this->getRequest()->getSessionData('epprofilesaved')) {
         $messageKey = $this->getMsgPrefix() . 'profile-saved';
         $this->getOutput()->addHTML('<div class="successbox"><strong><p>' . wfMsgHtml($messageKey) . '</p></strong></div>' . '<hr style="display: block; clear: both; visibility: hidden;" />');
         $this->getRequest()->setSessionData('epprofilesaved', false);
     }
     parent::execute($subPage);
     $this->getOutput()->addModules('ep.ambprofile');
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:17,代码来源:SpecialAmbassadorProfile.php

示例7: execute

 /**
  * Main execution point
  * @param string|null $par
  */
 function execute($par)
 {
     $this->getOutput()->disallowUserJs();
     $this->requireLogin();
     $par = trim($par);
     if (strlen($par) === 0) {
         $par = null;
     } elseif (strlen($par) > BotPassword::APPID_MAXLENGTH) {
         throw new ErrorPageError('botpasswords', 'botpasswords-bad-appid', [htmlspecialchars($par)]);
     }
     parent::execute($par);
 }
开发者ID:claudinec,项目名称:galan-wiki,代码行数:16,代码来源:SpecialBotPasswords.php

示例8: execute

 public function execute($par)
 {
     global $wgCentralAuthEnableUserMerge;
     if (!class_exists('SpecialUserMerge')) {
         $this->setHeaders();
         throw new ErrorPageError('error', 'centralauth-usermerge-notinstalled');
     }
     if (!$wgCentralAuthEnableUserMerge) {
         $this->setHeaders();
         throw new ErrorPageError('error', 'centralauth-usermerge-disabled');
     }
     $this->getOutput()->addModules('ext.centralauth.globalrenameuser');
     parent::execute($par);
 }
开发者ID:NDKilla,项目名称:mediawiki-extensions-CentralAuth,代码行数:14,代码来源:SpecialGlobalUserMerge.php

示例9: execute

 /**
  * @param string $par Subpage string if one was specified
  */
 public function execute($par)
 {
     if (!$this->getUser()->isLoggedIn()) {
         // Require user to be logged in
         $loginpage = SpecialPage::getTitleFor('Userlogin');
         $loginurl = $loginpage->getFullUrl(array('returnto' => $this->getPageTitle()->getPrefixedText()));
         $this->getOutput()->redirect($loginurl);
         return;
     }
     switch ($par) {
         case 'status':
             // Render status page
             $user = $this->getUser();
             $username = $user->getName();
             $wiki = $this->isGlobalUser() ? null : wfWikiID();
             $pending = GlobalRenameRequest::newForUser($username, $wiki);
             if (!$pending->exists()) {
                 $this->getOutput()->redirect(SpecialPage::getTitleFor('GlobalRenameRequest')->getFullURL(), '303');
                 return;
             }
             $out = $this->getOutput();
             $out->setPageTitle($this->msg('globalrenamerequest-status-title'));
             $out->addWikiMsg('globalrenamerequest-status-text', $username, $pending->getNewName());
             break;
         case 'available':
             // TODO: ajax name availability check (bug 70623)
             break;
         default:
             // Request form
             $out = $this->getOutput();
             $user = $this->getUser();
             $wiki = $this->isGlobalUser() ? null : wfWikiID();
             $pending = GlobalRenameRequest::newForUser($user->getName(), $wiki);
             if ($pending->exists()) {
                 $out->redirect($this->getPageTitle('status')->getFullURL(), '303');
                 return;
             }
             $out->addModuleStyles(array('mediawiki.ui', 'mediawiki.ui.button', 'mediawiki.ui.input', 'ext.centralauth.globalrenamerequest.styles'));
             $out->addModules('ext.centralauth.globalrenamerequest');
             parent::execute($par);
             break;
     }
 }
开发者ID:NDKilla,项目名称:mediawiki-extensions-CentralAuth,代码行数:46,代码来源:SpecialGlobalRenameRequest.php

示例10: execute

 /**
  * @param string $par Subpage string if one was specified
  */
 public function execute($par)
 {
     parent::execute($par);
     $this->getOutput()->addModules('ext.centralauth.globalrenameuser');
     $this->getOutput()->addModules('ext.centralauth.globaluserautocomplete');
 }
开发者ID:NDKilla,项目名称:mediawiki-extensions-CentralAuth,代码行数:9,代码来源:SpecialGlobalRenameUser.php

示例11: execute

 /**
  * Main execution point
  * @param string|null $par
  */
 function execute($par)
 {
     $this->getOutput()->disallowUserJs();
     parent::execute($par);
 }
开发者ID:whysasse,项目名称:kmwiki,代码行数:9,代码来源:SpecialChangePassword.php

示例12: execute

 /**
  * @param $par string
  */
 public function execute($par)
 {
     $out = $this->getContext()->getOutput();
     $out->addModules('ext.CollaborationKit.colour');
     $out->addModuleStyles('ext.CollaborationKit.colourbrowser.styles');
     $out->addJsConfigVars('wgCollaborationKitColourList', CollaborationHubContent::getThemeColours());
     parent::execute($par);
 }
开发者ID:wikimedia,项目名称:mediawiki-extensions-CollaborationKit,代码行数:11,代码来源:SpecialCreateCollaborationHub.php


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