Class jFormsStaticDatasource

Description

Implements interfaces:

A datasource which is based on static values.

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


	
			
Variable Summary
array $data
mixed $grouped
Method Summary
void getData ( $form)
void getLabel ( $key)
void getLabel2 ( $key,  $form)
void hasGroupedData ()
void setGroupBy ( $group)
Variables
array $data = array() (line 81)

associative array which contains keys and labels

  • access: public
mixed $grouped = false (line 83)
  • access: protected
Methods
getData (line 85)
  • access: public
void getData ( $form)
  • $form

Implementation of:
jIFormsDatasource::getData()
load and returns data to fill a control. The returned array should be
getLabel (line 93)
  • access: public
void getLabel ( $key)
  • $key

Implementation of:
jIFormsDatasource::getLabel()
Return the label corresponding to the given key
getLabel2 (line 89)
  • access: public
void getLabel2 ( $key,  $form)
  • $key
  • $form

Implementation of:
jIFormsDatasource2::getLabel2()
Return the label corresponding to the given key.
hasGroupedData (line 105)
  • access: public
void hasGroupedData ()

Implementation of:
jIFormsDatasource2::hasGroupedData()
Says if data are grouped, ie, if getData() returns a simple array
setGroupBy (line 109)
  • access: public
void setGroupBy ( $group)
  • $group

Implementation of:
jIFormsDatasource2::setGroupBy()
set a parameter indicating how data are grouped

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