File::renderPublicSelectableControlMultiple: Bitrix method

      
<?php 
//  Bitrix\Bizproc\BaseType\File :: renderPublicSelectableControlMultiple()
//  /dist/bitrix/modules/bizproc/lib/basetype/file.php:268

    
private static function renderPublicSelectableControlMultiple(FieldType $fieldType, array $field$value)
    {
        if (!
is_array($value) || is_array($value) && \CBPHelper::isAssociativeArray($value))
        {
            
$value = [$value];
        }

        
// need to show at least one control
        
if (empty($value))
        {
            
$value[] = null;
        }

        
$controls = [];

        foreach (
$value as $k => $v)
        {
            
$singleField $field;
            
$singleField['Index'] = $k;
            
$controls[] = static::renderPublicSelectableControlSingle(
                
$fieldType,
                
$singleField,
                
$v
            
);
        }

        return static::
renderPublicMultipleWrapper($fieldType$field$controls);
    }