Пример #1
0
 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
0
 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')));
 }
 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
0
 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
0
 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
0
 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
0
 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')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'notloggedin', 'info' => 'You must be logged-in to have a watchlist')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getTitleOrPageIdErrorMessage(), array(array('code' => 'invalidcategory', 'info' => 'The category name you entered is not valid')));
 }
Пример #10
0
 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')));
 }
Пример #11
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => '_invalid-page', 'info' => "Invalid page title provided"), array('code' => '_nonexistent-page', 'info' => "Page does not exist"), array('code' => '_no-coordinates', 'info' => 'Page coordinates unknown')));
 }
Пример #12
0
 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')));
 }
Пример #13
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'notitle', 'info' => 'The cmtitle parameter is required'), 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')));
 }
Пример #14
0
 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'), array('code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query')));
 }
Пример #15
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'bad_query', 'info' => 'Invalid query')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('missingparam', 'lang')));
 }
Пример #17
0
 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')));
 }
Пример #18
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('specialpage-cantexecute')));
 }
 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')));
 }
Пример #20
0
 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')));
 }
Пример #21
0
 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')));
 }
Пример #22
0
 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'), 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'), array('code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query')));
 }
Пример #23
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('show')));
 }
Пример #24
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'param-search', 'info' => 'empty search string is not allowed'), array('code' => 'search-text-disabled', 'info' => 'text search is disabled'), array('code' => 'search-title-disabled', 'info' => 'title search is disabled')));
 }