Somar\NZBN\Model\LookupField
Synopsis
class LookupField
extends TextField
{
- // members
- private static string $button_text = 'Lookup';
- protected $source;
- // methods
- public void __construct()
- public array getAttributes()
- public array|ArrayAccess getSource()
- public $this setSource()
- protected array getListMap()
- protected string getButtonText()
Hierarchy
Extends
- SilverStripe\Forms\TextField
Uses
- SilverStripe\Core\Config\Configurable
Members
private
protected
- $source
—
array
Associative or numeric array of all dropdown items, with array key as the submitted field value, and the array value as a natural language description shown in the interface element.
Methods
protected
- getButtonText()
- getListMap() — Given a list of values, extract the associative map of id => title
public
- __construct() — Returns an input field.
- getAttributes()
- getSource() — Gets the source array not including any empty default values.
- setSource() — Set the source for this list