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


PHP UnlistedSpecialPage::UnlistedSpecialPage方法代碼示例

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


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

 function __construct()
 {
     UnlistedSpecialPage::UnlistedSpecialPage('TitusQueryTool');
     $this->language = "";
     $this->languageInfo = Misc::getActiveLanguageNames();
     $GLOBALS['wgHooks']['ShowSideBar'][] = array('TitusQueryTool::removeSideBarCallback');
 }
開發者ID:ErdemA,項目名稱:wikihow,代碼行數:7,代碼來源:TitusQueryTool.body.php

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

示例5: __construct

 function __construct()
 {
     UnlistedSpecialPage::UnlistedSpecialPage('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:ErdemA,項目名稱:wikihow,代碼行數:10,代碼來源:Html5editor.body.php

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

示例7: __construct

 public function __construct()
 {
     global $wgHooks;
     UnlistedSpecialPage::UnlistedSpecialPage('WelcomeWagon');
     $wgHooks['getToolStatus'][] = array('Misc::defineAsTool');
     $this->maxMessagesPerUser = 2;
     $this->maxSkipsPerUser = 3;
     //set up the cache variables
     $this->userIdsKey = wfMemcKey("welcomewagon_userids");
     $this->userMessagesKey = wfMemcKey("welcomewagon_usermessages");
     $this->userSkipsKey = wfMemcKey("welcomewagon_userskips");
     $this->cacheOk = wfMemcKey("welcomewagon_cacheok");
 }
開發者ID:ErdemA,項目名稱:wikihow,代碼行數:13,代碼來源:WelcomeWagon.body.php

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

示例9: __construct

 function __construct()
 {
     UnlistedSpecialPage::UnlistedSpecialPage('NewHowtoArticles');
 }
開發者ID:ErdemA,項目名稱:wikihow,代碼行數:4,代碼來源:NewHowtoArticles.body.php

示例10: ViewManagerLogo

 function ViewManagerLogo()
 {
     UnlistedSpecialPage::UnlistedSpecialPage("ViewManagerLogo");
 }
開發者ID:schwarer2006,項目名稱:wikia,代碼行數:4,代碼來源:viewManagerLogo.php

示例11: FeedAction

 function FeedAction()
 {
     UnlistedSpecialPage::UnlistedSpecialPage("FeedAction");
 }
開發者ID:schwarer2006,項目名稱:wikia,代碼行數:4,代碼來源:feedAction.php

示例12: __construct

 function __construct()
 {
     global $wgHooks;
     UnlistedSpecialPage::UnlistedSpecialPage('EditFinder');
     $wgHooks['getToolStatus'][] = array('Misc::defineAsTool');
 }
開發者ID:ErdemA,項目名稱:wikihow,代碼行數:6,代碼來源:EditFinder.body.php

示例13: __construct

 public function __construct()
 {
     $this->specialPage = 'AdminConfigEditor';
     UnlistedSpecialPage::UnlistedSpecialPage($this->specialPage);
 }
開發者ID:ErdemA,項目名稱:wikihow,代碼行數:5,代碼來源:AdminConfigEditor.body.php

示例14: __construct

 public function __construct()
 {
     global $wgTitle;
     $this->specialPage = $wgTitle->getPartialUrl();
     UnlistedSpecialPage::UnlistedSpecialPage($this->specialPage);
 }
開發者ID:ErdemA,項目名稱:wikihow,代碼行數:6,代碼來源:AdminUserCompletedImages.body.php

示例15: __construct

 public function __construct()
 {
     UnlistedSpecialPage::UnlistedSpecialPage('PageStatCheck');
 }
開發者ID:ErdemA,項目名稱:wikihow,代碼行數:4,代碼來源:PageStatCheck.body.php


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