当前位置: 首页>>代码示例>>PHP>>正文


PHP SpecialPageFactory::setGroup方法代码示例

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


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

示例1: onSpecialPage_initList

	public static function onSpecialPage_initList( &$list ) {
		global $wgOpenIDOnly, $wgOpenIDClientOnly;

		if ( $wgOpenIDOnly ) {
			$list['Userlogin'] = 'SpecialOpenIDLogin';

			# as Special:CreateAccount is an alias for Special:UserLogin/signup
			# we show our own OpenID page here, too
			$list['CreateAccount'] = 'SpecialOpenIDLogin';
		}

		# Special pages are added at global scope;
		# remove server-related ones if client-only flag is set
		$addList = array( 'Login', 'Convert', 'Dashboard' );
		if ( !$wgOpenIDClientOnly ) {
			$addList[] = 'Server';
			$addList[] = 'XRDS';
		}

		foreach ( $addList as $sp ) {
			$list['OpenID' . $sp] = 'SpecialOpenID' . $sp;
			SpecialPageFactory::setGroup( 'OpenID' . $sp, 'openid' );
		}

		return true;
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:26,代码来源:OpenID.hooks.php

示例2: __construct

	function __construct( $name = 'RandomExcludeBlank' ){
		global $wgContentNamespaces;

		$this->namespaces = $wgContentNamespaces;

		parent::__construct( $name );
		SpecialPageFactory::setGroup( 'RandomExcludeBlank','redirects' );
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:8,代码来源:SpecialPureWikiDeletion.php

示例3: setGroup

 /**
  * Add a page to a certain display group for Special:SpecialPages
  *
  * @param $page Mixed: SpecialPage or string
  * @param $group String
  * @deprecated since 1.18 call SpecialPageFactory method directly
  */
 static function setGroup($page, $group)
 {
     wfDeprecated(__METHOD__, '1.18');
     SpecialPageFactory::setGroup($page, $group);
 }
开发者ID:seedbank,项目名称:old-repo,代码行数:12,代码来源:SpecialPage.php

示例4: __construct

 public function __construct()
 {
     parent::__construct("WikiStats", "", true);
     SpecialPageFactory::setGroup('WikiStats', 'wiki');
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:5,代码来源:SpecialWikiStats_body.php

示例5: setGroup

 /**
  * Add a page to a certain display group for Special:SpecialPages
  *
  * @param $page Mixed: SpecialPage or string
  * @param $group String
  * @return null
  * @deprecated since 1.18 call SpecialPageFactory method directly
  */
 static function setGroup($page, $group)
 {
     return SpecialPageFactory::setGroup($page, $group);
 }
开发者ID:eFFemeer,项目名称:seizamcore,代码行数:12,代码来源:SpecialPage.php


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