Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
| CargoGoogleMapsFormat | |
0.00% |
0 / 7 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getScripts | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |||
| getStyles | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @author Yaron Koren |
| 5 | * @ingroup Cargo |
| 6 | */ |
| 7 | class CargoGoogleMapsFormat extends CargoMapsFormat { |
| 8 | |
| 9 | public function __construct( $output ) { |
| 10 | parent::__construct( $output ); |
| 11 | self::$mappingService = "Google Maps"; |
| 12 | } |
| 13 | |
| 14 | public static function getScripts() { |
| 15 | global $wgCargoGoogleMapsKey; |
| 16 | |
| 17 | return [ |
| 18 | "https://maps.googleapis.com/maps/api/js?v=3.exp&key=$wgCargoGoogleMapsKey" |
| 19 | ]; |
| 20 | } |
| 21 | |
| 22 | public static function getStyles() { |
| 23 | return []; |
| 24 | } |
| 25 | |
| 26 | } |