Class: iHRIS Position
This article describes the class iHRIS_Position.
- Extends the class: I2CE_List.
- Location: Part of the module ihris-manage-PersonPosition in the package iHRIS Manage
- Source: Defined in the file modules/ManagePersonPosition/lib/iHRIS_Position.php
- Author: Luke Duncan <lduncan@intrahealth.org>
- Since: v1.0.0
@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.
- I2CE_User &$user
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()