コード例 #1
0
 public function __construct($value, $label = false)
 {
     if (!$label) {
         $label = $this->label;
     }
     parent::__construct($value, $this->uri, $this->name, $label);
 }
コード例 #2
0
 /**
  * @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);
 }
コード例 #3
0
 /**
  * @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);
 }
コード例 #4
0
 /**
  * @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);
 }