[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/specials/ -> SpecialRedirect.php (summary)

Implements Special:Redirect

File Size: 269 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SpecialRedirect:: (12 methods):
  __construct()
  setParameter()
  dispatchUser()
  dispatchFile()
  dispatchRevision()
  dispatchPage()
  dispatch()
  getFormFields()
  onSubmit()
  onSuccess()
  alterForm()
  getGroupName()


Class: SpecialRedirect  - X-Ref

A special page that redirects to: the user for a numeric user id,
the file for a given filename, or the page for a given revision id.

__construct()   X-Ref
The identifier/value for the redirect (which id, which file)


setParameter( $subpage )   X-Ref
Set $mType and $mValue based on parsed value of $subpage.

param: string $subpage

dispatchUser()   X-Ref
Handle Special:Redirect/user/xxxx (by redirecting to User:YYYY)

return: string|null Url to redirect to, or null if $mValue is invalid.

dispatchFile()   X-Ref
Handle Special:Redirect/file/xxxx

return: string|null Url to redirect to, or null if $mValue is not found.

dispatchRevision()   X-Ref
Handle Special:Redirect/revision/xxx
(by redirecting to index.php?oldid=xxx)

return: string|null Url to redirect to, or null if $mValue is invalid.

dispatchPage()   X-Ref
Handle Special:Redirect/page/xxx (by redirecting to index.php?curid=xxx)

return: string|null Url to redirect to, or null if $mValue is invalid.

dispatch()   X-Ref
Use appropriate dispatch* method to obtain a redirection URL,
and either: redirect, set a 404 error code and error message,
or do nothing (if $mValue wasn't set) allowing the form to be
displayed.

return: bool True if a redirect was successfully handled.

getFormFields()   X-Ref
No description

onSubmit( array $data )   X-Ref
No description

onSuccess()   X-Ref
No description

alterForm( HTMLForm $form )   X-Ref
No description

getGroupName()   X-Ref
No description



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1