Class: iHRIS Training: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 1: Line 1:
This article describes the class ''iHRIS_Training''.
This article describes the class ''iHRIS_Training''.
*Extends the class: [[Class: I2CE_Form | I2CE_Form]].
*Extends the class: [[Class: I2CE_Form | I2CE_Form]].
*Location: Part of the module [[iHRIS Module List#ihris-qualify|ihris-qualify]] in the package [https://launchpad.net/qualify iHRIS Qualify]
*Location: Part of the module [[iHRIS Qualify Module List#ihris-qualify|ihris-qualify]] in the package [https://launchpad.net/qualify iHRIS Qualify]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/qualify/4.0.-release/annotate/head:/lib/iHRIS_Training.php lib/iHRIS_Training.php]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/qualify/4.0.-release/annotate/head:/lib/iHRIS_Training.php lib/iHRIS_Training.php]
*Author: Luke Duncan <lduncan@intrahealth.org>
*Author: Luke Duncan <lduncan@intrahealth.org>
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]]
==index_num==
==index_num==
The form field ''index_num'' is implemented by [[Class: I2CE_FormField_INT_GENERATE |INT_GENERATE ]]
The form field ''index_num'' is implemented by [[Class: I2CE_FormField_INT_GENERATE |INT_GENERATE ]]
==cadre==
==cadre==
The form field ''cadre'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''cadre'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==intake_date==
==intake_date==
The form field ''intake_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
The form field ''intake_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
==graduation==
==graduation==
The form field ''graduation'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
The form field ''graduation'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
==trained_outside==
==trained_outside==
The form field ''trained_outside'' is implemented by [[Class: I2CE_FormField_BOOL |BOOL ]]
The form field ''trained_outside'' is implemented by [[Class: I2CE_FormField_BOOL |BOOL ]]
==training_program==
==training_program==
The form field ''training_program'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''training_program'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==training_institution==
==training_institution==
The form field ''training_institution'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''training_institution'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==in_cadre==
==in_cadre==
The form field ''in_cadre'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''in_cadre'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==out_country==
==out_country==
The form field ''out_country'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''out_country'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==out_institution==
==out_institution==
The form field ''out_institution'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
The form field ''out_institution'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
==out_cadre==
==out_cadre==
The form field ''out_cadre'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''out_cadre'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==Methods==
==Methods==
===populate()===
===populate()===

Revision as of 13:12, 19 October 2009

This article describes the class iHRIS_Training.

@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: