Scalr\Service\Aws\Rds\V20141031\RdsApi::_loadOptionSettingList PHP Méthode

_loadOptionSettingList() protected méthode

Loads OptionSettingList from simple xml object
protected _loadOptionSettingList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\Rds\DataType\OptionSettingList
$sxml SimpleXMLElement
Résultat Scalr\Service\Aws\Rds\DataType\OptionSettingList
    protected function _loadOptionSettingList(\SimpleXMLElement $sxml)
    {
        $result = new OptionSettingList();
        $result->setRds($this->rds);
        if (isset($sxml->OptionSetting)) {
            foreach ($sxml->OptionSetting as $v) {
                $item = new OptionSettingData();
                $item->setRds($this->rds);
                $item->isCollection = $this->exist($v->IsCollection) ? (string) $v->IsCollection == 'true' : null;
                $item->isModifiable = $this->exist($v->IsModifiable) ? (string) $v->IsModifiable == 'true' : null;
                $item->allowedValues = $this->exist($v->AllowedValues) ? (string) $v->AllowedValues : null;
                $item->applyType = $this->exist($v->ApplyType) ? (string) $v->ApplyType : null;
                $item->defaultValue = $this->exist($v->DefaultValue) ? (string) $v->DefaultValue : null;
                $item->description = $this->exist($v->Description) ? (string) $v->Description : null;
                $item->name = $this->exist($v->Name) ? (string) $v->Name : null;
                $item->value = $this->exist($v->Value) ? (string) $v->Value : null;
                $result->append($item);
                unset($item);
            }
        }
        return $result;
    }
RdsApi