public function __construct($model, $vocab, $resource, $prop, $clang = '') { parent::__construct($model, $vocab, $resource); $this->type = $prop; $this->clang = $clang; $this->labelcache = array(); }
/** * Initializing the concept object requires the following parameters. * @param Model $model * @param Vocabulary $vocab * @param EasyRdf_Resource $resource * @param EasyRdf_Graph $graph */ public function __construct($model, $vocab, $resource, $graph, $clang) { parent::__construct($model, $vocab, $resource); $this->order = array("rdf:type", "dc:isReplacedBy", "skos:definition", "skos:broader", "skos:narrower", "skos:related", "skos:altLabel", "skosmos:memberOf", "skos:note", "skos:scopeNote", "skos:historyNote", "rdfs:comment", "dc11:source", "dc:source", "skos:prefLabel"); $this->graph = $graph; $this->clang = $clang; // setting the Punic plugins locale for localized datetime conversions if ($this->clang && $this->clang !== '') { Punic\Data::setDefaultLocale($clang); } }