/** * Initializes this Coverage from an associative array * * @param array $o */ public function initFromArray(array $o) { parent::initFromArray($o); if (isset($o['recordType'])) { $this->recordType = $o["recordType"]; } if (isset($o['spatial'])) { $this->spatial = new PlaceReference($o["spatial"]); } if (isset($o['temporal'])) { $this->temporal = new DateInfo($o["temporal"]); } }
/** * Initializes this FieldDescriptor from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['originalLabel'])) { $this->originalLabel = $o["originalLabel"]; unset($o["originalLabel"]); } $this->description = array(); if (isset($o['description'])) { foreach ($o['description'] as $i => $x) { $this->description[$i] = new TextValue($x); } unset($o["description"]); } $this->values = array(); if (isset($o['values'])) { foreach ($o['values'] as $i => $x) { $this->values[$i] = new FieldValueDescriptor($x); } unset($o["values"]); } parent::initFromArray($o); }
/** * Initializes this SourceReference from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['description'])) { $this->descriptionRef = $o["description"]; unset($o['description']); } if (isset($o['attribution'])) { $this->attribution = $o['attribution'] instanceof Attribution ? $o['attribution'] : new Attribution($o["attribution"]); unset($o['attribution']); } $this->qualifiers = array(); if (isset($o['qualifiers'])) { foreach ($o['qualifiers'] as $i => $x) { $this->qualifiers[$i] = $x instanceof Qualifier ? $x : new Qualifier($x); } unset($o['qualifiers']); } parent::initFromArray($o); }
/** * Initializes this Agent from an associative array * * @param array $o */ public function initFromArray(array $o) { $this->accounts = array(); if (isset($o['accounts'])) { foreach ($o['accounts'] as $i => $x) { $this->accounts[$i] = new OnlineAccount($x); } unset($o['accounts']); } $this->addresses = array(); if (isset($o['addresses'])) { foreach ($o['addresses'] as $i => $x) { $this->addresses[$i] = new Address($x); } unset($o['addresses']); } $this->emails = array(); if (isset($o['emails'])) { foreach ($o['emails'] as $i => $x) { $this->emails[$i] = new ResourceReference($x); } unset($o['emails']); } if (isset($o['homepage'])) { $this->homepage = new ResourceReference($o["homepage"]); unset($o['homepage']); } $this->identifiers = array(); if (isset($o['identifiers'])) { foreach ($o['identifiers'] as $i => $x) { if (is_array($x)) { $this->identifiers[$i] = array(); foreach ($x as $j => $y) { $this->identifiers[$i][$j] = new Identifier(); $this->identifiers[$i][$j]->setValue($y); } } else { $this->identifiers[$i] = new Identifier($x); } } unset($o['identifiers']); } $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['openid'])) { $this->openid = new ResourceReference($o["openid"]); unset($o['openid']); } $this->phones = array(); if (isset($o['phones'])) { foreach ($o['phones'] as $i => $x) { $this->phones[$i] = new ResourceReference($x); } unset($o['phones']); } parent::initFromArray($o); }
/** * Initializes this CollectionContent from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['completeness'])) { $this->completeness = $o["completeness"]; unset($o['completeness']); } if (isset($o['count'])) { $this->count = $o["count"]; unset($o['count']); } if (isset($o['resourceType'])) { $this->resourceType = $o["resourceType"]; unset($o['resourceType']); } parent::initFromArray($o); }
/** * Initializes this Gedcomx from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['lang'])) { $this->lang = $o["lang"]; unset($o['lang']); } if (isset($o['description'])) { $this->descriptionRef = $o["description"]; unset($o['description']); } if (isset($o['profile'])) { $this->profile = $o["profile"]; unset($o['profile']); } if (isset($o['attribution'])) { $this->attribution = new Attribution($o["attribution"]); unset($o['attribution']); } $this->persons = array(); if (isset($o['persons'])) { foreach ($o['persons'] as $i => $x) { $this->persons[$i] = new Person($x); } unset($o['persons']); } $this->relationships = array(); if (isset($o['relationships'])) { foreach ($o['relationships'] as $i => $x) { $this->relationships[$i] = new Relationship($x); } unset($o['relationships']); } $this->sourceDescriptions = array(); if (isset($o['sourceDescriptions'])) { foreach ($o['sourceDescriptions'] as $i => $x) { $this->sourceDescriptions[$i] = new SourceDescription($x); } unset($o['sourceDescriptions']); } $this->agents = array(); if (isset($o['agents'])) { foreach ($o['agents'] as $i => $x) { $this->agents[$i] = new Agent($x); } unset($o['agents']); } $this->events = array(); if (isset($o['events'])) { foreach ($o['events'] as $i => $x) { $this->events[$i] = new Event($x); } unset($o['events']); } $this->places = array(); if (isset($o['places'])) { foreach ($o['places'] as $i => $x) { $this->places[$i] = new PlaceDescription($x); } unset($o['places']); } $this->documents = array(); if (isset($o['documents'])) { foreach ($o['documents'] as $i => $x) { $this->documents[$i] = new Document($x); } unset($o['documents']); } $this->collections = array(); if (isset($o['collections'])) { foreach ($o['collections'] as $i => $x) { $this->collections[$i] = new Collection($x); } unset($o['collections']); } $this->fields = array(); if (isset($o['fields'])) { foreach ($o['fields'] as $i => $x) { $this->fields[$i] = new Field($x); } unset($o['fields']); } $this->recordDescriptors = array(); if (isset($o['recordDescriptors'])) { foreach ($o['recordDescriptors'] as $i => $x) { $this->recordDescriptors[$i] = new RecordDescriptor($x); } unset($o['recordDescriptors']); } parent::initFromArray($o); }
/** * Initializes this RecordSet from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['lang'])) { $this->lang = $o["lang"]; unset($o["lang"]); } if (isset($o['metadata'])) { $this->metadata = new Gedcomx($o["metadata"]); unset($o["metadata"]); } $this->records = array(); if (isset($o['records'])) { foreach ($o['records'] as $i => $x) { $this->records[$i] = new Gedcomx($x); } unset($o["records"]); } parent::initFromArray($o); }
/** * Initializes this SourceDescription from an associative array * * @param array $o */ public function initFromArray(array $o) { parent::initFromArray($o); if (isset($o['about'])) { $this->about = $o["about"]; } if (isset($o['mediaType'])) { $this->mediaType = $o["mediaType"]; } if (isset($o['resourceType'])) { $this->resourceType = $o["resourceType"]; } $this->citations = array(); if (isset($o['citations'])) { foreach ($o['citations'] as $i => $x) { $this->citations[$i] = $x instanceof SourceCitation ? $x : new SourceCitation($x); } } if (isset($o['mediator'])) { $this->mediator = $x instanceof ResourceReference ? $x : new ResourceReference($o["mediator"]); } $this->sources = array(); if (isset($o['sources'])) { foreach ($o['sources'] as $i => $x) { $this->sources[$i] = $x instanceof SourceReference ? $x : new SourceReference($x); } } if (isset($o['analysis'])) { $this->analysis = $o['analysis'] instanceof ResourceReference ? $o['analysis'] : new ResourceReference($o["analysis"]); } if (isset($o['componentOf'])) { $this->componentOf = $o['componentOf'] instanceof SourceReference ? $o['componentOf'] : new SourceReference($o["componentOf"]); } $this->titles = array(); if (isset($o['titles'])) { foreach ($o['titles'] as $i => $x) { $this->titles[$i] = $x instanceof TextValue ? $x : new TextValue($x); } } if (isset($o['titleLabel'])) { $this->titleLabel = $x instanceof TextValue ? $x : new TextValue($o["titleLabel"]); } $this->notes = array(); if (isset($o['notes'])) { foreach ($o['notes'] as $i => $x) { $this->notes[$i] = $x instanceof Note ? $x : new Note($x); } } if (isset($o['attribution'])) { $this->attribution = $o['attribution'] instanceof Attribution ? $o['attribution'] : new Attribution($o["attribution"]); } if (isset($o['sortKey'])) { $this->sortKey = $o["sortKey"]; } $this->descriptions = array(); if (isset($o['descriptions'])) { foreach ($o['descriptions'] as $i => $x) { $this->descriptions[$i] = $x instanceof TextValue ? $x : new TextValue($x); } } $this->identifiers = array(); if (isset($o['identifiers'])) { foreach ($o['identifiers'] as $i => $x) { if (is_array($x)) { $this->identifiers[$i] = array(); foreach ($x as $j => $y) { $this->identifiers[$i][$j] = new Identifier(); $this->identifiers[$i][$j]->setValue($y); } } else { $this->identifiers[$i] = new Identifier($x); } } } if (isset($o['created'])) { $this->created = $o["created"]; } if (isset($o['modified'])) { $this->modified = $o["modified"]; } $this->coverage = array(); if (isset($o['coverage'])) { foreach ($o['coverage'] as $i => $x) { $this->coverage[$i] = $o['coverage'] instanceof Coverage ? $o['coverage'] : new Coverage($x); } } $this->rights = array(); if (isset($o['rights'])) { foreach ($o['rights'] as $i => $x) { $this->rights[$i] = $x; } } $this->fields = array(); if (isset($o['fields'])) { foreach ($o['fields'] as $i => $x) { $this->fields[$i] = $x instanceof Field ? $x : new Field($x); } } if (isset($o['repository'])) { $this->repository = $o["repository"] instanceof ResourceReference ? $o["repository"] : new ResourceReference($o["repository"]); } if (isset($o['descriptor'])) { $this->descriptorRef = $o["descriptor"] instanceof ResourceReference ? $o["descriptor"] : new ResourceReference($o["descriptor"]); } }
/** * Initializes this RecordDescriptor from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['lang'])) { $this->lang = $o["lang"]; unset($o['lang']); } $this->fields = array(); if (isset($o['fields'])) { foreach ($o['fields'] as $i => $x) { $this->fields[$i] = new FieldDescriptor($x); } unset($o['fields']); } parent::initFromArray($o); }
/** * Initializes this FieldValueDescriptor from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['optional'])) { $this->optional = $o["optional"]; unset($o['optional']); } if (isset($o['type'])) { $this->type = $o["type"]; unset($o['type']); } if (isset($o['labelId'])) { $this->labelId = $o["labelId"]; unset($o['labelId']); } $this->displayLabels = array(); if (isset($o['labels'])) { foreach ($o['labels'] as $i => $x) { $this->displayLabels[$i] = new TextValue($x); } unset($o['labels']); } parent::initFromArray($o); }
/** * Initializes this User from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['alternateEmail'])) { $this->alternateEmail = $o["alternateEmail"]; unset($o['alternateEmail']); } if (isset($o['birthDate'])) { $this->birthDate = $o["birthDate"]; unset($o['birthDate']); } if (isset($o['contactName'])) { $this->contactName = $o["contactName"]; unset($o['contactName']); } if (isset($o['country'])) { $this->country = $o["country"]; unset($o['country']); } if (isset($o['displayName'])) { $this->displayName = $o["displayName"]; unset($o['displayName']); } if (isset($o['email'])) { $this->email = $o["email"]; unset($o['email']); } if (isset($o['familyName'])) { $this->familyName = $o["familyName"]; unset($o['familyName']); } if (isset($o['fullName'])) { $this->fullName = $o["fullName"]; unset($o['fullName']); } if (isset($o['gender'])) { $this->gender = $o["gender"]; unset($o['gender']); } if (isset($o['givenName'])) { $this->givenName = $o["givenName"]; unset($o['givenName']); } if (isset($o['helperAccessPin'])) { $this->helperAccessPin = $o["helperAccessPin"]; unset($o['helperAccessPin']); } if (isset($o['ldsMemberAccount'])) { $this->ldsMemberAccount = $o["ldsMemberAccount"]; unset($o['ldsMemberAccount']); } if (isset($o['mailingAddress'])) { $this->mailingAddress = $o["mailingAddress"]; unset($o['mailingAddress']); } if (isset($o['personId'])) { $this->personId = $o["personId"]; unset($o['personId']); } if (isset($o['phoneNumber'])) { $this->phoneNumber = $o["phoneNumber"]; unset($o['phoneNumber']); } if (isset($o['preferredLanguage'])) { $this->preferredLanguage = $o["preferredLanguage"]; unset($o['preferredLanguage']); } if (isset($o['treeUserId'])) { $this->treeUserId = $o["treeUserId"]; unset($o['treeUserId']); } parent::initFromArray($o); }
/** * Initializes this SourceCitation from an associative array * * @param array $o */ public function initFromArray(array $o) { parent::initFromArray($o); if (isset($o['lang'])) { $this->lang = $o["lang"]; } if (isset($o['citationTemplate'])) { $this->citationTemplate = new ResourceReference($o["citationTemplate"]); } $this->fields = array(); if (isset($o['fields'])) { foreach ($o['fields'] as $i => $x) { $this->fields[$i] = new CitationField($x); } } if (isset($o['value'])) { $this->value = $o["value"]; } }
/** * Initializes this Collection from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['lang'])) { $this->lang = $o["lang"]; unset($o['lang']); } if (isset($o['title'])) { $this->title = $o["title"]; unset($o['title']); } if (isset($o['size'])) { $this->size = $o["size"]; unset($o['size']); } $this->content = array(); if (isset($o['content'])) { foreach ($o['content'] as $i => $x) { $this->content[$i] = new CollectionContent($x); } unset($o['content']); } if (isset($o['attribution'])) { $this->attribution = new Attribution($o["attribution"]); unset($o['attribution']); } parent::initFromArray($o); }
/** * Initializes this EvidenceReference from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['resourceId'])) { $this->resourceId = $o["resourceId"]; unset($o["resourceId"]); } if (isset($o['resource'])) { $this->resource = $o["resource"]; unset($o["resource"]); } if (isset($o['attribution'])) { $this->attribution = new Attribution($o["attribution"]); unset($o["attribution"]); } parent::initFromArray($o); }
/** * Initializes this Discussion from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['title'])) { $this->title = $o["title"]; unset($o['title']); } if (isset($o['details'])) { $this->details = $o["details"]; unset($o['details']); } if (isset($o['created'])) { $this->created = $o["created"]; unset($o['created']); } if (isset($o['contributor'])) { $this->contributor = new ResourceReference($o["contributor"]); unset($o['contributor']); } if (isset($o['modified'])) { $this->modified = $o["modified"]; unset($o['modified']); } if (isset($o['numberOfComments'])) { $this->numberOfComments = $o["numberOfComments"]; unset($o['numberOfComments']); } $this->comments = array(); if (isset($o['comments'])) { foreach ($o['comments'] as $i => $x) { $this->comments[$i] = new Comment($x); } unset($o['comments']); } parent::initFromArray($o); }
/** * Initializes this Field from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['type'])) { $this->type = $o["type"]; unset($o['type']); } $this->values = array(); if (isset($o['values'])) { foreach ($o['values'] as $i => $x) { $this->values[$i] = new FieldValue($x); } unset($o['values']); } parent::initFromArray($o); }
/** * Initializes this Note from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['lang'])) { $this->lang = $o["lang"]; unset($o['lang']); } if (isset($o['subject'])) { $this->subject = $o["subject"]; unset($o['subject']); } if (isset($o['text'])) { $this->text = $o["text"]; unset($o['text']); } if (isset($o['attribution'])) { if ($o['attribution'] instanceof Attribution) { $this->attribution = $o['attribution']; } else { $this->attribution = new Attribution($o["attribution"]); } unset($o['attribution']); } parent::initFromArray($o); }
/** * Initializes this Conclusion from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['confidence'])) { $this->confidence = $o["confidence"]; unset($o['confidence']); } if (isset($o['lang'])) { $this->lang = $o["lang"]; unset($o['lang']); } if (isset($o['attribution'])) { $this->attribution = new Attribution($o["attribution"]); unset($o['attribution']); } $this->sources = array(); if (isset($o['sources'])) { foreach ($o['sources'] as $i => $x) { $this->sources[$i] = new SourceReference($x); } unset($o['sources']); } if (isset($o['analysis'])) { $this->analysis = new ResourceReference($o["analysis"]); unset($o['analysis']); } $this->notes = array(); if (isset($o['notes'])) { foreach ($o['notes'] as $i => $x) { $this->notes[$i] = new Note($x); } unset($o['notes']); } parent::initFromArray($o); }
/** * Initializes this Comment from an associative array * * @param array $o */ public function initFromArray(array $o) { if (isset($o['text'])) { $this->text = $o["text"]; unset($o['text']); } if (isset($o['created'])) { $this->created = $o["created"]; unset($o['created']); } if (isset($o['contributor'])) { $this->contributor = $o['contributor'] instanceof ResourceReference ? $o["contributor"] : new ResourceReference($o["contributor"]); unset($o['contributor']); } parent::initFromArray($o); }