SilverWare\FontIcons\Forms\FontIconField
An extension of the Select2 Ajax field class for a font icon field.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class FontIconField
extends Select2AjaxField
{
- // members
- private static array $allowed_actions = ;
- private static array $dependencies = ;
- // methods
- public string Type()
- public array|ArrayAccess getSource()
- public HTTPResponse search()
- public string getFormatResult()
- public string getFormatSelection()
- protected string getFormatDefault()
- protected string getFormatTag()
- protected string getFormatClass()
- protected ViewableData getValueRecord()
- protected ArrayData getIconData()
Hierarchy
Extends
- SilverWare\Select2\Forms\Select2AjaxField
Members
private
- $allowed_actions
—
array
Defines the allowed actions for this field. - $dependencies
—
array
Defines the injector dependencies for this object.
Methods
protected
- getFormatClass() — Answers the class for the default format.
- getFormatDefault() — Answers the default format for the receiver.
- getFormatTag() — Answers the tag for the default format.
- getIconData() — Answers an array data object for the given icon ID.
- getValueRecord() — Answers the record identified by the given value.
public
- Type() — Answers the field type for the template.
- getFormatResult() — Answers the result format defined for the receiver.
- getFormatSelection() — Answers the selection format defined for the receiver.
- getSource() — Answers the source items for the field.
- search() — Answers an HTTP response containing JSON results matching the given search parameters.