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


PHP ApiQueryBase::getPossibleErrors方法代码示例

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


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

示例1: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('missingparam', 'anontoken'), array('code' => 'invalidtoken', 'info' => 'The anontoken is not 32 characters')));
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:4,代码来源:ApiQueryArticleFeedback.php

示例2: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'includeAllDenied', 'info' => 'Cannot view all servers info unless $wgShowHostnames is true')));
 }
开发者ID:laiello,项目名称:media-wiki-law,代码行数:4,代码来源:ApiQuerySiteinfo.php

示例3: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view deleted file information'), array('code' => 'hashsearchdisabled', 'info' => 'Search by hash disabled in Miser Mode'), array('code' => 'invalidsha1hash', 'info' => 'The SHA1 hash provided is not valid'), array('code' => 'invalidsha1base36hash', 'info' => 'The SHA1Base36 hash provided is not valid')));
 }
开发者ID:mangowi,项目名称:mediawiki,代码行数:4,代码来源:ApiQueryFilearchive.php

示例4: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'param_user', 'info' => 'User name $user not found'), array('code' => 'param_title', 'info' => 'Bad title value \'title\''), array('code' => 'param_prefix', 'info' => 'Bad title value \'prefix\''), array('code' => 'prefixsearchdisabled', 'info' => 'Prefix search disabled in Miser Mode')));
 }
开发者ID:eFFemeer,项目名称:seizamcore,代码行数:4,代码来源:ApiQueryLogEvents.php

示例5: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getRequireOnlyOneParameterErrorMessages(array('users', 'ip')), array(array('code' => 'cidrtoobroad', 'info' => 'CIDR ranges broader than /16 are not accepted'), array('code' => 'param_user', 'info' => 'User parameter may not be empty'), array('code' => 'param_user', 'info' => 'User name user is not valid'), array('show')));
 }
开发者ID:nischayn22,项目名称:mediawiki-core,代码行数:4,代码来源:ApiQueryBlocks.php

示例6: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'multisource', 'info' => "Cannot use 'pageids' at the same time as 'dataSource'"), array('code' => 'multisource', 'info' => "Cannot use 'revids' at the same time as 'dataSource'")));
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:4,代码来源:ApiPageSet.php

示例7: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('invalidtitle', 'title'), array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view the abuse log'), array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view IP addresses'), array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view detailed abuse log entries')));
 }
开发者ID:eFFemeer,项目名称:seizamcore,代码行数:4,代码来源:ApiQueryAbuseLog.php

示例8: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view deleted file information')));
 }
开发者ID:GodelDesign,项目名称:Godel,代码行数:4,代码来源:ApiQueryFilearchive.php

示例9: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view deleted revision information'), array('code' => 'badparams', 'info' => 'user and excludeuser cannot be used together'), array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view deleted revision content'), array('code' => 'badparams', 'info' => "The 'from' parameter cannot be used in modes 1 or 2"), array('code' => 'badparams', 'info' => "The 'to' parameter cannot be used in modes 1 or 2"), array('code' => 'badparams', 'info' => "The 'prefix' parameter cannot be used in modes 1 or 2"), array('code' => 'badparams', 'info' => "The 'start' parameter cannot be used in mode 3"), array('code' => 'badparams', 'info' => "The 'end' parameter cannot be used in mode 3")));
 }
开发者ID:Grprashanthkumar,项目名称:ColfusionWeb,代码行数:4,代码来源:ApiQueryDeletedrevs.php

示例10: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getRequireMaxOneParameterErrorMessages(array('url', 'prop')), array(array('missingparam', 'lang')));
 }
开发者ID:Tarendai,项目名称:spring-website,代码行数:4,代码来源:ApiQueryLangLinks.php

示例11: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('nosuchuser'), array('invalidip'), array('permissionerror'), array('invalidmode'), array('missingdata')));
 }
开发者ID:biribogos,项目名称:wikihow-src,代码行数:4,代码来源:ApiQueryCheckUser.php

示例12: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getRequireMaxOneParameterErrorMessages(array('group', 'excludegroup', 'rights', 'excluderights')));
 }
开发者ID:Tarendai,项目名称:spring-website,代码行数:4,代码来源:ApiQueryContributors.php

示例13: getPossibleErrors

 /**
  * (non-PHPdoc)
  * @see includes/api/ApiBase#getPossibleErrors()
  */
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('badaccess-groups'), array('missingparam', 'state')));
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:8,代码来源:ApiQueryStories.php

示例14: getPossibleErrors

	public function getPossibleErrors() {
		$p = $this->getModulePrefix();
		return array_merge( parent::getPossibleErrors(), array(
			array( 'code' => "{$p}urlwidth", 'info' => "{$p}urlheight cannot be used without {$p}urlwidth" ),
			array( 'code' => 'urlparam', 'info' => "Invalid value for {$p}urlparam" ),
			array( 'code' => 'urlparam_no_width', 'info' => "{$p}urlparam requires {$p}urlwidth" ),
		) );
	}
开发者ID:nahoj,项目名称:mediawiki_ynh,代码行数:8,代码来源:ApiQueryImageInfo.php

示例15: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'param_user', 'info' => 'User parameter may not be empty.'), array('code' => 'param_user', 'info' => 'User name user is not valid'), array('show'), array('code' => 'permissiondenied', 'info' => 'You need the patrol right to request the patrolled flag')));
 }
开发者ID:eFFemeer,项目名称:seizamcore,代码行数:4,代码来源:ApiQueryUserContributions.php


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