/** * Returns the associative array for this FieldValue * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->resource) { $a["resource"] = $this->resource; } if ($this->datatype) { $a["datatype"] = $this->datatype; } if ($this->type) { $a["type"] = $this->type; } if ($this->labelId) { $a["labelId"] = $this->labelId; } if ($this->text) { $a["text"] = $this->text; } return $a; }
/** * Returns the associative array for this Fact * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->primary) { $a["primary"] = $this->primary; } if ($this->type) { $a["type"] = $this->type; } if ($this->date) { $a["date"] = $this->date->toArray(); } if ($this->place) { $a["place"] = $this->place->toArray(); } if ($this->value) { $a["value"] = $this->value; } if ($this->qualifiers) { $ab = array(); foreach ($this->qualifiers as $i => $x) { $ab[$i] = $x->toArray(); } $a['qualifiers'] = $ab; } if ($this->fields) { $ab = array(); foreach ($this->fields as $i => $x) { $ab[$i] = $x->toArray(); } $a['fields'] = $ab; } return $a; }
/** * Returns the associative array for this Gender * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->type) { $a["type"] = $this->type; } if ($this->fields) { $ab = array(); foreach ($this->fields as $i => $x) { $ab[$i] = $x->toArray(); } $a['fields'] = $ab; } return $a; }
/** * Returns the associative array for this Subject * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->extracted) { $a["extracted"] = $this->extracted; } if ($this->evidence) { $ab = array(); foreach ($this->evidence as $i => $x) { $ab[$i] = $x->toArray(); } $a['evidence'] = $ab; } if ($this->media) { $ab = array(); foreach ($this->media as $i => $x) { $ab[$i] = $x->toArray(); } $a['media'] = $ab; } if ($this->identifiers) { $ab = array(); foreach ($this->identifiers as $i => $x) { $ab[$x->getType()] = array($x->getValue()); } $a['identifiers'] = $ab; } return $a; }
/** * Returns the associative array for this EventRole * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->type) { $a["type"] = $this->type; } if ($this->person) { $a["person"] = $this->person->toArray(); } if ($this->details) { $a["details"] = $this->details; } return $a; }
/** * Returns the associative array for this Document * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->textType) { $a["textType"] = $this->textType; } if ($this->extracted) { $a["extracted"] = $this->extracted; } if ($this->type) { $a["type"] = $this->type; } if ($this->text) { $a["text"] = $this->text; } return $a; }
/** * Returns the associative array for this Name * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->type) { $a["type"] = $this->type; } if ($this->preferred) { $a["preferred"] = $this->preferred; } if ($this->date) { $a["date"] = $this->date->toArray(); } if ($this->nameForms) { $ab = array(); foreach ($this->nameForms as $i => $x) { $ab[$i] = $x->toArray(); } $a['nameForms'] = $ab; } return $a; }