CBPWorkflowTemplateResult :: GetFromSerializedForm: Bitrix method

      
<?php 
//  CBPWorkflowTemplateResult :: GetFromSerializedForm()
//  /dist/bitrix/modules/bizproc/classes/general/workflowtemplateloader.php:1137

    
private function GetFromSerializedForm($value)
    {
        if (
strlen($value) > 0)
        {
            if (
$this->useGZipCompression)
            {
                
$value1 = @gzuncompress($value);
                if (
$value1 !== false)
                    
$value $value1;
            }

            
$value unserialize($value);
            if (!
is_array($value))
                
$value = array();
        }
        else
        {
            
$value = array();
        }
        return 
$value;
    }