Class: iHRIS Position: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 9: Line 9:
This class is a [[Class: I2CE_Form |form class]] and provides the following [[Class: I2CE_FormField |form fields]]
This class is a [[Class: I2CE_Form |form class]] and provides the following [[Class: I2CE_FormField |form fields]]
==code==
==code==
The form field ''code'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
The form field ''code'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
==job==
==job==
The form field ''job'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''job'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==title==
==title==
The form field ''title'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
The form field ''title'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
==description==
==description==
The form field ''description'' is implemented by [[Class: I2CE_FormField_STRING_MLINE |STRING_MLINE ]]
The form field ''description'' is implemented by [[Class: I2CE_FormField_STRING_MLINE |STRING_MLINE ]]
==proposed_salary==
==proposed_salary==
The form field ''proposed_salary'' is implemented by [[Class: iHRIS_FormField_CURRENCY |CURRENCY ]]
The form field ''proposed_salary'' is implemented by [[Class: iHRIS_FormField_CURRENCY |CURRENCY ]]
==source==
==source==
The form field ''source'' is implemented by [[Class: I2CE_FormField_MAP_MULT |MAP_MULT ]]
The form field ''source'' is implemented by [[Class: I2CE_FormField_MAP_MULT |MAP_MULT ]]
==supervisor==
==supervisor==
The form field ''supervisor'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''supervisor'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==facility==
==facility==
The form field ''facility'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''facility'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==department==
==department==
The form field ''department'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''department'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==pos_type==
==pos_type==
The form field ''pos_type'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''pos_type'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==proposed_end_date==
==proposed_end_date==
The form field ''proposed_end_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
The form field ''proposed_end_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
==proposed_hiring_date==
==proposed_hiring_date==
The form field ''proposed_hiring_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
The form field ''proposed_hiring_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
==posted_date==
==posted_date==
The form field ''posted_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
The form field ''posted_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
==status==
==status==
The form field ''status'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''status'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==comments==
==comments==
The form field ''comments'' is implemented by [[Class: I2CE_FormField_STRING_TEXT |STRING_TEXT ]]
The form field ''comments'' is implemented by [[Class: I2CE_FormField_STRING_TEXT |STRING_TEXT ]]
==interview_comments==
==interview_comments==
The form field ''interview_comments'' is implemented by [[Class: I2CE_FormField_STRING_TEXT |STRING_TEXT ]]
The form field ''interview_comments'' is implemented by [[Class: I2CE_FormField_STRING_TEXT |STRING_TEXT ]]
==Constants==
==Constants==
===iHRIS_Position::MAIN_FIELD===
===iHRIS_Position::MAIN_FIELD===

Revision as of 12:52, 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()