Exemple #1
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'badgenerator', 'info' => 'Module $generatorName cannot be used as a generator')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('invalidtitle', 'title'), array('notanarticle'), array('invaliduser', 'user')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('missingparam', 'locations')));
 }
	/**
	 * 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' ),
		) );
	}
 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')));
 }
Exemple #6
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('usermaildisabled'), array('missingparam', 'target'), array('missingparam', 'text')));
 }
 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')));
 }
 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")));
 }
Exemple #9
0
 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')));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('permdenied-undelete'), array('blockedtext'), array('invalidtitle', 'title'), array('cannotundelete')));
 }
Exemple #11
0
 /**
  * @return array
  */
 public function getPossibleErrors()
 {
     $errors = parent::getPossibleErrors();
     $errors = array_merge($errors, array(array('invalidtitle', 'title'), array('invalidtitle', 'key')));
     return $errors;
 }
 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')));
 }
 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')));
 }
Exemple #14
0
 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')));
 }
Exemple #15
0
 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')));
 }
Exemple #16
0
 /**
  * @see ApiBase::getPossibleErrors
  * 
  * @since 0.1
  */
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array());
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'inputneeded', 'info' => 'A title or a revision is needed'), array('invalidtitle', 'title'), array('code' => 'baddiff', 'info' => 'The diff cannot be retrieved. Maybe one or both revisions do not exist or you do not have permission to view them.')));
 }
	public function getPossibleErrors() {
		return array_merge( parent::getPossibleErrors(), array(
			array( 'code' => 'WrongPassword', 'info' => 'Incorrect password entered. Please try again.' ),
			array( 'code' => 'ReadOnlyPage', 'info' => 'Accounts cannot be created with read-only permissions' ),
			array( 'code' => 'NoCookies', 'info' => 'The user account was not created, as we could not confirm its source. Ensure you have cookies enabled, reload this page and try again.' ),
			array( 'code' => 'NeedToken', 'info' => 'You need to resubmit your signup with the specified token' ),
			array( 'code' => 'WrongToken', 'info' => 'You specified an invalid token' ),
			array( 'code' => 'InsufficientPermission', 'info' => 'You do not have sufficient permissions to create account' ),
			array( 'code' => 'CreateBlocked', 'info' => 'You have been blocked from creating accounts' ),
			array( 'code' => 'IPBlocked', 'info' => 'Your IP is blocked from creating accounts' ),
			array( 'code' => 'NoName', 'info' => 'You have not set a valid name for the username parameter' ),
			array( 'code' => 'UserExists', 'info' => 'Username entered already in use. Please choose a different name.' ),
			array( 'code' => 'WrongRetype', 'info' => 'The passwords you entered do not match.' ),
			array( 'code' => 'InvalidPass', 'info' => 'You specified an invalid password' ),
			array( 'code' => 'NoEmail', 'info' => 'No e-mail address specified' ),
			array( 'code' => 'InvalidEmail', 'info' => 'You specified an invalid email address' ),
			array( 'code' => 'BlockedByHook', 'info' => 'A hook blocked account creation' ),
			array( 'code' => 'ExternalDBError', 'info' => 'There was either an authentication database error or you are not allowed to update your external account.' ),
			array( 'code' => 'Throttled', 'info' => 'You have tried creating accounts too many times in a short period' ),
		) );
	}
 public function getPossibleErrors()
 {
     $psModule = new ApiPageSet($this);
     return array_merge(parent::getPossibleErrors(), $psModule->getPossibleErrors(), $this->getRequireMaxOneParameterErrorMessages(array('timestamp', 'torevid', 'newerthanrevid')), $this->getRequireOnlyOneParameterErrorMessages(array_merge(array('entirewatchlist'), array_keys($psModule->getAllowedParams()))), array(array('code' => 'notloggedin', 'info' => 'Anonymous users cannot use watchlist change notifications'), array('code' => 'multpages', 'info' => 'torevid may only be used with a single page'), array('code' => 'multpages', 'info' => 'newerthanrevid may only be used with a single page')));
 }
Exemple #20
0
 public function getPossibleErrors()
 {
     global $wgMaxArticleSize;
     return array_merge(parent::getPossibleErrors(), array(array('missingtext'), array('invalidtitle', 'title'), array('createonly-exists'), array('nocreate-missing'), array('nosuchrevid', 'undo'), array('nosuchrevid', 'undoafter'), array('revwrongpage', 'id', 'text'), array('undo-failure'), array('hashcheckfailed'), array('hookaborted'), array('noimageredirect-anon'), array('noimageredirect-logged'), array('spamdetected', 'spam'), array('summaryrequired'), array('filtered'), array('blockedtext'), array('contenttoobig', $wgMaxArticleSize), array('noedit-anon'), array('noedit'), array('actionthrottledtext'), array('wasdeleted'), array('nocreate-loggedin'), array('blankpage'), array('editconflict'), array('emptynewsection'), array('unknownerror', 'retval'), array('code' => 'nosuchsection', 'info' => 'There is no section section.'), array('code' => 'invalidsection', 'info' => 'The section parameter must be set to an integer or \'new\'')));
 }
