| 1 | <?php |
||
| 16 | final class MapsHooks { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Adds a link to Admin Links page. |
||
| 20 | * |
||
| 21 | * @since 0.7 |
||
| 22 | * |
||
| 23 | * @param ALTree $admin_links_tree |
||
| 24 | * |
||
| 25 | * @return boolean |
||
| 26 | */ |
||
| 27 | public static function addToAdminLinks( ALTree &$admin_links_tree ) { |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Adds global JavaScript variables. |
||
| 49 | * |
||
| 50 | * @since 1.0 |
||
| 51 | * @see http://www.mediawiki.org/wiki/Manual:Hooks/MakeGlobalVariablesScript |
||
| 52 | * |
||
| 53 | * @param array &$vars Variables to be added into the output |
||
| 54 | * |
||
| 55 | * @return boolean true in all cases |
||
| 56 | */ |
||
| 57 | public static function onMakeGlobalVariablesScript( array &$vars ) { |
||
| 67 | |||
| 68 | } |
||
| 69 |
Instead of super-globals, we recommend to explicitly inject the dependencies of your class. This makes your code less dependent on global state and it becomes generally more testable: