Class: iHRIS PageFormFacilityInstitution: Difference between revisions

From IHRIS Wiki
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
This article describes the class ''iHRIS_PageFormFacilityInstitution''.
#REDIRECT [[Class: iHRIS_PageFormFacilityInstitution (4.1.7)]]
*Extends the class: [[Class: I2CE_PageForm | I2CE_PageForm]].
*Parent Classses:  [[Class: I2CE_PageForm | I2CE_PageForm]] [[Class: I2CE_Page | I2CE_Page]] [[Class: I2CE_Fuzzy | I2CE_Fuzzy]]
*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_PageFormFacilityInstitution.php lib/iHRIS_PageFormFacilityInstitution.php]
*Author: Luke Duncan <lduncan@intrahealth.org>
*Since: v2.0.0
Handles the action of linking health facilities with training institutions.    @copyright Copyright &copy; 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:
** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $save <br/>Flag to show the save button.
***Default Value: false
** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $show_edit <br/>(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:
** [http://www.php.net/manual/en/language.types.string.php string ] $field
** [http://www.php.net/manual/en/language.types.string.php string ] $value
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]
 
 
[[Category:Class Documentation]]

Latest revision as of 10:05, 23 August 2013