Interface jIFormsDatasource2

Description

Interface for objects which provides a source of data to fill some controls in a form, like menulist, listbox etc...

Located in /forms/jFormsDatasource.class.php (line 44)

jIFormsDatasource
   |
   --jIFormsDatasource2
Method Summary
string getLabel2 (string $key, jFormsBase $form)
boolean hasGroupedData ()
void setGroupBy (string $group)
Methods
getLabel2 (line 66)

Return the label corresponding to the given key.

It replace getLabel so it should be called instead of getLabel.

  • return: the label
  • access: public
string getLabel2 (string $key, jFormsBase $form)
hasGroupedData (line 51)

Says if data are grouped, ie, if getData() returns a simple array

value=>label (false) or if it returns an array of simple arrays array('group label'=>array(value=>label,)) (true)

  • access: public
boolean hasGroupedData ()
setGroupBy (line 57)

set a parameter indicating how data are grouped

  • access: public
void setGroupBy (string $group)
  • string $group: the group parameter

Inherited Methods

Inherited From jIFormsDatasource

jIFormsDatasource::getData()
jIFormsDatasource::getLabel()

Documentation generated on Mon, 19 Sep 2011 14:12:57 +0200 by phpDocumentor 1.4.3