Ejemplo n.º 1
0
 /**
  * Returns the associative array for this HypermediaEnabledData
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->links) {
         $ab = array();
         foreach ($this->links as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['links'] = $ab;
     }
     return $a;
 }
Ejemplo n.º 2
0
 /**
  * Returns the associative array for this NamePart
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->value) {
         $a["value"] = $this->value;
     }
     if ($this->type) {
         $a["type"] = $this->type;
     }
     if ($this->fields) {
         $ab = array();
         foreach ($this->fields as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['fields'] = $ab;
     }
     if ($this->qualifiers) {
         $ab = array();
         foreach ($this->qualifiers as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['qualifiers'] = $ab;
     }
     return $a;
 }
Ejemplo n.º 3
0
 /**
  * Returns the associative array for this NameForm
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->lang) {
         $a["lang"] = $this->lang;
     }
     if ($this->fullText) {
         $a["fullText"] = $this->fullText;
     }
     if ($this->parts) {
         $ab = array();
         foreach ($this->parts as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['parts'] = $ab;
     }
     if ($this->fields) {
         $ab = array();
         foreach ($this->fields as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['fields'] = $ab;
     }
     return $a;
 }
Ejemplo n.º 4
0
 /**
  * Returns the associative array for this Address
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->city) {
         $a["city"] = $this->city;
     }
     if ($this->country) {
         $a["country"] = $this->country;
     }
     if ($this->postalCode) {
         $a["postalCode"] = $this->postalCode;
     }
     if ($this->stateOrProvince) {
         $a["stateOrProvince"] = $this->stateOrProvince;
     }
     if ($this->street) {
         $a["street"] = $this->street;
     }
     if ($this->street2) {
         $a["street2"] = $this->street2;
     }
     if ($this->street3) {
         $a["street3"] = $this->street3;
     }
     if ($this->street4) {
         $a["street4"] = $this->street4;
     }
     if ($this->street5) {
         $a["street5"] = $this->street5;
     }
     if ($this->street6) {
         $a["street6"] = $this->street6;
     }
     if ($this->value) {
         $a["value"] = $this->value;
     }
     return $a;
 }
Ejemplo n.º 5
0
 /**
  * Returns the associative array for this DisplayProperties
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->ascendancyNumber) {
         $a["ascendancyNumber"] = $this->ascendancyNumber;
     }
     if ($this->birthDate) {
         $a["birthDate"] = $this->birthDate;
     }
     if ($this->birthPlace) {
         $a["birthPlace"] = $this->birthPlace;
     }
     if ($this->deathDate) {
         $a["deathDate"] = $this->deathDate;
     }
     if ($this->deathPlace) {
         $a["deathPlace"] = $this->deathPlace;
     }
     if ($this->descendancyNumber) {
         $a["descendancyNumber"] = $this->descendancyNumber;
     }
     if ($this->gender) {
         $a["gender"] = $this->gender;
     }
     if ($this->lifespan) {
         $a["lifespan"] = $this->lifespan;
     }
     if ($this->marriageDate) {
         $a["marriageDate"] = $this->marriageDate;
     }
     if ($this->marriagePlace) {
         $a["marriagePlace"] = $this->marriagePlace;
     }
     if ($this->name) {
         $a["name"] = $this->name;
     }
     return $a;
 }
Ejemplo n.º 6
0
 /**
  * Returns the associative array for this PlaceDisplayProperties
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->fullName) {
         $a["fullName"] = $this->fullName;
     }
     if ($this->name) {
         $a["name"] = $this->name;
     }
     if ($this->type) {
         $a["type"] = $this->type;
     }
     return $a;
 }
Ejemplo n.º 7
0
 /**
  * Returns the associative array for this PlaceReference
  *
  * @return array
  */
 public function toArray()
 {
     $a = parent::toArray();
     if ($this->descriptionRef) {
         $a["description"] = $this->descriptionRef;
     }
     if ($this->original) {
         $a["original"] = $this->original;
     }
     if ($this->normalizedExtensions) {
         $ab = array();
         foreach ($this->normalizedExtensions as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['normalized'] = $ab;
     }
     if ($this->fields) {
         $ab = array();
         foreach ($this->fields as $i => $x) {
             $ab[$i] = $x->toArray();
         }
         $a['fields'] = $ab;
     }
     return $a;
 }
Ejemplo n.º 8
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;
 }