| Conditions | 5 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function getProperties() { |
||
| 24 | $ret = array(); |
||
| 25 | $props = $this->resource->properties(); |
||
| 26 | foreach($props as $prop) { |
||
| 27 | if ($prop !== 'rdf:type' && $prop !== 'skosxl:literalForm') { |
||
| 28 | // make sure to use the correct gettext keys for DC namespace |
||
| 29 | $propkey = str_starts_with($prop, 'dc11:') ? |
||
| 30 | str_replace('dc11:', 'dc:', $prop) : $prop; |
||
| 31 | $ret[$propkey] = $this->resource->get($prop); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | return $ret; |
||
| 35 | } |
||
| 49 |