/** * Initializes this ChildAndParentsRelationship from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['father'])) { $this->father = new ResourceReference($o["father"]); unset($o['father']); } if (isset($o['mother'])) { $this->mother = new ResourceReference($o["mother"]); unset($o['mother']); } if (isset($o['child'])) { $this->child = new ResourceReference($o["child"]); unset($o['child']); } $this->fatherFacts = array(); if (isset($o['fatherFacts'])) { foreach ($o['fatherFacts'] as $i => $x) { $this->fatherFacts[$i] = new Fact($x); } unset($o['fatherFacts']); } $this->motherFacts = array(); if (isset($o['motherFacts'])) { foreach ($o['motherFacts'] as $i => $x) { $this->motherFacts[$i] = new Fact($x); } unset($o['motherFacts']); } parent::initFromArray($o); }
/** * Initializes this Person from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['principal'])) { $this->principal = $o["principal"]; unset($o['principle']); } if (isset($o['private'])) { $this->private = $o["private"]; unset($o['private']); } if (isset($o['living'])) { $this->living = $o["living"]; unset($o['living']); } if (isset($o['gender'])) { $this->gender = new Gender($o["gender"]); unset($o['gender']); } $this->names = array(); if (isset($o['names'])) { foreach ($o['names'] as $i => $x) { $this->names[$i] = new Name($x); } unset($o['names']); } $this->facts = array(); if (isset($o['facts'])) { foreach ($o['facts'] as $i => $x) { $this->facts[$i] = new Fact($x); } unset($o['facts']); } $this->fields = array(); if (isset($o['fields'])) { foreach ($o['fields'] as $i => $x) { $this->fields[$i] = new Field($x); } unset($o['fields']); } if (isset($o['display'])) { $this->displayExtension = new DisplayProperties($o["display"]); unset($o['display']); } parent::initFromArray($o); }
/** * Initializes this Event from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['type'])) { $this->type = $o["type"]; unset($o["type"]); } if (isset($o['date'])) { $this->date = new DateInfo($o["date"]); unset($o["date"]); } if (isset($o['place'])) { $this->place = new PlaceReference($o["place"]); unset($o["place"]); } $this->roles = array(); if (isset($o['roles'])) { foreach ($o['roles'] as $i => $x) { $this->roles[$i] = new EventRole($x); } unset($o["roles"]); } parent::initFromArray($o); }
/** * Initializes this PlaceDescription from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['type'])) { $this->type = $o["type"]; unset($o["type"]); } $this->names = array(); if (isset($o['names'])) { foreach ($o['names'] as $i => $x) { $this->names[$i] = new TextValue($x); } unset($o["names"]); } if (isset($o['temporalDescription'])) { $this->temporalDescription = new DateInfo($o["temporalDescription"]); unset($o["temporalDescription"]); } if (isset($o['latitude'])) { $this->latitude = $o["latitude"]; unset($o["latitude"]); } if (isset($o['longitude'])) { $this->longitude = $o["longitude"]; unset($o["longitude"]); } if (isset($o['spatialDescription'])) { $this->spatialDescription = new ResourceReference($o["spatialDescription"]); unset($o["spatialDescription"]); } if (isset($o['jurisdiction'])) { $this->jurisdiction = new ResourceReference($o["jurisdiction"]); unset($o["jurisdiction"]); } if (isset($o['display'])) { $this->displayExtension = new PlaceDisplayProperties($o["display"]); unset($o["display"]); } parent::initFromArray($o); }
/** * Initializes this Relationship from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['type'])) { $this->type = $o["type"]; unset($o['type']); } if (isset($o['person1'])) { $this->person1 = new ResourceReference($o["person1"]); unset($o['person1']); } if (isset($o['person2'])) { $this->person2 = new ResourceReference($o["person2"]); unset($o['person2']); } $this->facts = array(); if (isset($o['facts'])) { foreach ($o['facts'] as $i => $x) { $this->facts[$i] = new Fact($x); } unset($o['facts']); } $this->fields = array(); if (isset($o['fields'])) { foreach ($o['fields'] as $i => $x) { $this->fields[$i] = new Field($x); } unset($o['fields']); } parent::initFromArray($o); }