jIFormsDatasource
in
Interface for objects which provides a source of data to fill some controls in a form, like menulist, listbox etc.
..
Tags
Table of Contents
- getData() : array<string|int, mixed>
- load and returns data to fill a control. The returned array should be an associative array key => label.
- getLabel() : string
- Return the label corresponding to the given key if the class implements also jIFormsDatasource2, you must not call getLabel but getLabel2.
Methods
getData()
load and returns data to fill a control. The returned array should be an associative array key => label.
public
getData(jFormsBase $form) : array<string|int, mixed>
Parameters
- $form : jFormsBase
-
the form
Tags
Return values
array<string|int, mixed> —the data
getLabel()
Return the label corresponding to the given key if the class implements also jIFormsDatasource2, you must not call getLabel but getLabel2.
public
getLabel(string $key) : string
Parameters
- $key : string
-
the key
Tags
Return values
string —the label