CBitrixCloudCDNQuota::fromXMLNode: Bitrix method

      
<?php 
//  CBitrixCloudCDNQuota :: fromXMLNode()
//  /dist/bitrix/modules/bitrixcloud/classes/general/cdn_quota.php:103

    
public static function fromXMLNode(CDataXMLNode $node)
    {
        
$quota = new CBitrixCloudCDNQuota();
        
$quota->setExpires(strtotime($node->getAttribute("expires")));
        
$allow_nodes $node->elementsByName("allow");
        foreach (
$allow_nodes as $allow_node)
            
$quota->setAllowedSize(self::parseSize($allow_node->textContent()));

        
$traffic_nodes $node->elementsByName("traffic");
        foreach (
$traffic_nodes as $traffic_node)
            
$quota->setTrafficSize(self::parseSize($traffic_node->textContent()));

        return 
$quota;
    }