ParseStringParameter: Bitrix method

      
<?php 
//  ParseStringParameter()
//  /dist/bitrix/modules/bizproc/classes/general/activity.php:766

    
private function ParseStringParameter($matches)
    {
        
$result "";
        
$modifiers = array();
        if (!empty(
$matches['mod1']))
            
$modifiers[] = $matches['mod1'];
        if (!empty(
$matches['mod2']))
            
$modifiers[] = $matches['mod2'];

        if (empty(
$modifiers))
            
$modifiers[] = \Bitrix\Bizproc\FieldType::STRING;

        if (
$this->GetRealParameterValue($matches['object'], $matches['field'], $result$modifiers))
        {
            if (
is_array($result))
                
$result implode(", "CBPHelper::MakeArrayFlat($result));
        }
        else
        {
            
$result $matches[0];
        }

        return 
$result;
    }