Class: iHRIS TrainingProgram

From IHRIS Wiki
Revision as of 13:12, 19 October 2009 by Litlfred (talk | contribs)

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: