FilePicker
class FilePicker implements PickerInterface (View source)
A picker for DestinationPicker that allows users specify a concrete5 file.
Supported options for the generate method:
- displayName: the display name of this picker (to be used in the SELECT html element).
 - chooseFileText: the text to be used for the "Choose File" button
 - any other option will be passed to the concrete5 File Manager picker (for example: 'filters' may be useful - \Concrete\Core\Application\Service\FileManager::file() )
 
Supported options for the decode method:
- none
 
Properties
| protected FileManager | $fileManager | ||
| protected Numbers | $numbers | ||
| protected EntityManagerInterface | $entityManager | 
Methods
                    __construct(FileManager $fileManager, Numbers $numbers, EntityManagerInterface $entityManager)
        
                                            
                
            No description
                    string
                
                
                    getDisplayName(array $options)
        
                                            
                
            Get the display name of this picker (to be used in the SELECT html element).
                    int
                
                
                    getHeight()
        
                                            
                
            Get the height of this picker (in pixels).
                    string
                
                
                    generate(string $pickerKey, array $options, mixed|null $selectedValue = null)
        
                                            
                
            Generate the HTML for the picker.
                    decode(array $data, string $pickerKey, array $options, ArrayAccess $errors = null, string|null $fieldDisplayName = null)
        
                                            
                
            Decode the value received via post.
Details
        
                            
    __construct(FileManager $fileManager, Numbers $numbers, EntityManagerInterface $entityManager)
        
    
    No description
        
                            string
    getDisplayName(array $options)
        
    
    Get the display name of this picker (to be used in the SELECT html element).
        
                            int
    getHeight()
        
    
    Get the height of this picker (in pixels).
        
                            string
    generate(string $pickerKey, array $options, mixed|null $selectedValue = null)
        
    
    Generate the HTML for the picker.
        
                            
    decode(array $data, string $pickerKey, array $options, ArrayAccess $errors = null, string|null $fieldDisplayName = null)
        
    
    Decode the value received via post.