public function __construct($value, $label = false) { if (!$label) { $label = $this->label; } parent::__construct($value, $this->uri, $this->name, $label); }
/** * @param string $value * @param string $label * @param array $attrs */ public function __construct($value, $label = 'Date Issued', array $attrs = []) { # value # , uri (part put in the uri) # , name (element name in the spec) # , label parent::__construct($value, $this->uriPart, $this->namePart, $label); $d = []; $d[] = $this->getDescription(); $d[] = 'Date Optional Time Value, DateTime+Timezone Preferred '; $this->setDescription(implode('; ', $d)); $this->setAttributes($attrs); }
/** * @param string $value * @param string $label * @param array $attrs */ public function __construct($value, $label = 'Related Degree', array $attrs = []) { # value # , uri (part put in the uri) # , name (element name in the spec) # , label parent::__construct($value, $this->uriPart, $this->namePart, $label); $d = []; $d[] = $this->getDescription(); $d[] = 'The thesis degree'; $d[] = 'Extended Property specified by UBC, as per https://wiki.duraspace.org/display/VIVO/Ontology+Editor%27s+Guide'; $this->setDescription(implode('; ', $d)); $this->setAttributes($attrs); }
/** * @param string $value * @param string $label * @param array $attrs */ public function __construct($value, $label = 'Department or School', array $attrs = []) { # value # , uri (part put in the uri) # , name (element name in the spec) # , label parent::__construct($value, $this->uriPart, $this->namePart, $label); $d = []; $d[] = $this->getDescription(); $d[] = 'The department or school name within institution'; $d[] = 'Not intended to be an institution name.'; $this->setDescription(implode('; ', $d)); $this->setAttributes($attrs); }