[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

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

Implements Special:MyLanguage This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author: Niklas Laxström
Author: Siebrand Mazeland
Copyright: Copyright © 2010-2013 Niklas Laxström, Siebrand Mazeland
File Size: 93 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SpecialMyLanguage:: (3 methods):
  __construct()
  getRedirect()
  findTitle()


Class: SpecialMyLanguage  - X-Ref

Unlisted special page just to redirect the user to the translated version of
a page, if it exists.

Usage: [[Special:MyLanguage/Page name|link text]]

__construct()   X-Ref
No description

getRedirect( $par )   X-Ref
If the special page is a redirect, then get the Title object it redirects to.
False otherwise.

param: string $par Subpage string
return: Title|bool

findTitle( $par )   X-Ref
Assuming the user's interface language is fi. Given input Page, it
returns Page/fi if it exists, otherwise Page. Given input Page/de,
it returns Page/fi if it exists, otherwise Page/de if it exists,
otherwise Page.

param: string $par
return: Title|null



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