Class: iHRIS PageFormMakeOffer: Difference between revisions

From IHRIS Wiki
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
This article describes the class ''iHRIS_PageFormMakeOffer''.
#REDIRECT [[Class: iHRIS_PageFormMakeOffer (4.1.7)]]
*Extends the class: [[Class: iHRIS_PageFormParentPerson | iHRIS_PageFormParentPerson]].
*Parent Classses:  [[Class: iHRIS_PageFormParentPerson | iHRIS_PageFormParentPerson]] [[Class: I2CE_PageForm | I2CE_PageForm]] [[Class: I2CE_Page | I2CE_Page]] [[Class: I2CE_Fuzzy | I2CE_Fuzzy]]
*Location: Part of the module [[iHRIS Manage Module List#ihris-manage-PersonPosition|ihris-manage-PersonPosition]] in the package [https://launchpad.net/ihris-manage iHRIS Manage]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-manage/4.0.0-release/annotate/head:/modules/ManagePersonPosition/lib/iHRIS_PageFormMakeOffer.php modules/ManagePersonPosition/lib/iHRIS_PageFormMakeOffer.php]
*Author: Luke Duncan <lduncan@intrahealth.org>
*Since: v2.0.0
Manage adding or editing identification details to the database.    @copyright Copyright &copy; 2007, 2008 IntraHealth International, Inc.    Page object to handle the adding or editing identification details to the database.
==Variables==
===$old_position===
The old position this person held and is being promoted from.
*Type: private [[Class: iHRIS_Position | iHRIS_Position]] $old_position
 
===$old_person_position===
The old position this person held and is being promoted from.
*Type: private [[Class: iHRIS_PersonPosition | iHRIS_PersonPosition]] $old_person_position
 
==Methods==
===displayControls()===
Display the save or confirm buttons as needed. If the page is a confirmation view then the save / edit button template will be displayed. Otherwise the confirm and return buttons will be shown.
*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. (Defaults to false)
***Default Value: false
** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $show_edit <br/>(defaults to true) @global array
***Default Value: true
===getForm()===
Return the form name for this page.
*Signature: protected function getForm($html)
*Parameters:
** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $html <br/>Set to true if this is to be used for the html template page.
***Default Value: false
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]@see PersonPageForm
===loadObjects()===
Create and load data for the objects used for this form. Create the list object and if this is a form submission load the data from the form data.  It determines the type based on the  member variable.
*Signature: protected function loadObjects()
===save()===
Update the position for this to mark it as closed and then save the object.
*Signature: public function save()
===setForm()===
Set the I2CE_Form object in the page template. This method will pass the edit object to the page template so that it can process all the form variables.
*Signature: protected function setForm()
===validate()===
Run extra validation for the fields being edited.
*Signature: protected function validate()
 
 
[[Category:Class Documentation]]

Latest revision as of 09:05, 23 August 2013