CBitrixCloudCDNLocations :: fromOption: Bitrix method

      
<?php 
//  CBitrixCloudCDNLocations :: fromOption()
//  /dist/bitrix/modules/bitrixcloud/classes/general/cdn_location.php:276

    
public static function fromOption(CBitrixCloudOption $optionCBitrixCloudCDNConfig $config)
    {
        
$locations = new CBitrixCloudCDNLocations;
        foreach (
$option->getArrayValue() as $location_name => $location_value)
        {
            
$locations->addLocation(CBitrixCloudCDNLocation::fromOptionValue($location_name$location_value$config));
        }
        return 
$locations;
    }