/** * Returns the associative array for this Conclusion * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->confidence) { $a["confidence"] = $this->confidence; } if ($this->lang) { $a["lang"] = $this->lang; } if ($this->attribution) { $a["attribution"] = $this->attribution->toArray(); } if ($this->sources) { $ab = array(); foreach ($this->sources as $i => $x) { $ab[$i] = $x->toArray(); } $a['sources'] = $ab; } if ($this->analysis) { $a["analysis"] = $this->analysis->toArray(); } if ($this->notes) { $ab = array(); foreach ($this->notes as $i => $x) { $ab[$i] = $x->toArray(); } $a['notes'] = $ab; } return $a; }
/** * Returns the associative array for this EvidenceReference * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->resourceId) { $a["resourceId"] = $this->resourceId; } if ($this->resource) { $a["resource"] = $this->resource; } if ($this->attribution) { $a["attribution"] = $this->attribution->toArray(); } return $a; }
/** * Returns the associative array for this Note * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->lang) { $a["lang"] = $this->lang; } if ($this->subject) { $a["subject"] = $this->subject; } if ($this->text) { $a["text"] = $this->text; } if ($this->attribution) { $a["attribution"] = $this->attribution->toArray(); } return $a; }
/** * Returns the associative array for this SourceReference * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->descriptionRef) { $a["description"] = $this->descriptionRef; } if ($this->attribution) { $a["attribution"] = $this->attribution->toArray(); } if ($this->qualifiers) { $ab = array(); foreach ($this->qualifiers as $i => $x) { $ab[$i] = $x->toArray(); } $a['qualifiers'] = $ab; } return $a; }
/** * Returns the associative array for this Collection * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->lang) { $a["lang"] = $this->lang; } if ($this->title) { $a["title"] = $this->title; } if ($this->size) { $a["size"] = $this->size; } if ($this->content) { $ab = array(); foreach ($this->content as $i => $x) { $ab[$i] = $x->toArray(); } $a['content'] = $ab; } if ($this->attribution) { $a["attribution"] = $this->attribution->toArray(); } return $a; }
/** * Returns the associative array for this SourceDescription * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->about) { $a["about"] = $this->about; } if ($this->mediaType) { $a["mediaType"] = $this->mediaType; } if ($this->resourceType) { $a["resourceType"] = $this->resourceType; } if ($this->citations) { $ab = array(); foreach ($this->citations as $i => $x) { $ab[$i] = $x->toArray(); } $a['citations'] = $ab; } if ($this->mediator) { $a["mediator"] = $this->mediator->toArray(); } if ($this->sources) { $ab = array(); foreach ($this->sources as $i => $x) { $ab[$i] = $x->toArray(); } $a['sources'] = $ab; } if ($this->analysis) { $a["analysis"] = $this->analysis->toArray(); } if ($this->componentOf) { $a["componentOf"] = $this->componentOf->toArray(); } if ($this->titles) { $ab = array(); foreach ($this->titles as $i => $x) { $ab[$i] = $x->toArray(); } $a['titles'] = $ab; } if ($this->titleLabel) { $a["titleLabel"] = $this->titleLabel->toArray(); } if ($this->notes) { $ab = array(); foreach ($this->notes as $i => $x) { $ab[$i] = $x->toArray(); } $a['notes'] = $ab; } if ($this->attribution) { $a["attribution"] = $this->attribution->toArray(); } if ($this->sortKey) { $a["sortKey"] = $this->sortKey; } if ($this->descriptions) { $ab = array(); foreach ($this->descriptions as $i => $x) { $ab[$i] = $x->toArray(); } $a['description'] = $ab; } if ($this->identifiers) { $ab = array(); foreach ($this->identifiers as $i => $x) { $ab[$i] = array(); foreach ($x as $j => $y) { $ab[$i][$j] = $y->getValue(); } } $a['identifiers'] = $ab; } if ($this->created) { $a["created"] = $this->created; } if ($this->modified) { $a["modified"] = $this->modified; } if ($this->coverage) { $ab = array(); foreach ($this->coverage as $i => $x) { $ab[$i] = $x->toArray(); } $a['coverage'] = $ab; } if ($this->rights) { $ab = array(); foreach ($this->rights as $i => $x) { $ab[$i] = $x; } $a['rights'] = $ab; } if ($this->fields) { $ab = array(); foreach ($this->fields as $i => $x) { $ab[$i] = $x->toArray(); } $a['fields'] = $ab; } if ($this->repository) { $a["repository"] = $this->repository->toArray(); } if ($this->descriptorRef) { $a["descriptor"] = $this->descriptorRef->toArray(); } return $a; }
/** * Returns the associative array for this Gedcomx * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->lang) { $a["lang"] = $this->lang; } if ($this->descriptionRef) { $a["description"] = $this->descriptionRef; } if ($this->profile) { $a["profile"] = $this->profile; } if ($this->attribution) { $a["attribution"] = $this->attribution->toArray(); } if ($this->persons) { $ab = array(); foreach ($this->persons as $i => $x) { $ab[$i] = $x->toArray(); } $a['persons'] = $ab; } if ($this->relationships) { $ab = array(); foreach ($this->relationships as $i => $x) { $ab[$i] = $x->toArray(); } $a['relationships'] = $ab; } if ($this->sourceDescriptions) { $ab = array(); foreach ($this->sourceDescriptions as $i => $x) { $ab[$i] = $x->toArray(); } $a['sourceDescriptions'] = $ab; } if ($this->agents) { $ab = array(); foreach ($this->agents as $i => $x) { $ab[$i] = $x->toArray(); } $a['agents'] = $ab; } if ($this->events) { $ab = array(); foreach ($this->events as $i => $x) { $ab[$i] = $x->toArray(); } $a['events'] = $ab; } if ($this->places) { $ab = array(); foreach ($this->places as $i => $x) { $ab[$i] = $x->toArray(); } $a['places'] = $ab; } if ($this->documents) { $ab = array(); foreach ($this->documents as $i => $x) { $ab[$i] = $x->toArray(); } $a['documents'] = $ab; } if ($this->collections) { $ab = array(); foreach ($this->collections as $i => $x) { $ab[$i] = $x->toArray(); } $a['collections'] = $ab; } if ($this->fields) { $ab = array(); foreach ($this->fields as $i => $x) { $ab[$i] = $x->toArray(); } $a['fields'] = $ab; } if ($this->recordDescriptors) { $ab = array(); foreach ($this->recordDescriptors as $i => $x) { $ab[$i] = $x->toArray(); } $a['recordDescriptors'] = $ab; } return $a; }