Helper::getFieldsMap: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Automation\Helper :: getFieldsMap()
//  /dist/bitrix/modules/bizproc/lib/automation/helper.php:344

    
protected static function getFieldsMap(array $documentType)
    {
        
$key implode('@'$documentType);
        if (!isset(static::
$maps[$key]))
        {
            
$id $name = [];

            
$fields = static::getDocumentFields($documentType);
            foreach (
$fields as $field)
            {
                
$id[] = $field['Id'];
                
$name[] = $field['Name'];
            }

            static::
$maps[$key] = [$id$name];
        }
        return static::
$maps[$key];
    }