blob: de6c38b1c6d94bd6070a9b3c414285c47b9194b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
namespace Maps\MediaWiki\Content;
class GeoJsonContentHandler extends \JsonContentHandler {
public function __construct( $modelId = GeoJsonContent::CONTENT_MODEL_ID ) {
parent::__construct( $modelId );
}
protected function getContentClass() {
return GeoJsonContent::class;
}
public function makeEmptyContent() {
return new GeoJsonContent( GeoJsonContent::newEmptyContentString() );
}
}
|