public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('missingparam', 'anontoken'), array('code' => 'invalidtoken', 'info' => 'The anontoken is not 32 characters')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'includeAllDenied', 'info' => 'Cannot view all servers info unless $wgShowHostnames is true')));
 }
 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')));
 }
 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')));
 }
 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')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'group-excludegroup', 'info' => 'group and excludegroup cannot be used together')));
 }
Beispiel #7
0
 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'")));
 }
 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')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view deleted file information')));
 }
 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")));
 }
Beispiel #11
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'iiurlwidth', 'info' => 'iiurlheight cannot be used without iiurlwidth')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getRequireMaxOneParameterErrorMessages(array('url', 'prop')), array(array('missingparam', 'lang')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('nosuchuser'), array('invalidip'), array('permissionerror'), array('invalidmode'), array('missingdata')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getRequireMaxOneParameterErrorMessages(array('group', 'excludegroup', 'rights', 'excluderights')));
 }
Beispiel #15
0
 /**
  * (non-PHPdoc)
  * @see includes/api/ApiBase#getPossibleErrors()
  */
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('badaccess-groups'), array('missingparam', 'state')));
 }
	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" ),
		) );
	}
 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')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view code revisions'), array('code' => 'invalidrepo', 'info' => "Invalid repo ``repo''")));
 }
Beispiel #19
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('nosuchrevid', 'diffto'), array('code' => 'revids', 'info' => 'The revids= parameter may not be used with the list options (limit, startid, endid, dirNewer, start, end).'), array('code' => 'multpages', 'info' => 'titles, pageids or a generator was used to supply multiple pages, but the limit, startid, endid, dirNewer, user, excludeuser, start and end parameters may only be used on a single page.'), array('code' => 'diffto', 'info' => 'rvdiffto must be set to a non-negative number, "prev", "next" or "cur"'), array('code' => 'badparams', 'info' => 'start and startid cannot be used together'), array('code' => 'badparams', 'info' => 'end and endid cannot be used together'), array('code' => 'badparams', 'info' => 'user and excludeuser cannot be used together'), array('code' => 'nosuchsection', 'info' => 'There is no section section in rID')));
 }
 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"), array('code' => 'urlparam_urlwidth_mismatch', 'info' => "The width set in {$p}urlparm doesnt't " . "match the one in {$p}urlwidth")));
 }
 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'), 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' => 'bad_query', 'info' => 'Invalid query')));
 }
 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' => 'invalidlang', 'info' => 'Invalid language code for parameter lang')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('nosuchuser', 'user'), array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view abuse filters'), array('code' => 'show', 'Incorrect parameter - mutually exclusive values may not be supplied')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'cidrtoobroad', 'info' => 'CIDR ranges broader than /16 are not accepted')));
 }
 /**
  * (non-PHPdoc)
  * @see includes/api/ApiBase#getPossibleErrors()
  */
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('missingparam', 'language')));
 }
 public function getPossibleErrors()
 {
     global $wgBlockCIDRLimit;
     return array_merge(parent::getPossibleErrors(), $this->getRequireMaxOneParameterErrorMessages(array('users', 'ip')), array(array('code' => 'cidrtoobroad', 'info' => "IPv4 CIDR ranges broader than /{$wgBlockCIDRLimit['IPv4']} are not accepted"), array('code' => 'cidrtoobroad', 'info' => "IPv6 CIDR ranges broader than /{$wgBlockCIDRLimit['IPv6']} are not accepted"), array('code' => 'param_ip', 'info' => 'IP parameter is not valid'), array('code' => 'param_user', 'info' => 'User parameter may not be empty'), array('code' => 'param_user', 'info' => 'User name user is not valid'), array('show')));
 }
 /**
  * (non-PHPdoc)
  * @see includes/api/ApiBase#getPossibleErrors()
  */
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array());
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('permissionerror')));
 }