/**
  * 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;
 }
Exemple #2
0
 /**
  * Returns the associative array for this Person
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->principal) {
         $a["principal"] = $this->principal;
     }
     if ($this->private) {
         $a["private"] = $this->private;
     }
     if ($this->living) {
         $a["living"] = $this->living;
     }
     if ($this->gender) {
         $a["gender"] = $this->gender->toArray();
     }
     if ($this->names) {
         $ab = array();
         foreach ($this->names as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['names'] = $ab;
     }
     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;
     }
     if ($this->displayExtension) {
         $a["display"] = $this->displayExtension->toArray();
     }
     return $a;
 }
Exemple #3
0
 /**
  * Returns the associative array for this Event
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     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->roles) {
         $ab = array();
         foreach ($this->roles as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['roles'] = $ab;
     }
     return $a;
 }
 /**
  * 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;
 }
Exemple #5
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;
 }