/** * Returns the associative array for this Content * * @return array */ public function toArray() { $a = array(); if ($this->type) { $a["type"] = $this->type; } if ($this->gedcomx) { $a["gedcomx"] = $this->gedcomx->toArray(); } return $a; }
/** * 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; }
/** * Returns the associative array for this FamilySearchPlatform * * @return array */ public function toArray() { $a = parent::toArray(); if ($this->childAndParentsRelationships) { $ab = array(); foreach ($this->childAndParentsRelationships as $i => $x) { $ab[$i] = $x->toArray(); } $a['childAndParentsRelationships'] = $ab; } if ($this->discussions) { $ab = array(); foreach ($this->discussions as $i => $x) { $ab[$i] = $x->toArray(); } $a['discussions'] = $ab; } if ($this->users) { $ab = array(); foreach ($this->users as $i => $x) { $ab[$i] = $x->toArray(); } $a['users'] = $ab; } if ($this->merges) { $ab = array(); foreach ($this->merges as $i => $x) { $ab[$i] = $x->toArray(); } $a['merges'] = $ab; } if ($this->mergeAnalyses) { $ab = array(); foreach ($this->mergeAnalyses as $i => $x) { $ab[$i] = $x->toArray(); } $a['mergeAnalyses'] = $ab; } if ($this->features) { $ab = array(); foreach ($this->features as $i => $x) { $ab[$i] = $x->toArray(); } $a['features'] = $ab; } return $a; }