CBitrixCloudOption :: _write_db: Bitrix method

      
<?php 
//  CBitrixCloudOption :: _write_db()
//  /dist/bitrix/modules/bitrixcloud/classes/general/option.php:80

    
private function _write_db($value)
    {
        global 
$DB;
        if (
is_array($value))
        {
            
$sort 0;
            foreach (
$value as $key => $val)
            {
                
$DB->Add("b_bitrixcloud_option", array(
                    
"NAME" => $this->name,
                    
"SORT" => (string)$sort,
                    
"PARAM_KEY" => $key,
                    
"PARAM_VALUE" => $val,
                ));
                
$sort++;
            }
        }
    }