本文整理汇总了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;
}
示例2: __construct
public function __construct()
{
global $wgTitle;
$this->specialPage = $wgTitle->getPartialUrl();
$this->editDescs = $this->specialPage == 'AdminEditMetaInfo';
UnlistedSpecialPage::UnlistedSpecialPage($this->specialPage);
}
示例3: __construct
function __construct()
{
UnlistedSpecialPage::UnlistedSpecialPage('TitusQueryTool');
$this->language = "";
$this->languageInfo = Misc::getActiveLanguageNames();
$GLOBALS['wgHooks']['ShowSideBar'][] = array('TitusQueryTool::removeSideBarCallback');
}
示例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);
}
示例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;
}
}
示例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';
}
示例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");
}
示例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;
}
示例9: __construct
function __construct()
{
UnlistedSpecialPage::UnlistedSpecialPage('NewHowtoArticles');
}
示例10: ViewManagerLogo
function ViewManagerLogo()
{
UnlistedSpecialPage::UnlistedSpecialPage("ViewManagerLogo");
}
示例11: FeedAction
function FeedAction()
{
UnlistedSpecialPage::UnlistedSpecialPage("FeedAction");
}
示例12: __construct
function __construct()
{
global $wgHooks;
UnlistedSpecialPage::UnlistedSpecialPage('EditFinder');
$wgHooks['getToolStatus'][] = array('Misc::defineAsTool');
}
示例13: __construct
public function __construct()
{
$this->specialPage = 'AdminConfigEditor';
UnlistedSpecialPage::UnlistedSpecialPage($this->specialPage);
}
示例14: __construct
public function __construct()
{
global $wgTitle;
$this->specialPage = $wgTitle->getPartialUrl();
UnlistedSpecialPage::UnlistedSpecialPage($this->specialPage);
}
示例15: __construct
public function __construct()
{
UnlistedSpecialPage::UnlistedSpecialPage('PageStatCheck');
}