• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP UnlistedSpecialPage类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: __construct

 public function __construct()
 {
     global $wgMaxUploadSize;
     UnlistedSpecialPage::UnlistedSpecialPage('ImageUploadHandler');
     $this->executeAsSpecialPage = false;
     $this->maxFilesize = $wgMaxUploadSize;
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:7,代码来源:ImageUploadHandler.class.php


示例2: __construct

 public function __construct()
 {
     global $wgTitle;
     $this->specialPage = $wgTitle->getPartialUrl();
     $this->editDescs = $this->specialPage == 'AdminEditMetaInfo';
     UnlistedSpecialPage::UnlistedSpecialPage($this->specialPage);
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:7,代码来源:AdminEditInfo.body.php


示例3: __construct

 public function __construct()
 {
     UnlistedSpecialPage::UnlistedSpecialPage('BounceTimeLogger');
     //this page gets requested onUnload. set ignore_user_abort()
     //to make sure this script finishes executing even if the
     //client disconnects mid-way.
     ignore_user_abort(true);
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:8,代码来源:BounceTimeLogger.body.php


示例4: __construct

 function __construct()
 {
     global $wgMessageCache, $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgHooks;
     UnlistedSpecialPage::UnlistedSpecialPage('RateArticle');
     $wgHooks['AfterArticleDisplayed'][] = array("RateArticle::showForm");
     $wgHooks['ArticleDelete'][] = array("RateArticle::clearRatingsOnDelete");
     $wgLogTypes[] = 'accuracy';
     $wgLogNames['accuracy'] = 'accuracylogpage';
     $wgLogHeaders['accuracy'] = 'accuracylogtext';
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:10,代码来源:RateArticle.body.php


示例5: __construct

 function __construct()
 {
     global $wgUser, $wgHooks;
     UnlistedSpecialPage::UnlistedSpecialPage('Categorizer');
     $wgHooks['getToolStatus'][] = array('Misc::defineAsTool');
     $userId = $wgUser->getId();
     $this->pageIdsKey = wfMemcKey("cattool_pageids1");
     $this->inUseKey = wfMemcKey("cattool_inuse");
     $this->skippedKey = wfMemcKey("cattool_{$userId}_skipped");
     $this->noMoreArticlesKey = wfMemcKey("cattool_nomore1");
     $this->halfHour = 60 * 30;
     $this->oneHour = 60 * 60;
     $this->oneWeek = 60 * 60 * 24 * 7;
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:14,代码来源:Categorizer.body.php


示例6: __construct

 function __construct($source = null)
 {
     UnlistedSpecialPage::UnlistedSpecialPage('GPlusLogin');
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:4,代码来源:GPlusLogin.body.php


示例7: __construct

 function __construct()
 {
     UnlistedSpecialPage::UnlistedSpecialPage('NewHowtoArticles');
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:4,代码来源:NewHowtoArticles.body.php


示例8: __construct

 public function __construct()
 {
     $this->startTime = microtime(true);
     UnlistedSpecialPage::UnlistedSpecialPage('Alien');
 }
开发者ID:ErdemA,项目名称:wikihow,代码行数:5,代码来源:Alien.body.php


示例9: array

 function __construct()
 {
     parent::__construct('TitusQueryTool');
     $this->language = "";
     $this->languageInfo = Misc::getActiveLanguageNames();
     $GLOBALS['wgHooks']['ShowSideBar'][] = array('TitusQueryTool::removeSideBarCallback');
 }
开发者ID:biribogos,项目名称:wikihow-src,代码行数:7,代码来源:TitusQueryTool.body.php


示例10: __construct

	public function __construct() {
		parent::__construct( 'UploadStash', 'upload' );
		try {
			$this->stash = RepoGroup::singleton()->getLocalRepo()->getUploadStash();
		} catch ( UploadStashNotAvailableException $e ) {
		}
	}
开发者ID:nahoj,项目名称:mediawiki_ynh,代码行数:7,代码来源:SpecialUploadStash.php


示例11: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     global $wgOutboundScreenConfig;
     $this->redirectDelay = $wgOutboundScreenConfig['redirectDelay'];
     $this->adLayoutMode = strtoupper($wgOutboundScreenConfig['adLayoutMode']);
     parent::__construct('Outbound');
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:10,代码来源:SpecialOutboundScreen_body.php


示例12: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     global $wgUser;
     parent::__construct('ArticleFeedbackv5');
     $showHidden = $wgUser->isAllowed('aftv5-see-hidden-feedback');
     $showDeleted = $wgUser->isAllowed('aftv5-see-deleted-feedback');
     if ($showHidden) {
         array_push($this->filters, 'unhelpful', 'abusive', 'invisible');
         # removing the 'needsoversight' filter, per Fabrice
     }
     if ($showDeleted) {
         $this->filters[] = 'deleted';
     }
     // NOTE: The 'all' option actually displays different things
     // based on the users role, which is handled in the filter:
     // - deleter's all is actually everything
     // - hidder's all is 'visible + hidden'
     // - regular non-admin only has 'all visible' not 'all'
     // The all option, if any, is only added once, at the end of the list,
     // which is why it's down here instead.
     if ($showDeleted) {
         $this->filters[] = 'all';
     } elseif ($showHidden) {
         $this->filters[] = 'notdeleted';
     }
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:29,代码来源:SpecialArticleFeedbackv5.php


示例13: __construct

 public function __construct()
 {
     global $wgExternalPagesSites, $wgExternalPages, $wgExternalPagesCacheExpiry;
     parent::__construct('ExternalPages');
     $this->epSites = $wgExternalPagesSites;
     $this->epPages = $wgExternalPages;
     $this->epExpiry = $wgExternalPagesCacheExpiry;
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:8,代码来源:ExternalPages_body.php


示例14: __construct

 public function __construct()
 {
     global $wgEmailTestSecretToken;
     parent::__construct('EmailTest', 'emailtest');
     $this->mChallengeToken = $wgEmailTestSecretToken;
     $this->mConfirmToken = time() . '-' . rand(10000, 99999) . '_emailtest';
     $this->mText = "The quick brown fox jumps over the lazy dog";
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:8,代码来源:SpecialEmailTest.php


示例15: __construct

	public function __construct() {
		parent::__construct( 'VariablePage' );
		
		// make sure configuration will result in something sane
		if ( !$this->sanityCheck() ) {
			throw new MWException( 'VariablePage configuation not sane!  Either $wgVariablePageDefault must be set or probabilites in $wgVariablePagePossibilities must add up to 100.' );
		}
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:8,代码来源:VariablePage.body.php


示例16:

 function __construct()
 {
     parent::__construct($this->getPageName(), $this->getRightRequirement());
     $this->mIncludable = false;
     global $wgOut, $wgUser, $wgRequest;
     $this->output = $wgOut;
     $this->user = $wgUser;
     $this->request = $wgRequest;
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:9,代码来源:ThreadActionPage.php


示例17: array

 function __construct()
 {
     parent::__construct('Html5editor');
     $this->mInterwiki = array();
     $dbr = wfGetDB(DB_SLAVE);
     $res = $dbr->select('interwiki', array('iw_prefix', 'iw_url'));
     while ($row = $dbr->fetchObject($res)) {
         $this->mInterwiki[$row->iw_prefix] = $row->iw_url;
     }
 }
开发者ID:biribogos,项目名称:wikihow-src,代码行数:10,代码来源:Html5editor.body.php


示例18: __construct

 public function __construct($request = null)
 {
     global $wgRequest;
     parent::__construct('UploadStash', 'upload');
     try {
         $this->stash = RepoGroup::singleton()->getLocalRepo()->getUploadStash();
     } catch (UploadStashNotAvailableException $e) {
         return null;
     }
     $this->loadRequest(is_null($request) ? $wgRequest : $request);
 }
开发者ID:GodelDesign,项目名称:Godel,代码行数:11,代码来源:SpecialUploadStash.php


示例19: __construct

 /**
  * Constructor following MW initialization convention
  */
 public function __construct()
 {
     try {
         $apiHandler = new FirefoxAccountsManager($GLOBALS['wgWebPlatformAuth']);
     } catch (Exception $e) {
         $this->getOutput()->showErrorPage('error', $e->getMessage());
         return;
     }
     $this->apiHandler = $apiHandler;
     parent::__construct('AccountsHandler');
 }
开发者ID:renoirb,项目名称:mediawiki-fxa-sso,代码行数:14,代码来源:AccountsHandlerSpecialPage.php


示例20: __construct

 /**
  * standard constructor
  * @access public
  */
 public function __construct($name = "Sitemap")
 {
     parent::__construct($name);
     $this->mPriorities = array(NS_MAIN => '1.0', NS_TALK => '0.1', NS_USER => '0.2', NS_USER_TALK => '0.1', NS_PROJECT => '0.1', NS_PROJECT_TALK => '0.1', NS_FILE => '0.5', NS_FILE_TALK => '0.1', NS_MEDIAWIKI => '0.1', NS_MEDIAWIKI_TALK => '0.1', NS_TEMPLATE => '0.1', NS_TEMPLATE_TALK => '0.1', NS_HELP => '0.1', NS_HELP_TALK => '0.1', NS_CATEGORY => '1.0', NS_CATEGORY_TALK => '0.1');
     $this->mSizeLimit = pow(2, 20) * 10 - 20;
     // safe margin
     $this->mLinkLimit = 5000;
     $this->mPage = 0;
     $this->mCacheTime = 86400 * 14;
     // cron is run every week but we want to keep them longer
     $this->mMediaService = new MediaQueryService();
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:16,代码来源:SpecialSitemap_body.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Update类代码示例发布时间:2022-05-23
下一篇:
PHP Universe类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap