DestinationPicker
class DestinationPicker (View source)
Properties
| protected Application | $app | ||
| protected Form | $formService | ||
| protected Request | $request | ||
| protected PickerInterface[] | $registeredPickers | List of registered destination picker.  | 
                
Methods
Register multiple pickers.
Unregister a registered picker.
Get a registered picker given its handle.
Get the list of currently registered pickers.
Generate the HTML that renders the destination picker.
Parse and validate the data received in POST.
Add child nodes that compatible with importing via the destination picker to exporting blocks in CIF format xml
No description
No description
Details
        
                            
    __construct(Application $app, Form $formService, Request $request)
        
    
    Initialize the instance.
        
                            $this
    registerPicker(string $handle, PickerInterface $picker)
        
    
    Register a new destination picker.
        
                            $this
    registerPickers(array $pickers)
        
    
    Register multiple pickers.
        
                            $this
    unregisterPicker(string $handle)
        
    
    Unregister a registered picker.
        
                            PickerInterface|null
    getPicker(string $handle)
        
    
    Get a registered picker given its handle.
        
                            PickerInterface[]
    getRegisteredPickers()
        
    
    Get the list of currently registered pickers.
        
                            string
    generate(string $key, array $pickers, string|null $currentPickerHandle = null, mixed|null $currentValue = null)
        
    
    Generate the HTML that renders the destination picker.
        
                            string[]|array|null[]
    decode(string $key, array $pickers, ArrayAccess $errors = null, string|null $fieldDisplayName = null, array $data = null)
        
    
    Parse and validate the data received in POST.
        
                            void
    export(string $key, string $selectedPickerHandle, string|int $value, BlockController $blockController, SimpleXMLElement $blockNode)
        
    
    Add child nodes that compatible with importing via the destination picker to exporting blocks in CIF format xml
        
                    protected        array[]
    getHandlesWithOptions(array $pickers)
        
    
    No description
        
                    protected        string[]
    buildWhichSelector(string $key, array $pickerHandlesWithOptions, string|null $currentHandler)
        
    
    No description