Class: iHRIS Position: Difference between revisions

From IHRIS Wiki
No edit summary
(Redirected page to Class: iHRIS Position (4.1.7))
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
This article describes the class ''iHRIS_Position''.
#REDIRECT [[Class: iHRIS_Position (4.1.7)]]
*Extends the class: [[Class: I2CE_List | I2CE_List]].
*Location: Part of the module [[iHRIS 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_Position.php modules/ManagePersonPosition/lib/iHRIS_Position.php]
*Author: Luke Duncan <lduncan@intrahealth.org>
*Since: v1.0.0
@copyright Copyright &copy; 2007, 2008 IntraHealth International, Inc.    Object for dealing with positions.
==Form Fields==
This class is a [[Class: I2CE_Form |form class]] and provides the following [[Class: I2CE_FormField |form fields]]
==code==
The form field ''code'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
==job==
The form field ''job'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==title==
The form field ''title'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
==description==
The form field ''description'' is implemented by [[Class: I2CE_FormField_STRING_MLINE |STRING_MLINE ]]
==proposed_salary==
The form field ''proposed_salary'' is implemented by [[Class: iHRIS_FormField_CURRENCY |CURRENCY ]]
==source==
The form field ''source'' is implemented by [[Class: I2CE_FormField_MAP_MULT |MAP_MULT ]]
==supervisor==
The form field ''supervisor'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==facility==
The form field ''facility'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==department==
The form field ''department'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==pos_type==
The form field ''pos_type'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==proposed_end_date==
The form field ''proposed_end_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
==proposed_hiring_date==
The form field ''proposed_hiring_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
==posted_date==
The form field ''posted_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
==status==
The form field ''status'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==comments==
The form field ''comments'' is implemented by [[Class: I2CE_FormField_STRING_TEXT |STRING_TEXT ]]
==interview_comments==
The form field ''interview_comments'' is implemented by [[Class: I2CE_FormField_STRING_TEXT |STRING_TEXT ]]
==Constants==
===iHRIS_Position::MAIN_FIELD===
The main field name used for display a description of a record.
Defined as: "code"
===iHRIS_Position::SEC_FIELD===
The secondary field name used for displaying a description of a record in combination with the MAIN_FIELD.
Defined as: "title"
==Methods==
===closePosition()===
Mark this position as closed and remove it from any applications. The person being assigned the position will have all application positions removed.
*Signature: public function closePosition($user,$person_id)
*Parameters:
** [[Class: I2CE_User | I2CE_User]] &$user <br/>The user performing this action.
** integer $person_id <br/>The person being assigned this position.
===getSupervised()===
Return the list of record ids that have this position as supervisor.
*Signature: public function getSupervised()
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]
===setStatus()===
Update the status for this position.
*Signature: public function setStatus($status)
*Parameters:
** integer $status
===statusOnly()===
Remove all fields except for the status when only dealing with status updates.
*Signature: public function statusOnly()
 
 
[[Category:Class Documentation]]

Latest revision as of 10:08, 23 August 2013