Class: iHRIS PageFormFacilityInstitution

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

This article describes the class iHRIS_PageFormFacilityInstitution.

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

Methods

action()

Perform the main actions of the page.

  • Signature: protected function action()

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

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()

search()

Search the database for the matching facilities or institutions.

  • Signature: protected function search($field,$value)
  • Parameters:
  • Returns: array