CBitrixCloudCDNConfig::updateQuota: Bitrix method

      
<?php 
//  CBitrixCloudCDNConfig :: updateQuota()
//  /dist/bitrix/modules/bitrixcloud/classes/general/cdn_config.php:48

    
public function updateQuota()
    {
        
$web_service = new CBitrixCloudCDNWebService($this->domain);
        
$obXML $web_service->actionQuota();
        
$node $obXML->SelectNodes("/control/quota");
        if (
is_object($node))
            
$this->quota CBitrixCloudCDNQuota::fromXMLNode($node);
        else
            throw new 
CBitrixCloudException(GetMessage("BCL_CDN_CONFIG_XML_PARSE", array(
                
"#CODE#" => "6",
            )));

        
$this->quota->saveOption(CBitrixCloudOption::getOption("cdn_config_quota"));
        return 
$this;
    }