MediaWiki master
|
Static Public Member Functions | |
static | addClassToClassList ( $class, string $newClass) |
Adds a class to the existing class value, supporting it as a string or array. | |
static | getReturnToParam ( $title, $request, $authority) |
Builds query params for the page to return to, used when building links. | |
static | makeSpecialUrl ( $name, $urlaction='', $proto=null) |
Make a URL for a Special Page using the given query and protocol. | |
static | makeSpecialUrlSubpage ( $name, $subpage, $urlaction='') |
Definition at line 10 of file SkinComponentUtils.php.
|
static |
Adds a class to the existing class value, supporting it as a string or array.
string | array | $class | to update. |
string | $newClass | to add. |
Definition at line 20 of file SkinComponentUtils.php.
|
static |
Builds query params for the page to return to, used when building links.
Title | $title | |
WebRequest | $request | |
Authority | $authority |
Definition at line 39 of file SkinComponentUtils.php.
References wfArrayToCgi(), and wfCgiToArray().
|
static |
Make a URL for a Special Page using the given query and protocol.
If $proto is set to null, make a local URL. Otherwise, make a full URL with the protocol specified.
string | $name | Name of the Special page |
string | array | $urlaction | Query to append |
string | null | $proto | Protocol to use or null for a local URL |
Definition at line 86 of file SkinComponentUtils.php.
References MediaWiki\SpecialPage\SpecialPage\getSafeTitleFor().
Referenced by MediaWiki\Skin\SkinComponentTempUserBanner\__construct().
|
static |
string | $name | |
string | bool | $subpage | false for no subpage |
string | array | $urlaction |
Definition at line 101 of file SkinComponentUtils.php.
References MediaWiki\SpecialPage\SpecialPage\getSafeTitleFor().