File :: putContents: Bitrix method

      
<?php 
//  Bitrix\Translate\File :: putContents()
//  /dist/bitrix/modules/translate/lib/file.php:861

    
public function putContents($data$flags self::REWRITE)
    {
        
// encoding
        
$operatingEncoding $this->getOperatingEncoding();
        
$sourceEncoding $this->getSourceEncoding();
        if (
$operatingEncoding != $sourceEncoding)
        {
            
$data Main\Text\Encoding::convertEncoding($data$operatingEncoding$sourceEncoding);
        }

        return 
parent::putContents($data$flags);
    }