Symbiote\MultiValueField\Fields\KeyValueField
A field that lets you specify both a key AND a value for each row entry
- Author: Marcus Nyeholt <marcus@symbiote.com.au>
Synopsis
class KeyValueField
extends MultiValueTextField
{
- // Inherited constants from MultiValueTextField
- const KEY_SEP = '__';
- // members
- protected $sourceKeys;
- protected $sourceValues;
- protected $keyFieldPlaceholder;
- protected $valueFieldPlaceholder;
- // Inherited members from MultiValueTextField
- protected string $tag;
- // methods
- public void getKeyFieldPlaceholder()
- public void setKeyFieldPlaceholder()
- public void getValueFieldPlaceholder()
- public void setValueFieldPlaceholder()
- public void __construct()
- public void Field()
- protected void createSelectList()
- public void setValue()
- // Inherited methods from MultiValueTextField
- public void Field()
- public void createReadonlyInput()
- public void createInput()
- public void performReadonlyTransformation()
- public void setValue()
- public void setTag()
Hierarchy
Constants
Name | Value |
---|---|
KEY_SEP | '__' |
Members
protected
- $keyFieldPlaceholder
—
string
keyFieldPlaceholder - $sourceKeys
- $sourceValues
- $tag
- $valueFieldPlaceholder
—
string
valueFieldPlaceholder
Methods
protected
public
- __construct()
- Field()
- getKeyFieldPlaceholder() — Returns the KeyPlaceholder value
- getValueFieldPlaceholder() — Returns the ValuePlaceholder value
- setKeyFieldPlaceholder() — Sets the KeyPlaceholder value
- setValue()
- setValueFieldPlaceholder() — Sets the ValuePlaceholder value