| [ 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: | 112 lines (3 kb) |
| Included or required: | 0 times |
| Referenced: | 1 time |
| Includes or requires: | 0 files |
ConfigFactory:: (4 methods):
getDefaultInstance()
destroyDefaultInstance()
register()
makeConfig()
Class: ConfigFactory - X-Ref
Factory class to create Config objects| getDefaultInstance() X-Ref |
| destroyDefaultInstance() X-Ref |
| Destroy the default instance Should only be called inside unit tests |
| register( $name, $callback ) X-Ref |
| Register a new config factory function Will override if it's already registered param: string $name param: callable $callback That takes this ConfigFactory as an argument |
| makeConfig( $name ) X-Ref |
| Create a given Config using the registered callback for $name. If an object was already created, the same Config object is returned. param: string $name Name of the extension/component you want a Config object for return: Config |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |