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