Class: iHRIS PageFormTrainingProgram

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

This article describes the class iHRIS_PageFormTrainingProgram.

Handles the action of linking Training Programs to Training Institutions @copyright Copyright © 2007, 2008 IntraHealth International, Inc. The page class for displaying the form to link training programs with training institutions.

Variables

$id

The id being edited by this page.

  • Type: protected integer $id

Methods

__construct()

Construct this page

  • Signature: public function __construct($args,$request_remainder)
  • Parameters:

displayControls()

Display the save or confirm button templates as needed.

  • Signature: protected function displayControls($save,$show_edit)
  • Parameters:
    • boolean $save
      Flag to show the save button.
      • Default Value: false
    • boolean $show_edit
      (defaults to true)
      • Default Value: true

loadObjects()

Create and load any necessary objects for this form.

  • Signature: protected function loadObjects()

save()

Save the objects to the database. This method overrides the default save because the object used to edit on this page needs to be converted to multiple FacilityInstitution objects.

  • Signature: protected function save()