| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Copyright 2014 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.
| File Size: | 214 lines (7 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
SkinFactory:: (6 methods):
getDefaultInstance()
register()
getLegacySkinNames()
getSkinNames()
getLegacySkin()
makeSkin()
Class: SkinFactory - X-Ref
Factory class to create Skin objects| getDefaultInstance() X-Ref |
| register( $name, $displayName, $callback ) X-Ref |
| Register a new Skin factory function. Will override if it's already registered. param: string $name Internal skin name. Should be all-lowercase (technically doesn't have param: string $displayName For backwards-compatibility with old skin loading system. This is param: callable $callback Callback that takes the skin name as an argument |
| getLegacySkinNames() X-Ref |
return: array |
| getSkinNames() X-Ref |
| Returns an associative array of: skin name => human readable name return: array |
| getLegacySkin( $name ) X-Ref |
| Get a legacy skin which uses the autodiscovery mechanism. param: string $name return: Skin|bool False if the skin couldn't be constructed |
| makeSkin( $name ) X-Ref |
| Create a given Skin using the registered callback for $name. param: string $name Name of the skin you want return: Skin |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |