Exemplo n.º 1
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;
 }
Exemplo n.º 2
0
 /**
  * Returns the associative array for this PlaceDescription
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->type) {
         $a["type"] = $this->type;
     }
     if ($this->names) {
         $ab = array();
         foreach ($this->names as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['names'] = $ab;
     }
     if ($this->temporalDescription) {
         $a["temporalDescription"] = $this->temporalDescription->toArray();
     }
     if ($this->latitude) {
         $a["latitude"] = $this->latitude;
     }
     if ($this->longitude) {
         $a["longitude"] = $this->longitude;
     }
     if ($this->spatialDescription) {
         $a["spatialDescription"] = $this->spatialDescription->toArray();
     }
     if ($this->jurisdiction) {
         $a["jurisdiction"] = $this->jurisdiction->toArray();
     }
     if ($this->displayExtension) {
         $a["display"] = $this->displayExtension->toArray();
     }
     return $a;
 }
 /**
  * Returns the associative array for this ChildAndParentsRelationship
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->father) {
         $a["father"] = $this->father->toArray();
     }
     if ($this->mother) {
         $a["mother"] = $this->mother->toArray();
     }
     if ($this->child) {
         $a["child"] = $this->child->toArray();
     }
     if ($this->fatherFacts) {
         $ab = array();
         foreach ($this->fatherFacts as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['fatherFacts'] = $ab;
     }
     if ($this->motherFacts) {
         $ab = array();
         foreach ($this->motherFacts as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['motherFacts'] = $ab;
     }
     return $a;
 }
Exemplo n.º 4
0
 /**
  * Returns the associative array for this ChangeInfo
  *
  * @return array
  */
 public function toArray()
 {
     $a = array();
     if ($this->objectModifier) {
         $a["objectModifier"] = $this->objectModifier;
     }
     if ($this->operation) {
         $a["operation"] = $this->operation;
     }
     if ($this->reason) {
         $a["reason"] = $this->reason;
     }
     if ($this->objectType) {
         $a["objectType"] = $this->objectType;
     }
     if ($this->original) {
         $a["original"] = $this->original->toArray();
     }
     if ($this->parent) {
         $a["parent"] = $this->parent->toArray();
     }
     if ($this->removed) {
         $a["removed"] = $this->removed->toArray();
     }
     if ($this->resulting) {
         $a["resulting"] = $this->resulting->toArray();
     }
     return $a;
 }
Exemplo n.º 5
0
 /**
  * Returns the associative array for this MergeAnalysis
  *
  * @return array
  */
 public function toArray()
 {
     $a = array();
     if ($this->survivorResources) {
         $ab = array();
         foreach ($this->survivorResources as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['survivorResources'] = $ab;
     }
     if ($this->duplicateResources) {
         $ab = array();
         foreach ($this->duplicateResources as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['duplicateResources'] = $ab;
     }
     if ($this->conflictingResources) {
         $ab = array();
         foreach ($this->conflictingResources as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['conflictingResources'] = $ab;
     }
     if ($this->survivor) {
         $a["survivor"] = $this->survivor->toArray();
     }
     if ($this->duplicate) {
         $a["duplicate"] = $this->duplicate->toArray();
     }
     return $a;
 }
Exemplo n.º 6
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;
 }
Exemplo n.º 7
0
 /**
  * Returns the associative array for this Relationship
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->type) {
         $a["type"] = $this->type;
     }
     if ($this->person1) {
         $a["person1"] = $this->person1->toArray();
     }
     if ($this->person2) {
         $a["person2"] = $this->person2->toArray();
     }
     if ($this->facts) {
         $ab = array();
         foreach ($this->facts as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['facts'] = $ab;
     }
     if ($this->fields) {
         $ab = array();
         foreach ($this->fields as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['fields'] = $ab;
     }
     return $a;
 }
Exemplo n.º 8
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;
 }
Exemplo n.º 9
0
 /**
  * Returns the associative array for this MergeConflict
  *
  * @return array
  */
 public function toArray()
 {
     $a = array();
     if ($this->survivorResource) {
         $a["survivorResource"] = $this->survivorResource->toArray();
     }
     if ($this->duplicateResource) {
         $a["duplicateResource"] = $this->duplicateResource->toArray();
     }
     return $a;
 }
Exemplo n.º 10
0
 /**
  * Returns the associative array for this OnlineAccount
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->accountName) {
         $a["accountName"] = $this->accountName;
     }
     if ($this->serviceHomepage) {
         $a["serviceHomepage"] = $this->serviceHomepage->toArray();
     }
     return $a;
 }
Exemplo n.º 11
0
 /**
  * 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;
 }
Exemplo n.º 12
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;
 }
Exemplo n.º 13
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;
 }
Exemplo n.º 14
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;
 }