本文整理汇总了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")));
}
示例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')));
}
示例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')));
}
示例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')));
}
示例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")));
}
示例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')));
}
示例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')));
}
示例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')));
}
示例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')));
}
示例10: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('missingparam', 'lang')));
}
示例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')));
}
示例12: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('specialpage-cantexecute')));
}
示例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')));
}
示例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')));
}
示例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')));
}