Class: iHRIS Training
From IHRIS Wiki
This article describes the class iHRIS_Training.
- Extends the class: I2CE_Form.
- Location: Part of the module ihris-qualify in the package iHRIS Qualify
- Source: Defined in the file lib/iHRIS_Training.php
- Author: Luke Duncan <lduncan@intrahealth.org>
- Since: v1.0.0
@copyright Copyright © 2007, 2008 IntraHealth International, Inc. Object for dealing with trainings for people.
Form Fields
This class is a form class and provides the following form fields
index_num
The form field index_num is implemented by INT_GENERATE
cadre
The form field cadre is implemented by MAP
intake_date
The form field intake_date is implemented by DATE_YMD
graduation
The form field graduation is implemented by DATE_YMD
trained_outside
The form field trained_outside is implemented by BOOL
training_program
The form field training_program is implemented by MAP
training_institution
The form field training_institution is implemented by MAP
in_cadre
The form field in_cadre is implemented by MAP
out_country
The form field out_country is implemented by MAP
out_institution
The form field out_institution is implemented by STRING_LINE
out_cadre
The form field out_cadre is implemented by MAP
Methods
populate()
Populate the member variables of the object from the database.
- Signature: public function populate()
save()
Save the training object. Sets all the required fields for the training object based on the form data. Since a training may be inside or outside the country certain fields may be required depending on which case it is.
- Signature: public function save($user,$transact)
- Parameters:
validate()
Validate all fields for the training.
- Signature: public function validate($page)
- Parameters:
- I2CE_Template &$page