Class jFormsDaoDatasource

Description

Implements interfaces:

A datasource which is based on a dao

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


	
			
Variable Summary
mixed $criteria
mixed $dao
mixed $groupeBy
mixed $keyProperty
mixed $labelMethod
mixed $method
mixed $profile
mixed $selector
Method Summary
jFormsDaoDatasource __construct ( $selector,  $method,  $label,  $key, [ $profile = ''], [ $criteria = null], [ $criteriaFrom = null], [ $labelSeparator = ''])
void buildLabel ( $rec)
void getData ( $form)
void getLabel ( $key)
void getLabel2 ( $key,  $form)
void hasGroupedData ()
void setGroupBy ( $group)
Variables
mixed $criteria = null (line 130)
  • access: protected
mixed $criteriaFrom = null (line 131)
  • access: protected
mixed $dao = null (line 133)
  • access: protected
mixed $groupeBy = '' (line 135)
  • access: protected
mixed $keyProperty (line 127)
  • access: protected
mixed $labelMethod = 'get' (line 126)
  • access: public
mixed $labelProperty = array() (line 124)
  • access: protected
mixed $labelSeparator (line 125)
  • access: protected
mixed $method (line 123)
  • access: protected
mixed $profile (line 128)
  • access: protected
mixed $selector (line 122)
  • access: protected
Methods
Constructor __construct (line 137)
jFormsDaoDatasource __construct ( $selector,  $method,  $label,  $key, [ $profile = ''], [ $criteria = null], [ $criteriaFrom = null], [ $labelSeparator = ''])
  • $selector
  • $method
  • $label
  • $key
  • $profile
  • $criteria
  • $criteriaFrom
  • $labelSeparator
buildLabel (line 238)
  • access: protected
void buildLabel ( $rec)
  • $rec
getData (line 156)
  • access: public
void getData ( $form)
  • $form

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

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

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

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

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

Documentation generated on Wed, 04 Jan 2017 22:55:00 +0100 by phpDocumentor 1.4.3