本文整理汇总了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');
}
示例2: __construct
function __construct()
{
global $wgMessageCache;
SpecialPage::SpecialPage(self::specialPageName, '', false);
$this->title = Title::makeTitle(NS_SPECIAL, self::specialPageName);
$wgMessageCache->addMessages(self::$messages);
}
示例3: DSMWGeneralExhibits
function DSMWGeneralExhibits()
{
if (defined('SRF_VERSION')) {
SpecialPage::SpecialPage('DSMWGeneralExhibits');
}
wfLoadExtensionMessages('DSMW');
}
示例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'));
}
示例5: __construct
public function __construct()
{
// Initialize special page
SpecialPage::SpecialPage('Drafts');
// Internationalization
wfLoadExtensionMessages('Drafts');
}
示例6: __construct
function __construct()
{
global $wgIFI_ValidDomains, $wgIFI_UseAjax, $wgIFI_AjaxDomain;
SpecialPage::SpecialPage('ImportFreeImages');
if ($wgIFI_UseAjax) {
$wgIFI_ValidDomains[$wgIFI_AjaxDomain] = 1;
}
}
示例7: EmailMe
function EmailMe()
{
global $wgEmailMeAddress;
SpecialPage::SpecialPage("EmailMe", '', true, 'efRunEmailMe');
wfLoadExtensionMessages('EmailMe');
$this->mAddress = $wgEmailMeAddress;
return true;
}
示例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');
}
示例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');
}
示例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');
}
示例11: SpecialPagesManagerUpdater
function SpecialPagesManagerUpdater()
{
SpecialPage::SpecialPage("SpecialPagesManagerUpdater", 'siteupdate');
self::loadMessages();
if (self::$instance === null) {
self::$instance = $this;
}
return self::$instance;
}
示例12: AnyWikiDraw
function AnyWikiDraw()
{
SpecialPage::SpecialPage("AnyWikiDraw");
self::loadMessages();
$this->mUploadDescription = '';
$this->mLicense = '';
$this->mUploadCopyStatus = '';
$this->mUploadSource = '';
$this->mWatchthis = false;
}
示例13: AnyWikiDraw
function AnyWikiDraw()
{
SpecialPage::SpecialPage("AnyWikiDraw");
wfLoadExtensionMessages('AnyWikiDraw');
$this->mUploadDescription = '';
$this->mLicense = '';
$this->mUploadCopyStatus = '';
$this->mUploadSource = '';
$this->mWatchthis = false;
}
示例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();
}
}
}
示例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;
}
}