CBitrixCloudCDNConfig :: saveToOptions: Bitrix method

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

    
public function saveToOptions()
    {
        
CBitrixCloudOption::getOption("cdn_config_active")->setStringValue((string)$this->active);
        
CBitrixCloudOption::getOption("cdn_config_expire_time")->setStringValue((string)$this->expires);
        
CBitrixCloudOption::getOption("cdn_config_domain")->setStringValue($this->domain);
        
CBitrixCloudOption::getOption("cdn_config_site")->setArrayValue($this->sites);
        if (
$this->https !== null)
            
CBitrixCloudOption::getOption("cdn_config_https")->setStringValue($this->https"true""false");
        if (
$this->optimize !== null)
            
CBitrixCloudOption::getOption("cdn_config_optimize")->setStringValue($this->optimize"true""false");
        if (
$this->content_rewrite !== null)
            
CBitrixCloudOption::getOption("cdn_config_content_rewrite")->setStringValue($this->content_rewrite"true""false");
        if (
$this->kernel_rewrite !== null)
            
CBitrixCloudOption::getOption("cdn_config_kernel_rewrite")->setStringValue($this->kernel_rewrite"true""false");
        
$this->quota->saveOption(CBitrixCloudOption::getOption("cdn_config_quota"));
        
$this->classes->saveOption(CBitrixCloudOption::getOption("cdn_class"));
        
$this->server_groups->saveOption(CBitrixCloudOption::getOption("cdn_server_group"));
        
$this->locations->saveOption(CBitrixCloudOption::getOption("cdn_location"));

        return 
$this;
    }