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


PHP ApiQueryGeneratorBase::getPossibleErrors方法代码示例

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


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

示例1: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getTitleOrPageIdErrorMessage(), array(array('code' => 'bad_image_title', 'info' => "The title for {$this->getModuleName()} query must be an image")));
 }
开发者ID:Tarendai,项目名称:spring-website,代码行数:4,代码来源:ApiQueryBacklinks.php

示例2: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query')));
 }
开发者ID:seedbank,项目名称:old-repo,代码行数:4,代码来源:ApiQueryAllCategories.php

示例3: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'params', 'info' => 'Use "gapfilterredir=nonredirects" option instead of ' . '"redirects" when using allpages as a generator'), array('code' => 'params', 'info' => 'prlevel may not be used without prtype')));
 }
开发者ID:crippsy14,项目名称:orange-smorange,代码行数:4,代码来源:ApiQueryAllPages.php

示例4: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'bad_wlowner', 'info' => 'Specified user does not exist'), array('code' => 'bad_wltoken', 'info' => 'Incorrect watchlist token provided -- please set a correct token in Special:Preferences'), array('code' => 'notloggedin', 'info' => 'You must be logged-in to have a watchlist'), array('code' => 'patrol', 'info' => 'patrol property is not available'), array('show'), array('code' => 'permissiondenied', 'info' => 'You need the patrol right to request the patrolled flag'), array('code' => 'user-excludeuser', 'info' => 'user and excludeuser cannot be used together')));
 }
开发者ID:mangowi,项目名称:mediawiki,代码行数:4,代码来源:ApiQueryWatchlist.php

示例5: getPossibleErrors

 public function getPossibleErrors()
 {
     $m = $this->getModuleName();
     $what = $this->descriptionWhat;
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'params', 'info' => "{$m} cannot return corresponding page ids in unique {$what}s mode")));
 }
开发者ID:biribogos,项目名称:wikihow-src,代码行数:6,代码来源:ApiQueryAllLinks.php

示例6: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'search-text-disabled', 'info' => 'text search is disabled'), array('code' => 'search-title-disabled', 'info' => 'title search is disabled'), array('code' => 'search-error', 'info' => 'search error has occurred')));
 }
开发者ID:biribogos,项目名称:wikihow-src,代码行数:4,代码来源:ApiQuerySearch.php

示例7: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('show'), array('code' => 'permissiondenied', 'info' => 'You need the patrol right to request the patrolled flag'), array('code' => 'user-excludeuser', 'info' => 'user and excludeuser cannot be used together')));
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:4,代码来源:ApiQueryRecentChanges.php

示例8: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'params', 'info' => 'Use "gaifilterredir=nonredirects" option instead of "redirects" when using allimages as a generator'), array('code' => 'unsupportedrepo', 'info' => 'Local file repository does not support querying all images')));
 }
开发者ID:rocLv,项目名称:conference,代码行数:4,代码来源:ApiQueryAllimages.php

示例9: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getRequireOnlyOneParameterErrorMessages(array('title', 'pageid')), array(array('code' => 'invalidcategory', 'info' => 'The category name you entered is not valid'), array('code' => 'badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query'), array('nosuchpageid', 'pageid')));
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:4,代码来源:ApiQueryCategoryMembers.php

示例10: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('missingparam', 'lang')));
 }
开发者ID:Grprashanthkumar,项目名称:ColfusionWeb,代码行数:4,代码来源:ApiQueryLangBacklinks.php

示例11: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('invalidtitle', 'title'), array('code' => 'bad_image_title', 'info' => "The title for {$this->getModuleName()} query must be an image"), array('code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query')));
 }
开发者ID:eFFemeer,项目名称:seizamcore,代码行数:4,代码来源:ApiQueryBacklinks.php

示例12: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('specialpage-cantexecute')));
 }
开发者ID:seedbank,项目名称:old-repo,代码行数:4,代码来源:ApiQueryQueryPage.php

示例13: getPossibleErrors

 public function getPossibleErrors()
 {
     $p = $this->getModulePrefix();
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'params', 'info' => 'Use "gaifilterredir=nonredirects" option instead ' . 'of "redirects" when using allimages as a generator'), array('code' => 'badparams', 'info' => "Parameter'{$p}start' can only be used with {$p}sort=timestamp"), array('code' => 'badparams', 'info' => "Parameter'{$p}end' can only be used with {$p}sort=timestamp"), array('code' => 'badparams', 'info' => "Parameter'{$p}user' can only be used with {$p}sort=timestamp"), array('code' => 'badparams', 'info' => "Parameter'{$p}filterbots' can only be used with {$p}sort=timestamp"), array('code' => 'badparams', 'info' => "Parameter'{$p}from' can only be used with {$p}sort=name"), array('code' => 'badparams', 'info' => "Parameter'{$p}to' can only be used with {$p}sort=name"), array('code' => 'badparams', 'info' => "Parameter'{$p}prefix' can only be used with {$p}sort=name"), array('code' => 'badparams', 'info' => "Parameters '{$p}user' and '{$p}filterbots' cannot be used together"), array('code' => 'unsupportedrepo', 'info' => 'Local file repository does not support querying all images'), array('code' => 'mimesearchdisabled', 'info' => 'MIME search 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:crippsy14,项目名称:orange-smorange,代码行数:5,代码来源:ApiQueryAllImages.php

示例14: getPossibleErrors

 public function getPossibleErrors()
 {
     $m = $this->getModuleName();
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'params', 'info' => "{$m} cannot be used as a generator in unique links mode"), array('code' => 'params', 'info' => "{$m} cannot return corresponding page ids in unique links mode"), array('code' => 'params', 'info' => 'alcontinue and alfrom cannot be used together'), array('code' => 'badcontinue', 'info' => 'Invalid continue parameter')));
 }
开发者ID:GodelDesign,项目名称:Godel,代码行数:5,代码来源:ApiQueryAllLinks.php

示例15: getPossibleErrors

 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'notloggedin', 'info' => 'You must be logged-in to have a watchlist'), array('show'), array('code' => 'bad_wlowner', 'info' => 'Specified user does not exist'), array('code' => 'bad_wltoken', 'info' => 'Incorrect watchlist token provided -- please set a correct token in Special:Preferences')));
 }
开发者ID:mangowi,项目名称:mediawiki,代码行数:4,代码来源:ApiQueryWatchlistRaw.php


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