Example #1
0
 /**
  * Returns the associative array for this Coverage
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->recordType) {
         $a["recordType"] = $this->recordType;
     }
     if ($this->spatial) {
         $a["spatial"] = $this->spatial->toArray();
     }
     if ($this->temporal) {
         $a["temporal"] = $this->temporal->toArray();
     }
     return $a;
 }
Example #2
0
 /**
  * Returns the associative array for this FieldDescriptor
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->originalLabel) {
         $a["originalLabel"] = $this->originalLabel;
     }
     if ($this->description) {
         $ab = array();
         foreach ($this->description as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['description'] = $ab;
     }
     if ($this->values) {
         $ab = array();
         foreach ($this->values as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['values'] = $ab;
     }
     return $a;
 }
Example #3
0
 /**
  * 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;
 }
Example #4
0
 /**
  * Returns the associative array for this Agent
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->accounts) {
         $ab = array();
         foreach ($this->accounts as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['accounts'] = $ab;
     }
     if ($this->addresses) {
         $ab = array();
         foreach ($this->addresses as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['addresses'] = $ab;
     }
     if ($this->emails) {
         $ab = array();
         foreach ($this->emails as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['emails'] = $ab;
     }
     if ($this->homepage) {
         $a["homepage"] = $this->homepage->toArray();
     }
     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->names) {
         $ab = array();
         foreach ($this->names as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['names'] = $ab;
     }
     if ($this->openid) {
         $a["openid"] = $this->openid->toArray();
     }
     if ($this->phones) {
         $ab = array();
         foreach ($this->phones as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['phones'] = $ab;
     }
     return $a;
 }
Example #5
0
 /**
  * Returns the associative array for this CollectionContent
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->completeness) {
         $a["completeness"] = $this->completeness;
     }
     if ($this->count) {
         $a["count"] = $this->count;
     }
     if ($this->resourceType) {
         $a["resourceType"] = $this->resourceType;
     }
     return $a;
 }
Example #6
0
 /**
  * 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;
 }
Example #7
0
 /**
  * Returns the associative array for this RecordSet
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->lang) {
         $a["lang"] = $this->lang;
     }
     if ($this->metadata) {
         $a["metadata"] = $this->metadata->toArray();
     }
     if ($this->records) {
         $ab = array();
         foreach ($this->records as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['records'] = $ab;
     }
     return $a;
 }
Example #8
0
 /**
  * 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;
 }
Example #9
0
 /**
  * Returns the associative array for this RecordDescriptor
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->lang) {
         $a["lang"] = $this->lang;
     }
     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 FieldValueDescriptor
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->optional) {
         $a["optional"] = $this->optional;
     }
     if ($this->type) {
         $a["type"] = $this->type;
     }
     if ($this->labelId) {
         $a["labelId"] = $this->labelId;
     }
     if ($this->displayLabels) {
         $ab = array();
         foreach ($this->displayLabels as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['labels'] = $ab;
     }
     return $a;
 }
Example #11
0
 /**
  * Returns the associative array for this User
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->alternateEmail) {
         $a["alternateEmail"] = $this->alternateEmail;
     }
     if ($this->birthDate) {
         $a["birthDate"] = $this->birthDate;
     }
     if ($this->contactName) {
         $a["contactName"] = $this->contactName;
     }
     if ($this->country) {
         $a["country"] = $this->country;
     }
     if ($this->displayName) {
         $a["displayName"] = $this->displayName;
     }
     if ($this->email) {
         $a["email"] = $this->email;
     }
     if ($this->familyName) {
         $a["familyName"] = $this->familyName;
     }
     if ($this->fullName) {
         $a["fullName"] = $this->fullName;
     }
     if ($this->gender) {
         $a["gender"] = $this->gender;
     }
     if ($this->givenName) {
         $a["givenName"] = $this->givenName;
     }
     if ($this->helperAccessPin) {
         $a["helperAccessPin"] = $this->helperAccessPin;
     }
     if ($this->ldsMemberAccount) {
         $a["ldsMemberAccount"] = $this->ldsMemberAccount;
     }
     if ($this->mailingAddress) {
         $a["mailingAddress"] = $this->mailingAddress;
     }
     if ($this->personId) {
         $a["personId"] = $this->personId;
     }
     if ($this->phoneNumber) {
         $a["phoneNumber"] = $this->phoneNumber;
     }
     if ($this->preferredLanguage) {
         $a["preferredLanguage"] = $this->preferredLanguage;
     }
     if ($this->treeUserId) {
         $a["treeUserId"] = $this->treeUserId;
     }
     return $a;
 }
Example #12
0
 /**
  * Returns the associative array for this SourceCitation
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->lang) {
         $a["lang"] = $this->lang;
     }
     if ($this->citationTemplate) {
         $a["citationTemplate"] = $this->citationTemplate->toArray();
     }
     if ($this->fields) {
         $ab = array();
         foreach ($this->fields as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['fields'] = $ab;
     }
     if ($this->value) {
         $a["value"] = $this->value;
     }
     return $a;
 }
Example #13
0
 /**
  * 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;
 }
Example #14
0
 /**
  * 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;
 }
Example #15
0
 /**
  * Returns the associative array for this Discussion
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->title) {
         $a["title"] = $this->title;
     }
     if ($this->details) {
         $a["details"] = $this->details;
     }
     if ($this->created) {
         $a["created"] = $this->created;
     }
     if ($this->contributor) {
         $a["contributor"] = $this->contributor->toArray();
     }
     if ($this->modified) {
         $a["modified"] = $this->modified;
     }
     if ($this->numberOfComments) {
         $a["numberOfComments"] = $this->numberOfComments;
     }
     if ($this->comments) {
         $ab = array();
         foreach ($this->comments as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['comments'] = $ab;
     }
     return $a;
 }
Example #16
0
 /**
  * Returns the associative array for this Field
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->type) {
         $a["type"] = $this->type;
     }
     if ($this->values) {
         $ab = array();
         foreach ($this->values as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['values'] = $ab;
     }
     return $a;
 }
Example #17
0
 /**
  * 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;
 }
Example #18
0
 /**
  * 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;
 }
Example #19
0
 /**
  * Returns the associative array for this Comment
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->text) {
         $a["text"] = $this->text;
     }
     if ($this->created) {
         $a["created"] = $this->created;
     }
     if ($this->contributor) {
         $a["contributor"] = $this->contributor->toArray();
     }
     return $a;
 }