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


PHP SpecialPage::SpecialPage方法代码示例

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


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

示例1: __construct

 function __construct()
 {
     global $wgHooks;
     SpecialPage::SpecialPage('RCPatrol');
     $wgHooks['OutputPageBeforeHTML'][] = array('RCPatrol::postParserCallback');
     $wgHooks['getToolStatus'][] = array('Misc::defineAsTool');
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:7,代码来源:RCPatrol.body.php

示例2: __construct

 function __construct()
 {
     global $wgMessageCache;
     SpecialPage::SpecialPage(self::specialPageName, '', false);
     $this->title = Title::makeTitle(NS_SPECIAL, self::specialPageName);
     $wgMessageCache->addMessages(self::$messages);
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:7,代码来源:SpecialAddEvent.php

示例3: DSMWGeneralExhibits

 function DSMWGeneralExhibits()
 {
     if (defined('SRF_VERSION')) {
         SpecialPage::SpecialPage('DSMWGeneralExhibits');
     }
     wfLoadExtensionMessages('DSMW');
 }
开发者ID:hala54,项目名称:DSMW,代码行数:7,代码来源:DSMWGeneralExhibits.php

示例4: __construct

 function __construct()
 {
     global $wgHooks, $wgParser, $egSuperGalleryTag;
     SpecialPage::SpecialPage('SuperGallery', 'sysop', true, false, false, false);
     # Add the tagHook
     $wgParser->setHook($egSuperGalleryTag, array($this, 'tagSupergallery'));
 }
开发者ID:jacknz,项目名称:Jack-s-Mediawiki-Extensions,代码行数:7,代码来源:SuperGallery.php

示例5: __construct

 public function __construct()
 {
     // Initialize special page
     SpecialPage::SpecialPage('Drafts');
     // Internationalization
     wfLoadExtensionMessages('Drafts');
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:7,代码来源:Drafts.pages.php

示例6: __construct

 function __construct()
 {
     global $wgIFI_ValidDomains, $wgIFI_UseAjax, $wgIFI_AjaxDomain;
     SpecialPage::SpecialPage('ImportFreeImages');
     if ($wgIFI_UseAjax) {
         $wgIFI_ValidDomains[$wgIFI_AjaxDomain] = 1;
     }
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:8,代码来源:ImportFreeImages.body.php

示例7: EmailMe

 function EmailMe()
 {
     global $wgEmailMeAddress;
     SpecialPage::SpecialPage("EmailMe", '', true, 'efRunEmailMe');
     wfLoadExtensionMessages('EmailMe');
     $this->mAddress = $wgEmailMeAddress;
     return true;
 }
开发者ID:ConradIrwin,项目名称:EmailMe,代码行数:8,代码来源:EmailMe_body.php

示例8: __construct

 public function __construct()
 {
     SpecialPage::SpecialPage(TWITTER_REPLIER_NAME);
     $this->TweetModel = new TweetModel();
     $this->TwitterAuthModel = new TwitterAuthModel();
     $this->SearchCategoryModel = new SearchCategoryModel();
     TwitterReplierTemplate::set_path(dirname(__FILE__) . '/templates');
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:8,代码来源:TwitterReplier.body.php

示例9: DSMWAdmin

 function DSMWAdmin()
 {
     global $wgHooks, $wgSpecialPages, $wgWatchingMessages;
     # Add all our needed hooks
     $wgHooks["SkinTemplateTabs"][] = $this;
     SpecialPage::SpecialPage('DSMWAdmin');
     // avec block => pages speciales restreintes
     wfLoadExtensionMessages('DSMW');
 }
开发者ID:hala54,项目名称:DSMW,代码行数:9,代码来源:DSMWAdmin.php

示例10: MV_SpecialSearch

 function MV_SpecialSearch()
 {
     global $wgOut, $wgRequest;
     mvfAddHTMLHeader('search');
     $MvSpecialSearch = new MV_SpecialMediaSearch();
     $MvSpecialSearch->doSearch($wgRequest->getVal('search'));
     $wgOut->addHTML($MvSpecialSearch->getResultsHTML());
     SpecialPage::SpecialPage('Search');
 }
开发者ID:BenoitTalbot,项目名称:bungeni-portal,代码行数:9,代码来源:MV_SpecialMediaSearch.php

示例11: SpecialPagesManagerUpdater

 function SpecialPagesManagerUpdater()
 {
     SpecialPage::SpecialPage("SpecialPagesManagerUpdater", 'siteupdate');
     self::loadMessages();
     if (self::$instance === null) {
         self::$instance = $this;
     }
     return self::$instance;
 }
开发者ID:mediawiki-extensions,项目名称:bizzwiki,代码行数:9,代码来源:SpecialPagesManagerUpdater.php

示例12: AnyWikiDraw

 function AnyWikiDraw()
 {
     SpecialPage::SpecialPage("AnyWikiDraw");
     self::loadMessages();
     $this->mUploadDescription = '';
     $this->mLicense = '';
     $this->mUploadCopyStatus = '';
     $this->mUploadSource = '';
     $this->mWatchthis = false;
 }
开发者ID:microcosmx,项目名称:experiments,代码行数:10,代码来源:AnyWikiDraw_body.php

示例13: AnyWikiDraw

 function AnyWikiDraw()
 {
     SpecialPage::SpecialPage("AnyWikiDraw");
     wfLoadExtensionMessages('AnyWikiDraw');
     $this->mUploadDescription = '';
     $this->mLicense = '';
     $this->mUploadCopyStatus = '';
     $this->mUploadSource = '';
     $this->mWatchthis = false;
 }
开发者ID:microcosmx,项目名称:experiments,代码行数:10,代码来源:AnyWikiDraw.body.php

示例14: __construct

 public function __construct()
 {
     global $wgWikiFeedsSettings;
     $this->_settings = $wgWikiFeedsSettings;
     SpecialPage::SpecialPage('WikiFeeds');
     //we automatically prune the cache randomly
     if ($this->_settings['cacheEnable']) {
         if (rand(1, $this->_settings['cachePruneFactor']) === 1) {
             $this->_cachePrune();
         }
     }
 }
开发者ID:honza801,项目名称:wikifeeds,代码行数:12,代码来源:SpecialWikiFeeds.php

示例15: ManualSitemapPage

 function ManualSitemapPage()
 {
     SpecialPage::SpecialPage('ManualSitemap', 'ManualSitemap');
     //$wgGroupPermissions['sysop']['DeleteOldRevisions'] = true;
     global $wgRequest;
     $request =& $wgRequest;
     $file_name = $request->getText('wpFileName');
     if ($file_name) {
         $this->file_name = $file_name;
     }
     $change_freq = $request->getCheck('wpChangeFreq');
     if ($change_freq) {
         $this->estimate_change_freq = $change_freq;
     }
     $priority = $request->getText('wpPriorityType');
     if ($priority) {
         $this->article_priorities = $priority;
     }
     $sorting_criterion = $request->getText('wpSortCriterion');
     if ($sorting_criterion) {
         $this->sorting_criterion = $sorting_criterion;
     }
 }
开发者ID:KaoruToda,项目名称:ManualSitemap,代码行数:23,代码来源:SpecialManualSitemap.php


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