/** * Loads AvailabilityZoneData from simple xml object * * @param \SimpleXMLElement $sxml * @return AvailabilityZoneData */ public function _loadAvailabilityZoneData(\SimpleXMLElement $sxml) { $item = new AvailabilityZoneData($this->exist($sxml->Name) ? (string) $sxml->Name : null, $this->exist($sxml->ProvisionedIopsCapable) ? (string) $sxml->ProvisionedIopsCapable == 'true' : null); $item->setRds($this->rds); return $item; }
/** * Loads AvailabilityZoneList from simple xml object * * @param \SimpleXMLElement $sxml * @return AvailabilityZoneList */ protected function _loadAvailabilityZonesList(\SimpleXMLElement $sxml) { $result = new AvailabilityZoneList(); $result->setRds($this->rds); if (isset($sxml->AvailabilityZone)) { foreach ($sxml->AvailabilityZone as $zone) { $item = new AvailabilityZoneData(); $item->setRds($this->rds); $item->name = (string) $zone; $result->append($item); unset($item); } } return $result; }
/** * Loads AvailabilityZoneList from simple xml object * * @param \SimpleXMLElement $sxml * @return AvailabilityZoneList */ protected function _loadAvailabilityZoneList(\SimpleXMLElement $sxml) { $result = new AvailabilityZoneList(); $result->setRds($this->rds); if (isset($sxml->AvailabilityZone)) { foreach ($sxml->AvailabilityZone as $v) { $item = new AvailabilityZoneData(); $item->setRds($this->rds); $item->provisionedIopsCapable = $this->exist($v->ProvisionedIopsCapable) ? (string) $v->ProvisionedIopsCapable == 'true' : null; $item->name = $this->exist($v->Name) ? (string) $v->Name : null; $result->append($item); unset($item); } } return $result; }