當前位置: 首頁>>代碼示例>>PHP>>正文


PHP UnlistedSpecialPage::__construct方法代碼示例

本文整理匯總了PHP中UnlistedSpecialPage::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP UnlistedSpecialPage::__construct方法的具體用法?PHP UnlistedSpecialPage::__construct怎麽用?PHP UnlistedSpecialPage::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在UnlistedSpecialPage的用法示例。


在下文中一共展示了UnlistedSpecialPage::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __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

示例2: __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

示例3: __construct

 public function __construct()
 {
     global $wgTitle;
     $this->specialPage = $wgTitle->getPartialUrl();
     $this->editDescs = $this->specialPage == 'AdminEditMetaInfo';
     parent::__construct($this->specialPage);
 }
開發者ID:biribogos,項目名稱:wikihow-src,代碼行數:7,代碼來源:AdminEditInfo.body.php

示例4: __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

示例5: 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

示例6: __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

示例7: __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

示例8: __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

示例9: __construct

 public function __construct()
 {
     parent::__construct('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:biribogos,項目名稱:wikihow-src,代碼行數:8,代碼來源:BounceTimeLogger.body.php

示例10:

 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

示例11: 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

示例12: array

 function __construct()
 {
     global $wgMessageCache, $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgHooks;
     parent::__construct('RateArticle');
     $wgHooks['AfterArticleDisplayed'][] = array("RateArticle::showForm");
     $wgHooks['ArticleDelete'][] = array("RateArticle::clearRatingsOnDelete");
     $wgLogTypes[] = 'accuracy';
     $wgLogNames['accuracy'] = 'accuracylogpage';
     $wgLogHeaders['accuracy'] = 'accuracylogtext';
 }
開發者ID:biribogos,項目名稱:wikihow-src,代碼行數:10,代碼來源:RateArticle.body.php

示例13: __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

示例14: __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

示例15: __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::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。