Class: iHRIS Position: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 1: Line 1:
This article describes the class ''iHRIS_Position''.
This article describes the class ''iHRIS_Position''.
*Extends the class: [[Class: I2CE_List | I2CE_List]].
*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]
*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_Position.php modules/ManagePersonPosition/lib/iHRIS_Position.php]
*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>
*Author: Luke Duncan <lduncan@intrahealth.org>

Revision as of 13:12, 19 October 2009

This article describes the class iHRIS_Position.

@copyright Copyright © 2007, 2008 IntraHealth International, Inc. Object for dealing with positions.

Form Fields

This class is a form class and provides the following form fields

code

The form field code is implemented by STRING_LINE

job

The form field job is implemented by MAP

title

The form field title is implemented by STRING_LINE

description

The form field description is implemented by STRING_MLINE

proposed_salary

The form field proposed_salary is implemented by CURRENCY

source

The form field source is implemented by MAP_MULT

supervisor

The form field supervisor is implemented by MAP

facility

The form field facility is implemented by MAP

department

The form field department is implemented by MAP

pos_type

The form field pos_type is implemented by MAP

proposed_end_date

The form field proposed_end_date is implemented by DATE_YMD

proposed_hiring_date

The form field proposed_hiring_date is implemented by DATE_YMD

posted_date

The form field posted_date is implemented by DATE_YMD

status

The form field status is implemented by MAP

comments

The form field comments is implemented by STRING_TEXT

interview_comments

The form field interview_comments is implemented by 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:
    • I2CE_User &$user
      The user performing this action.
    • integer $person_id
      The person being assigned this position.

getSupervised()

Return the list of record ids that have this position as supervisor.

  • Signature: public function getSupervised()
  • Returns: 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()