Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function storeGeoJson( string $geoJson ) { |
||
29 | foreach ( $this->subObjectBuilder->getSubObjectsFromGeoJson( $geoJson ) as $subObject ) { |
||
30 | $this->parserData->getSemanticData()->addPropertyObjectValue( |
||
31 | new DIProperty( DIProperty::TYPE_SUBOBJECT ), |
||
32 | new SMWDIContainer( $subObject->toContainerSemanticData( $this->subjectPage->getTitleValue() ) ) |
||
33 | ); |
||
34 | } |
||
35 | |||
36 | $this->parserData->copyToParserOutput(); |
||
37 | |||
38 | $this->smwEventDispatcher->dispatch( |
||
39 | 'InvalidateEntityCache', |
||
40 | [ 'title' => $this->subjectPage, 'context' => 'GeoJsonContent' ] |
||
41 | ); |
||
42 | } |
||
43 | |||
45 |