Class: iHRIS Benefit: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
This class is a [[Class: I2CE_Form |form class]] and provides the following [[Class: I2CE_FormField |form fields]] | This class is a [[Class: I2CE_Form |form class]] and provides the following [[Class: I2CE_FormField |form fields]] | ||
==type== | ==type== | ||
The form field ''type'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]] | |||
==amount== | ==amount== | ||
The form field ''amount'' is implemented by [[Class: iHRIS_FormField_CURRENCY |CURRENCY ]] | |||
==source== | ==source== | ||
The form field ''source'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]] | |||
==start_date== | ==start_date== | ||
The form field ''start_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]] | |||
==end_date== | ==end_date== | ||
The form field ''end_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]] | |||
==recurrence== | ==recurrence== | ||
The form field ''recurrence'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]] | |||
==Methods== | ==Methods== | ||
===validate()=== | ===validate()=== |
Revision as of 11:49, 19 October 2009
This article describes the class iHRIS_Benefit.
- Extends the class: I2CE_Form.
- Location: Part of the module ihris-manage-Benefit in the package iHRIS Manage
- Source: Defined in the file modules/Benefit/lib/iHRIS_Benefit.php
- Author: Luke Duncan <lduncan@intrahealth.org>
- Since: v1.0.0
@copyright Copyright © 2007, 2008 IntraHealth International, Inc. Object for dealing with benefits.
Form Fields
This class is a form class and provides the following form fields
type
The form field type is implemented by MAP
amount
The form field amount is implemented by CURRENCY
source
The form field source is implemented by MAP
start_date
The form field start_date is implemented by DATE_YMD
end_date
The form field end_date is implemented by DATE_YMD
recurrence
The form field recurrence is implemented by MAP
Methods
validate()
Checks to make sure all the required fields are valid.
- Signature: public function validate($page)
- Parameters:
- I2CE_Template &$page