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


PHP ApiBase::getPossibleErrors方法代码示例

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


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

示例1: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'badgenerator', 'info' => 'Module $generatorName cannot be used as a generator')));
 }
开发者ID:GodelDesign,项目名称:Godel,代码行数:4,代码来源:ApiQuery.php

示例2: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('invalidtitle', 'title'), array('notanarticle'), array('invaliduser', 'user')));
 }
开发者ID:biribogos,项目名称:wikihow-src,代码行数:4,代码来源:ApiRollback.php

示例3: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('missingparam', 'locations')));
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:4,代码来源:ApiGeocode.php

示例4: getPossibleErrors

	/**
	 * Errors!
	 *
	 * @return array
	 */
	public function getPossibleErrors() {
		return array_merge( parent::getPossibleErrors(), array(
				array( 'code' => 'invalidchannel',
						'info' => 'Invalid channel given' ),
				array( 'code' => 'permissiondenied',
						'info' => 'Insufficient rights for the actions requested' ),
		) );
	}
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:13,代码来源:ApiServerAdminLogEntry.php

示例5: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getRequireOnlyOneParameterErrorMessages(array('from', 'fromid')), array(array('invalidtitle', 'from'), array('nosuchpageid', 'fromid'), array('notanarticle'), array('invalidtitle', 'to'), array('sharedfile-exists')));
 }
开发者ID:tuxmania87,项目名称:GalaxyAdventures,代码行数:4,代码来源:ApiMove.php

示例6: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('usermaildisabled'), array('missingparam', 'target'), array('missingparam', 'text')));
 }
开发者ID:rocLv,项目名称:conference,代码行数:4,代码来源:ApiEmailUser.php

示例7: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'feed-invalid', 'info' => 'Invalid subscription feed type'), array('code' => 'language-invalid', 'info' => 'Invalid language code')));
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:4,代码来源:ApiFeaturedFeeds.php

示例8: getPossibleErrors

 public function getPossibleErrors()
 {
     $right = self::$right;
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'permissiondenied', 'info' => "You must have {$right} right"), array('code' => 'disabled', 'info' => "Message group workflows are not in use"), array('code' => 'sameworkflowstate', 'info' => "The requested state is identical to the current state")));
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:5,代码来源:ApiGroupReview.php

示例9: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getRequireOnlyOneParameterErrorMessages(array('title', 'pageid')), array(array('invalidtitle', 'title'), array('nosuchpageid', 'pageid'), array('notanarticle'), array('hookaborted', 'error'), array('delete-toobig', 'limit'), array('cannotdelete', 'title'), array('invalidoldimage'), array('nodeleteablefile')));
 }
开发者ID:laiello,项目名称:media-wiki-law,代码行数:4,代码来源:ApiDelete.php

示例10: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('permdenied-undelete'), array('blockedtext'), array('invalidtitle', 'title'), array('cannotundelete')));
 }
开发者ID:Grprashanthkumar,项目名称:ColfusionWeb,代码行数:4,代码来源:ApiUndelete.php

示例11: getPossibleErrors

 /**
  * @return array
  */
 public function getPossibleErrors()
 {
     $errors = parent::getPossibleErrors();
     $errors = array_merge($errors, array(array('invalidtitle', 'title'), array('invalidtitle', 'key')));
     return $errors;
 }
开发者ID:mangowi,项目名称:mediawiki,代码行数:9,代码来源:ApiQueryBase.php

示例12: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getRequireOnlyOneParameterErrorMessages(array('filekey', 'file', 'url', 'statuskey')), array(array('uploaddisabled'), array('invalid-file-key'), array('uploaddisabled'), array('mustbeloggedin', 'upload'), array('badaccess-groups'), array('code' => 'fetchfileerror', 'info' => ''), array('code' => 'nomodule', 'info' => 'No upload module set'), array('code' => 'empty-file', 'info' => 'The file you submitted was empty'), array('code' => 'filetype-missing', 'info' => 'The file is missing an extension'), array('code' => 'filename-tooshort', 'info' => 'The filename is too short'), array('code' => 'overwrite', 'info' => 'Overwriting an existing file is not allowed'), array('code' => 'stashfailed', 'info' => 'Stashing temporary file failed'), array('code' => 'internal-error', 'info' => 'An internal error occurred'), array('code' => 'asynccopyuploaddisabled', 'info' => 'Asynchronous copy uploads disabled')));
 }
开发者ID:slackfaith,项目名称:deadbrain_site,代码行数:4,代码来源:ApiUpload.php

示例13: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getRequireOnlyOneParameterErrorMessages(array('vars', 'rcid', 'logid')), array(array('permissiondenied'), array('nosuchrcid'), array('code' => 'nosuchlogid', 'info' => 'There is no abuselog entry with the id given'), array('code' => 'badsyntax', 'info' => 'The filter has invalid syntax')));
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:4,代码来源:ApiAbuseFilterCheckMatch.php

示例14: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'notloggedin', 'info' => 'You must be logged-in to have a watchlist'), array('invalidtitle', 'title'), array('hookaborted')));
 }
开发者ID:Tarendai,项目名称:spring-website,代码行数:4,代码来源:ApiWatch.php

示例15: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('cantimport'), array('missingparam', 'interwikipage'), array('cantimport-upload'), array('import-unknownerror', 'source'), array('import-unknownerror', 'result'), array('import-rootpage-nosubpage', 'namespace'), array('import-rootpage-invalid')));
 }
开发者ID:seedbank,项目名称:old-repo,代码行数:4,代码来源:ApiImport.php


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