Exemple #21
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('missingparam', 'name'), array('missingparam', 'enabled')));
 }
Exemple #22
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'params', 'info' => 'The page parameter cannot be used together with the text and title parameters'), array('code' => 'missingrev', 'info' => 'There is no revision ID oldid'), array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view deleted revisions'), array('code' => 'missingtitle', 'info' => 'The page you specified doesn\'t exist')));
 }
Exemple #23
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), $this->getPageSet()->getFinalPossibleErrors());
 }
Exemple #24
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'notarget', 'info' => 'Provided revision or page can not be found.'), array('code' => 'notreviewable', 'info' => 'Provided page is not reviewable.'), array('code' => 'mixedapproval', 'info' => 'No flags can be set to zero when accepting a revision.'), array('code' => 'invalidtags', 'info' => 'The given tags have a value that is out of range.'), array('code' => 'permissiondenied', 'info' => 'Insufficient rights to set the specified flags or review/edit the page.')));
 }
Exemple #25
0
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'NeedToken', 'info' => 'You need to resubmit your login with the specified token. See https://bugzilla.wikimedia.org/show_bug.cgi?id=23076'), array('code' => 'WrongToken', 'info' => 'You specified an invalid token'), array('code' => 'NoName', 'info' => 'You didn\'t set the lgname parameter'), array('code' => 'Illegal', 'info' => ' You provided an illegal username'), array('code' => 'NotExists', 'info' => ' The username you provided doesn\'t exist'), array('code' => 'EmptyPass', 'info' => ' You didn\'t set the lgpassword parameter or you left it empty'), array('code' => 'WrongPass', 'info' => ' The password you provided is incorrect'), array('code' => 'WrongPluginPass', 'info' => 'Same as "WrongPass", returned when an authentication plugin rather than MediaWiki itself rejected the password'), array('code' => 'CreateBlocked', 'info' => 'The wiki tried to automatically create a new account for you, but your IP address has been blocked from account creation'), array('code' => 'Throttled', 'info' => 'You\'ve logged in too many times in a short time'), array('code' => 'Blocked', 'info' => 'User is blocked')));
 }
Exemple #26
0
 /**
  * @return array
  */
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('readonlytext'), array('code' => 'unknown_format', 'info' => 'Unrecognized format: format'), array('code' => 'unknown_action', 'info' => 'The API requires a valid action parameter'), array('code' => 'maxlag', 'info' => 'Waiting for host: x seconds lagged'), array('code' => 'maxlag', 'info' => 'Waiting for a database server: x seconds lagged')));
 }
Exemple #27
0
 /**
  * @return array
  */
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('invalidtitle', 'title'), array('invalidtitle', 'key')));
 }
Exemple #28
0
	public function getPossibleErrors() {
		return array_merge( parent::getPossibleErrors(),
			$this->getTitleOrPageIdErrorMessage(),
			array(
				array( 'notanarticle' ),
				array( 'hookaborted', 'error' ),
				array( 'delete-toobig', 'limit' ),
				array( 'cannotdelete', 'title' ),
				array( 'invalidoldimage' ),
				array( 'nodeleteablefile' ),
			)
		);
	}
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'params', 'info' => 'The page parameter cannot be used together with the text and title parameters'), array('code' => 'params', 'info' => 'The text parameter should be passed with the title parameter. Should you be using the "page" parameter instead?'), array('code' => 'missingrev', 'info' => 'There is no revision ID oldid'), array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view deleted revisions'), array('code' => 'missingtitle', 'info' => 'The page you specified doesn\'t exist'), array('code' => 'nosuchsection', 'info' => 'There is no section sectionnumber in page'), array('nosuchpageid'), array('invalidtitle', 'title'), array('code' => 'parseerror', 'info' => 'Failed to parse the given text.'), array('code' => 'notwikitext', 'info' => 'The requested operation is only supported on wikitext content.'), array('code' => 'pagecannotexist', 'info' => "Namespace doesn't allow actual pages")));
 }
 public function getPossibleErrors()
 {
     return array_merge(parent::getPossibleErrors(), array(array('code' => 'notsuspended', 'info' => 'That user has not had their autoconfirmed status suspended'), array('code' => 'permissiondenied', 'info' => 'You do not have permissions to unblock autopromotion')));
 }