Scalr\Service\Aws\CloudFront\V20120701\CloudFrontApi::_loadDistributionConfigData PHP Метод

_loadDistributionConfigData() защищенный Метод

Loads DistributionConfigData from simple xml object
protected _loadDistributionConfigData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData Returns DistributionConfigData
    protected function _loadDistributionConfigData(\SimpleXMLElement $sxml)
    {
        $item = null;
        if ($this->exist($sxml)) {
            $item = new DistributionConfigData();
            $item->setCloudFront($this->cloudFront);
            $item->aliases = $this->_loadDistributionConfigAliasList($sxml->Aliases);
            $item->cacheBehaviors = $this->_loadCacheBehaviorList($sxml->CacheBehaviors);
            $item->callerReference = $this->exist($sxml->CallerReference) ? (string) $sxml->CallerReference : null;
            $item->comment = $this->exist($sxml->Comment) ? (string) $sxml->Comment : null;
            $item->defaultCacheBehavior = $this->_loadCacheBehaviorData($sxml->DefaultCacheBehavior);
            $item->defaultRootObject = $this->exist($sxml->DefaultRootObject) ? (string) $sxml->DefaultRootObject : null;
            $item->enabled = $this->exist($sxml->Enabled) ? (string) $sxml->Enabled == 'true' : null;
            $item->logging = $this->_loadDistributionConfigLoggingData($sxml->Logging);
            $item->origins = $this->_loadDistributionConfigOriginList($sxml->Origins);
            $item->priceClass = $this->exist($sxml->PriceClass) ? (string) $sxml->PriceClass : null;
        }
        return $item;
    }