InternalSelect :: getDocumentSelectFields: Bitrix method

      
<?php 
//  Bitrix\Bizproc\BaseType\InternalSelect :: getDocumentSelectFields()
//  /dist/bitrix/modules/bizproc/lib/basetype/internalselect.php:81

    
private static function getDocumentSelectFields(FieldType $fieldType$ignoreAliases false)
    {
        
$runtime = \CBPRuntime::getRuntime();
        
$runtime->startRuntime();
        
$documentService $runtime->getService("DocumentService");

        
$result = array();
        
$fields $documentService->getDocumentFields($fieldType->getDocumentType());
        foreach (
$fields as $key => $field)
        {
            if (
$field['Type'] == 'select' && substr($key, -10) != '_PRINTABLE')
            {
                
$result[$key] = $field;
                if (isset(
$field['Alias']) && !$ignoreAliases)
                    
$result[$field['Alias']] = $field;
            }
        }
        return 
$result;
    }