Class: iHRIS TrainingProgram: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 1: Line 1:
This article describes the class ''iHRIS_TrainingProgram''.
This article describes the class ''iHRIS_TrainingProgram''.
*Extends the class: [[Class: I2CE_List | I2CE_List]].
*Extends the class: [[Class: I2CE_List | I2CE_List]].
*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_TrainingProgram.php lib/iHRIS_TrainingProgram.php]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/qualify/4.0.-release/annotate/head:/lib/iHRIS_TrainingProgram.php lib/iHRIS_TrainingProgram.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]]
==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 ]]
==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 ]]
==start_date==
==start_date==
The form field ''start_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
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 ]]
The form field ''end_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
==num_students==
==num_students==
The form field ''num_students'' is implemented by [[Class: I2CE_FormField_INT |INT ]]
The form field ''num_students'' is implemented by [[Class: I2CE_FormField_INT |INT ]]
==Constants==
==Constants==
===iHRIS_TrainingProgram::MAIN_FIELD===
===iHRIS_TrainingProgram::MAIN_FIELD===

Revision as of 13:12, 19 October 2009

This article describes the class iHRIS_TrainingProgram.

@copyright Copyright © 2007, 2008 IntraHealth International, Inc. Object for dealing with training programs for training institutions.

Form Fields

This class is a form class and provides the following form fields

training_institution

The form field training_institution is implemented by MAP

cadre

The form field cadre 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

num_students

The form field num_students is implemented by INT

Constants

iHRIS_TrainingProgram::MAIN_FIELD

The main field name used for a description of a record. Defined as: "cadre"

Methods

__construct()

Create a new instance of a training program.

  • Signature: public function __construct($form,$id)
  • Parameters:
    • string $form
      The name of this form
    • integer $id
      • Default Value: 0

validate()

Perform any extra validation for the training program.

  • Signature: public function validate($page)
  • Parameters: