Class: iHRIS Position: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 1: Line 1:
__PAGE:Class: iHRIS_Position
This article describes the class ''iHRIS_Position''.
This article desrcibes the [[Defining Forms#Dynamic Creation|dynamically]] created class ''iHRIS_Position''.
*Extends the class: [[Class: I2CE_List | I2CE_List]].
*Extends the class: [[Class: I2CE_List | I2CE_List]].
*Parent Classses:  [[Class: I2CE_List | I2CE_List]] [[Class: I2CE_Form | I2CE_Form]] [[Class: I2CE_Fuzzy | I2CE_Fuzzy]]
*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: It is defined in configuration magic data 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==
==Form Fields==
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 is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
==code==
*job is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''code'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
*title is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
==job==
*description is implemented by [[Class: I2CE_FormField_STRING_MLINE |STRING_MLINE ]]
The form field ''job'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
*proposed_salary is implemented by [[Class: iHRIS_FormField_CURRENCY |CURRENCY ]]
==title==
*source is implemented by [[Class: I2CE_FormField_MAP_MULT |MAP_MULT ]]
The form field ''title'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]]
*supervisor is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==description==
*facility is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''description'' is implemented by [[Class: I2CE_FormField_STRING_MLINE |STRING_MLINE ]]
*department is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==proposed_salary==
*pos_type is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''proposed_salary'' is implemented by [[Class: iHRIS_FormField_CURRENCY |CURRENCY ]]
*proposed_end_date is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
==source==
*proposed_hiring_date is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
The form field ''source'' is implemented by [[Class: I2CE_FormField_MAP_MULT |MAP_MULT ]]
*posted_date is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
==supervisor==
*status is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
The form field ''supervisor'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
*comments is implemented by [[Class: I2CE_FormField_STRING_TEXT |STRING_TEXT ]]
==facility==
*interview_comments is implemented by [[Class: I2CE_FormField_STRING_TEXT |STRING_TEXT ]]
The form field ''facility'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
==Inherited Methods==
==department==
===componentizeQuery()===
The form field ''department'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
This public method is inherited from [[Class: I2CE_List#componentizeQuery() | I2CE_List->componentizeQuery()]]
==pos_type==
 
The form field ''pos_type'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
===createDataTree()===
==proposed_end_date==
This public method is inherited from [[Class: I2CE_List#createDataTree() | I2CE_List->createDataTree()]]
The form field ''proposed_end_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
 
==proposed_hiring_date==
===flattenDataTree()===
The form field ''proposed_hiring_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
This public method is inherited from [[Class: I2CE_List#flattenDataTree() | I2CE_List->flattenDataTree()]]
==posted_date==
 
The form field ''posted_date'' is implemented by [[Class: I2CE_FormField_DATE_YMD |DATE_YMD ]]
===getDisplayFields()===
==status==
This public method is inherited from [[Class: I2CE_List#getDisplayFields() | I2CE_List->getDisplayFields()]]
The form field ''status'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]]
 
==comments==
===getExtendedDisplay()===
The form field ''comments'' is implemented by [[Class: I2CE_FormField_STRING_TEXT |STRING_TEXT ]]
This public method is inherited from [[Class: I2CE_List#getExtendedDisplay() | I2CE_List->getExtendedDisplay()]]
==interview_comments==
 
The form field ''interview_comments'' is implemented by [[Class: I2CE_FormField_STRING_TEXT |STRING_TEXT ]]
===getHTMLTemplate()===
==Constants==
This public method is inherited from [[Class: I2CE_List#getHTMLTemplate() | I2CE_List->getHTMLTemplate()]]
===iHRIS_Position::MAIN_FIELD===
 
The main field name used for display a description of a record.
===getListType()===
Defined as: "code"
This public method is inherited from [[Class: I2CE_List#getListType() | I2CE_List->getListType()]]
===iHRIS_Position::SEC_FIELD===
 
The secondary field name used for displaying a description of a record in combination with the MAIN_FIELD.
===getSortFields()===
Defined as: "title"
This public method is inherited from [[Class: I2CE_List#getSortFields() | I2CE_List->getSortFields()]]
==Methods==
 
===closePosition()===
===listOptions()===
Mark this position as closed and remove it from any applications. The person being assigned the position will have all application positions removed.
This public method is inherited from [[Class: I2CE_List#listOptions() | I2CE_List->listOptions()]]
*Signature: public function closePosition($user,$person_id)
 
*Parameters:
===lookup()===
** [[Class: I2CE_User | I2CE_User]] &$user <br/>The user performing this action.
This public method is inherited from [[Class: I2CE_List#lookup() | I2CE_List->lookup()]]
** integer $person_id <br/>The person being assigned this position.
 
===getSupervised()===
===monsterMash()===
Return the list of record ids that have this position as supervisor.
This public method is inherited from [[Class: I2CE_List#monsterMash() | I2CE_List->monsterMash()]]
*Signature: public function getSupervised()
 
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]
===name()===
===setStatus()===
This public method is inherited from [[Class: I2CE_List#name() | I2CE_List->name()]]
Update the status for this position.
 
*Signature: public function setStatus($status)
===setDisplayData()===
*Parameters:
This public method is inherited from [[Class: I2CE_List#setDisplayData() | I2CE_List->setDisplayData()]]
** integer $status
 
===statusOnly()===
===walkupFieldPath()===
Remove all fields except for the status when only dealing with status updates.
This public method is inherited from [[Class: I2CE_List#walkupFieldPath() | I2CE_List->walkupFieldPath()]]
*Signature: public function statusOnly()
 
===_flattenDataTree()===
This protected method is inherited from [[Class: I2CE_List#_flattenDataTree() | I2CE_List->_flattenDataTree()]]
 
===_monsterMash()===
This protected method is inherited from [[Class: I2CE_List#_monsterMash() | I2CE_List->_monsterMash()]]
 
===addCache()===
This protected method is inherited from [[Class: I2CE_List#addCache() | I2CE_List->addCache()]]
 
===getCache()===
This protected method is inherited from [[Class: I2CE_List#getCache() | I2CE_List->getCache()]]
 
===isCached()===
This protected method is inherited from [[Class: I2CE_List#isCached() | I2CE_List->isCached()]]
 
===__construct()===
This public method is inherited from [[Class: I2CE_Form#__construct() | I2CE_Form->__construct()]]
 
===addChildForm()===
This public method is inherited from [[Class: I2CE_Form#addChildForm() | I2CE_Form->addChildForm()]]
 
===addField()===
This public method is inherited from [[Class: I2CE_Form#addField() | I2CE_Form->addField()]]
 
===cleanup()===
This public method is inherited from [[Class: I2CE_Form#cleanup() | I2CE_Form->cleanup()]]
 
===clearFields()===
This public method is inherited from [[Class: I2CE_Form#clearFields() | I2CE_Form->clearFields()]]
 
===current()===
This public method is inherited from [[Class: I2CE_Form#current() | I2CE_Form->current()]]
 
===displayField()===
This public method is inherited from [[Class: I2CE_Form#displayField() | I2CE_Form->displayField()]]
 
===form()===
This public method is inherited from [[Class: I2CE_Form#form() | I2CE_Form->form()]]
 
===getAllowedParentForms()===
This public method is inherited from [[Class: I2CE_Form#getAllowedParentForms() | I2CE_Form->getAllowedParentForms()]]
 
===getAttribute()===
This public method is inherited from [[Class: I2CE_Form#getAttribute() | I2CE_Form->getAttribute()]]
 
===getChildForms()===
This public method is inherited from [[Class: I2CE_Form#getChildForms() | I2CE_Form->getChildForms()]]
 
===getChildFormsByForm()===
This public method is inherited from [[Class: I2CE_Form#getChildFormsByForm() | I2CE_Form->getChildFormsByForm()]]
 
===getChildren()===
This public method is inherited from [[Class: I2CE_Form#getChildren() | I2CE_Form->getChildren()]]
 
===getDisplayName()===
This public method is inherited from [[Class: I2CE_Form#getDisplayName() | I2CE_Form->getDisplayName()]]
 
===getField()===
This public method is inherited from [[Class: I2CE_Form#getField() | I2CE_Form->getField()]]
 
===getFieldNames()===
This public method is inherited from [[Class: I2CE_Form#getFieldNames() | I2CE_Form->getFieldNames()]]
 
===getFormId()===
This public method is inherited from [[Class: I2CE_Form#getFormId() | I2CE_Form->getFormId()]]
 
===getHTMLName()===
This public method is inherited from [[Class: I2CE_Form#getHTMLName() | I2CE_Form->getHTMLName()]]
 
===getId()===
This public method is inherited from [[Class: I2CE_Form#getId() | I2CE_Form->getId()]]
 
===getParent()===
This public method is inherited from [[Class: I2CE_Form#getParent() | I2CE_Form->getParent()]]
 
===getParentForm()===
This public method is inherited from [[Class: I2CE_Form#getParentForm() | I2CE_Form->getParentForm()]]
 
===getParentID()===
This public method is inherited from [[Class: I2CE_Form#getParentID() | I2CE_Form->getParentID()]]
 
===getQueryDisplay()===
This public method is inherited from [[Class: I2CE_Form#getQueryDisplay() | I2CE_Form->getQueryDisplay()]]
 
===getQueryFields()===
This public method is inherited from [[Class: I2CE_Form#getQueryFields() | I2CE_Form->getQueryFields()]]
 
===getQueryString()===
This public method is inherited from [[Class: I2CE_Form#getQueryString() | I2CE_Form->getQueryString()]]
 
===hasAttribute()===
This public method is inherited from [[Class: I2CE_Form#hasAttribute() | I2CE_Form->hasAttribute()]]
 
===hasInvalid()===
This public method is inherited from [[Class: I2CE_Form#hasInvalid() | I2CE_Form->hasInvalid()]]
 
===key()===
This public method is inherited from [[Class: I2CE_Form#key() | I2CE_Form->key()]]
 
===listFields()===
This public method is inherited from [[Class: I2CE_Form#listFields() | I2CE_Form->listFields()]]
 
===load()===
This public method is inherited from [[Class: I2CE_Form#load() | I2CE_Form->load()]]
 
===next()===
This public method is inherited from [[Class: I2CE_Form#next() | I2CE_Form->next()]]
 
===processDOM()===
This public method is inherited from [[Class: I2CE_Form#processDOM() | I2CE_Form->processDOM()]]
 
===removeField()===
This public method is inherited from [[Class: I2CE_Form#removeField() | I2CE_Form->removeField()]]
 
===reset()===
This public method is inherited from [[Class: I2CE_Form#reset() | I2CE_Form->reset()]]
 
===rewind()===
This public method is inherited from [[Class: I2CE_Form#rewind() | I2CE_Form->rewind()]]
 
===search()===
This public method is inherited from [[Class: I2CE_Form#search() | I2CE_Form->search()]]
 
===setAttribute()===
This public method is inherited from [[Class: I2CE_Form#setAttribute() | I2CE_Form->setAttribute()]]
 
===setDisplayName()===
This public method is inherited from [[Class: I2CE_Form#setDisplayName() | I2CE_Form->setDisplayName()]]
 
===setForm()===
This public method is inherited from [[Class: I2CE_Form#setForm() | I2CE_Form->setForm()]]
 
===setFromPost()===
This public method is inherited from [[Class: I2CE_Form#setFromPost() | I2CE_Form->setFromPost()]]
 
===setId()===
This public method is inherited from [[Class: I2CE_Form#setId() | I2CE_Form->setId()]]
 
===setParent()===
This public method is inherited from [[Class: I2CE_Form#setParent() | I2CE_Form->setParent()]]
 
===valid()===
This public method is inherited from [[Class: I2CE_Form#valid() | I2CE_Form->valid()]]
 
===validate()===
This public method is inherited from [[Class: I2CE_Form#validate() | I2CE_Form->validate()]]
 
===__get()===
This protected method is inherited from [[Class: I2CE_Form#__get() | I2CE_Form->__get()]]
 
===__isset()===
This protected method is inherited from [[Class: I2CE_Form#__isset() | I2CE_Form->__isset()]]
 
===__set()===
This protected method is inherited from [[Class: I2CE_Form#__set() | I2CE_Form->__set()]]
 
===__unset()===
This protected method is inherited from [[Class: I2CE_Form#__unset() | I2CE_Form->__unset()]]
 
===addFormFields()===
This protected method is inherited from [[Class: I2CE_Form#addFormFields() | I2CE_Form->addFormFields()]]
 
===getFormFieldsData()===
This protected method is inherited from [[Class: I2CE_Form#getFormFieldsData() | I2CE_Form->getFormFieldsData()]]
 
===lookupArray()===
This protected method is inherited from [[Class: I2CE_Form#lookupArray() | I2CE_Form->lookupArray()]]
 
===_hasMethod()===
This public method is inherited from [[Class: I2CE_Fuzzy#_hasMethod() | I2CE_Fuzzy->_hasMethod()]]
==Inherited Variables==
===$cache===
Theis protected variable is inherited from [[Class: I2CE_List#$cache | I2CE_List->$cache]]
 
===$children===
Theis public variable is inherited from [[Class: I2CE_Form#$children | I2CE_Form->$children]]
 
===$fields===
Theis protected variable is inherited from [[Class: I2CE_Form#$fields | I2CE_Form->$fields]]
 
===$parent===
Theis protected variable is inherited from [[Class: I2CE_Form#$parent | I2CE_Form->$parent]]
 
===$id===
Theis protected variable is inherited from [[Class: I2CE_Form#$id | I2CE_Form->$id]]
 
===$attributes===
Theis protected variable is inherited from [[Class: I2CE_Form#$attributes | I2CE_Form->$attributes]]
 
===$parent_forms===
Theis protected variable is inherited from [[Class: I2CE_Form#$parent_forms | I2CE_Form->$parent_forms]]
==Inherited Fuzzy Methods==
===isNumeric()===
This method is inherited from [[Class: I2CE_Form#isNumeric() | I2CE_Form->isNumeric()]]
 
===getLimitStyles()===
This method is inherited from [[Class: I2CE_Form#getLimitStyles() | I2CE_Form->getLimitStyles()]]
 
===checkLimit()===
This method is inherited from [[Class: I2CE_Form#checkLimit() | I2CE_Form->checkLimit()]]
 
===checkWhereClause()===
This method is inherited from [[Class: I2CE_Form#checkWhereClause() | I2CE_Form->checkWhereClause()]]
 
===createCheckFunction()===
This method is inherited from [[Class: I2CE_Form#createCheckFunction() | I2CE_Form->createCheckFunction()]]
 
===createCheckLimitString()===
This method is inherited from [[Class: I2CE_Form#createCheckLimitString() | I2CE_Form->createCheckLimitString()]]
 
===generateLimit()===
This method is inherited from [[Class: I2CE_Form#generateLimit() | I2CE_Form->generateLimit()]]
 
===generateWhereClause()===
This method is inherited from [[Class: I2CE_Form#generateWhereClause() | I2CE_Form->generateWhereClause()]]
 
===processLimit()===
This method is inherited from [[Class: I2CE_Form#processLimit() | I2CE_Form->processLimit()]]
 
===getDisplayedExistingLimit()===
This method is inherited from [[Class: I2CE_Form#getDisplayedExistingLimit() | I2CE_Form->getDisplayedExistingLimit()]]
 
===isComponentized()===
This method is inherited from [[Class: I2CE_Form#isComponentized() | I2CE_Form->isComponentized()]]
 
===addChild()===
This method is inherited from [[Class: I2CE_Form#addChild() | I2CE_Form->addChild()]]
 
===getChildIds()===
This method is inherited from [[Class: I2CE_Form#getChildIds() | I2CE_Form->getChildIds()]]
 
===getStorage()===
This method is inherited from [[Class: I2CE_Form#getStorage() | I2CE_Form->getStorage()]]
 
===isWritable()===
This method is inherited from [[Class: I2CE_Form#isWritable() | I2CE_Form->isWritable()]]
 
===populate()===
This method is inherited from [[Class: I2CE_Form#populate() | I2CE_Form->populate()]]
 
===populateChild()===
This method is inherited from [[Class: I2CE_Form#populateChild() | I2CE_Form->populateChild()]]
 
===populateChildren()===
This method is inherited from [[Class: I2CE_Form#populateChildren() | I2CE_Form->populateChildren()]]
 
===populateFirst()===
This method is inherited from [[Class: I2CE_Form#populateFirst() | I2CE_Form->populateFirst()]]
 
===populateHistory()===
This method is inherited from [[Class: I2CE_Form#populateHistory() | I2CE_Form->populateHistory()]]
 
===populateLast()===
This method is inherited from [[Class: I2CE_Form#populateLast() | I2CE_Form->populateLast()]]
 
===delete()===
This method is inherited from [[Class: I2CE_Form#delete() | I2CE_Form->delete()]]
 
===save()===
This method is inherited from [[Class: I2CE_Form#save() | I2CE_Form->save()]]
 
===setChangeType()===
This method is inherited from [[Class: I2CE_Form#setChangeType() | I2CE_Form->setChangeType()]]
 
===userMessage()===
This method is inherited from [[Class: I2CE_Fuzzy#userMessage() | I2CE_Fuzzy->userMessage()]]
==Inherited Methods==
===componentizeQuery()===
This public method is inherited from [[Class: I2CE_List#componentizeQuery() | I2CE_List->componentizeQuery()]]
 
===createDataTree()===
This public method is inherited from [[Class: I2CE_List#createDataTree() | I2CE_List->createDataTree()]]
 
===flattenDataTree()===
This public method is inherited from [[Class: I2CE_List#flattenDataTree() | I2CE_List->flattenDataTree()]]
 
===getDisplayFields()===
This public method is inherited from [[Class: I2CE_List#getDisplayFields() | I2CE_List->getDisplayFields()]]
 
===getExtendedDisplay()===
This public method is inherited from [[Class: I2CE_List#getExtendedDisplay() | I2CE_List->getExtendedDisplay()]]
 
===getHTMLTemplate()===
This public method is inherited from [[Class: I2CE_List#getHTMLTemplate() | I2CE_List->getHTMLTemplate()]]
 
===getListType()===
This public method is inherited from [[Class: I2CE_List#getListType() | I2CE_List->getListType()]]
 
===getSortFields()===
This public method is inherited from [[Class: I2CE_List#getSortFields() | I2CE_List->getSortFields()]]
 
===listOptions()===
This public method is inherited from [[Class: I2CE_List#listOptions() | I2CE_List->listOptions()]]
 
===lookup()===
This public method is inherited from [[Class: I2CE_List#lookup() | I2CE_List->lookup()]]
 
===monsterMash()===
This public method is inherited from [[Class: I2CE_List#monsterMash() | I2CE_List->monsterMash()]]
 
===name()===
This public method is inherited from [[Class: I2CE_List#name() | I2CE_List->name()]]
 
===setDisplayData()===
This public method is inherited from [[Class: I2CE_List#setDisplayData() | I2CE_List->setDisplayData()]]
 
===walkupFieldPath()===
This public method is inherited from [[Class: I2CE_List#walkupFieldPath() | I2CE_List->walkupFieldPath()]]
 
===_flattenDataTree()===
This protected method is inherited from [[Class: I2CE_List#_flattenDataTree() | I2CE_List->_flattenDataTree()]]
 
===_monsterMash()===
This protected method is inherited from [[Class: I2CE_List#_monsterMash() | I2CE_List->_monsterMash()]]
 
===addCache()===
This protected method is inherited from [[Class: I2CE_List#addCache() | I2CE_List->addCache()]]
 
===getCache()===
This protected method is inherited from [[Class: I2CE_List#getCache() | I2CE_List->getCache()]]
 
===isCached()===
This protected method is inherited from [[Class: I2CE_List#isCached() | I2CE_List->isCached()]]
 
===__construct()===
This public method is inherited from [[Class: I2CE_Form#__construct() | I2CE_Form->__construct()]]
 
===addChildForm()===
This public method is inherited from [[Class: I2CE_Form#addChildForm() | I2CE_Form->addChildForm()]]
 
===addField()===
This public method is inherited from [[Class: I2CE_Form#addField() | I2CE_Form->addField()]]
 
===cleanup()===
This public method is inherited from [[Class: I2CE_Form#cleanup() | I2CE_Form->cleanup()]]
 
===clearFields()===
This public method is inherited from [[Class: I2CE_Form#clearFields() | I2CE_Form->clearFields()]]
 
===current()===
This public method is inherited from [[Class: I2CE_Form#current() | I2CE_Form->current()]]
 
===displayField()===
This public method is inherited from [[Class: I2CE_Form#displayField() | I2CE_Form->displayField()]]
 
===form()===
This public method is inherited from [[Class: I2CE_Form#form() | I2CE_Form->form()]]
 
===getAllowedParentForms()===
This public method is inherited from [[Class: I2CE_Form#getAllowedParentForms() | I2CE_Form->getAllowedParentForms()]]
 
===getAttribute()===
This public method is inherited from [[Class: I2CE_Form#getAttribute() | I2CE_Form->getAttribute()]]
 
===getChildForms()===
This public method is inherited from [[Class: I2CE_Form#getChildForms() | I2CE_Form->getChildForms()]]
 
===getChildFormsByForm()===
This public method is inherited from [[Class: I2CE_Form#getChildFormsByForm() | I2CE_Form->getChildFormsByForm()]]
 
===getChildren()===
This public method is inherited from [[Class: I2CE_Form#getChildren() | I2CE_Form->getChildren()]]
 
===getDisplayName()===
This public method is inherited from [[Class: I2CE_Form#getDisplayName() | I2CE_Form->getDisplayName()]]
 
===getField()===
This public method is inherited from [[Class: I2CE_Form#getField() | I2CE_Form->getField()]]
 
===getFieldNames()===
This public method is inherited from [[Class: I2CE_Form#getFieldNames() | I2CE_Form->getFieldNames()]]
 
===getFormId()===
This public method is inherited from [[Class: I2CE_Form#getFormId() | I2CE_Form->getFormId()]]
 
===getHTMLName()===
This public method is inherited from [[Class: I2CE_Form#getHTMLName() | I2CE_Form->getHTMLName()]]
 
===getId()===
This public method is inherited from [[Class: I2CE_Form#getId() | I2CE_Form->getId()]]
 
===getParent()===
This public method is inherited from [[Class: I2CE_Form#getParent() | I2CE_Form->getParent()]]
 
===getParentForm()===
This public method is inherited from [[Class: I2CE_Form#getParentForm() | I2CE_Form->getParentForm()]]
 
===getParentID()===
This public method is inherited from [[Class: I2CE_Form#getParentID() | I2CE_Form->getParentID()]]
 
===getQueryDisplay()===
This public method is inherited from [[Class: I2CE_Form#getQueryDisplay() | I2CE_Form->getQueryDisplay()]]
 
===getQueryFields()===
This public method is inherited from [[Class: I2CE_Form#getQueryFields() | I2CE_Form->getQueryFields()]]
 
===getQueryString()===
This public method is inherited from [[Class: I2CE_Form#getQueryString() | I2CE_Form->getQueryString()]]
 
===hasAttribute()===
This public method is inherited from [[Class: I2CE_Form#hasAttribute() | I2CE_Form->hasAttribute()]]
 
===hasInvalid()===
This public method is inherited from [[Class: I2CE_Form#hasInvalid() | I2CE_Form->hasInvalid()]]
 
===key()===
This public method is inherited from [[Class: I2CE_Form#key() | I2CE_Form->key()]]
 
===listFields()===
This public method is inherited from [[Class: I2CE_Form#listFields() | I2CE_Form->listFields()]]
 
===load()===
This public method is inherited from [[Class: I2CE_Form#load() | I2CE_Form->load()]]
 
===next()===
This public method is inherited from [[Class: I2CE_Form#next() | I2CE_Form->next()]]
 
===processDOM()===
This public method is inherited from [[Class: I2CE_Form#processDOM() | I2CE_Form->processDOM()]]
 
===removeField()===
This public method is inherited from [[Class: I2CE_Form#removeField() | I2CE_Form->removeField()]]
 
===reset()===
This public method is inherited from [[Class: I2CE_Form#reset() | I2CE_Form->reset()]]
 
===rewind()===
This public method is inherited from [[Class: I2CE_Form#rewind() | I2CE_Form->rewind()]]
 
===search()===
This public method is inherited from [[Class: I2CE_Form#search() | I2CE_Form->search()]]
 
===setAttribute()===
This public method is inherited from [[Class: I2CE_Form#setAttribute() | I2CE_Form->setAttribute()]]
 
===setDisplayName()===
This public method is inherited from [[Class: I2CE_Form#setDisplayName() | I2CE_Form->setDisplayName()]]
 
===setForm()===
This public method is inherited from [[Class: I2CE_Form#setForm() | I2CE_Form->setForm()]]
 
===setFromPost()===
This public method is inherited from [[Class: I2CE_Form#setFromPost() | I2CE_Form->setFromPost()]]
 
===setId()===
This public method is inherited from [[Class: I2CE_Form#setId() | I2CE_Form->setId()]]
 
===setParent()===
This public method is inherited from [[Class: I2CE_Form#setParent() | I2CE_Form->setParent()]]
 
===valid()===
This public method is inherited from [[Class: I2CE_Form#valid() | I2CE_Form->valid()]]
 
===validate()===
This public method is inherited from [[Class: I2CE_Form#validate() | I2CE_Form->validate()]]
 
===__get()===
This protected method is inherited from [[Class: I2CE_Form#__get() | I2CE_Form->__get()]]
 
===__isset()===
This protected method is inherited from [[Class: I2CE_Form#__isset() | I2CE_Form->__isset()]]
 
===__set()===
This protected method is inherited from [[Class: I2CE_Form#__set() | I2CE_Form->__set()]]
 
===__unset()===
This protected method is inherited from [[Class: I2CE_Form#__unset() | I2CE_Form->__unset()]]
 
===addFormFields()===
This protected method is inherited from [[Class: I2CE_Form#addFormFields() | I2CE_Form->addFormFields()]]
 
===getFormFieldsData()===
This protected method is inherited from [[Class: I2CE_Form#getFormFieldsData() | I2CE_Form->getFormFieldsData()]]
 
===lookupArray()===
This protected method is inherited from [[Class: I2CE_Form#lookupArray() | I2CE_Form->lookupArray()]]
 
===_hasMethod()===
This public method is inherited from [[Class: I2CE_Fuzzy#_hasMethod() | I2CE_Fuzzy->_hasMethod()]]
==Inherited Variables==
===$cache===
Theis protected variable is inherited from [[Class: I2CE_List#$cache | I2CE_List->$cache]]
 
===$children===
Theis public variable is inherited from [[Class: I2CE_Form#$children | I2CE_Form->$children]]
 
===$fields===
Theis protected variable is inherited from [[Class: I2CE_Form#$fields | I2CE_Form->$fields]]
 
===$parent===
Theis protected variable is inherited from [[Class: I2CE_Form#$parent | I2CE_Form->$parent]]
 
===$id===
Theis protected variable is inherited from [[Class: I2CE_Form#$id | I2CE_Form->$id]]
 
===$attributes===
Theis protected variable is inherited from [[Class: I2CE_Form#$attributes | I2CE_Form->$attributes]]
 
===$parent_forms===
Theis protected variable is inherited from [[Class: I2CE_Form#$parent_forms | I2CE_Form->$parent_forms]]
==Inherited Fuzzy Methods==
===isNumeric()===
This method is inherited from [[Class: I2CE_Form#isNumeric() | I2CE_Form->isNumeric()]]
 
===getLimitStyles()===
This method is inherited from [[Class: I2CE_Form#getLimitStyles() | I2CE_Form->getLimitStyles()]]
 
===checkLimit()===
This method is inherited from [[Class: I2CE_Form#checkLimit() | I2CE_Form->checkLimit()]]
 
===checkWhereClause()===
This method is inherited from [[Class: I2CE_Form#checkWhereClause() | I2CE_Form->checkWhereClause()]]
 
===createCheckFunction()===
This method is inherited from [[Class: I2CE_Form#createCheckFunction() | I2CE_Form->createCheckFunction()]]
 
===createCheckLimitString()===
This method is inherited from [[Class: I2CE_Form#createCheckLimitString() | I2CE_Form->createCheckLimitString()]]
 
===generateLimit()===
This method is inherited from [[Class: I2CE_Form#generateLimit() | I2CE_Form->generateLimit()]]
 
===generateWhereClause()===
This method is inherited from [[Class: I2CE_Form#generateWhereClause() | I2CE_Form->generateWhereClause()]]
 
===processLimit()===
This method is inherited from [[Class: I2CE_Form#processLimit() | I2CE_Form->processLimit()]]
 
===getDisplayedExistingLimit()===
This method is inherited from [[Class: I2CE_Form#getDisplayedExistingLimit() | I2CE_Form->getDisplayedExistingLimit()]]
 
===isComponentized()===
This method is inherited from [[Class: I2CE_Form#isComponentized() | I2CE_Form->isComponentized()]]
 
===addChild()===
This method is inherited from [[Class: I2CE_Form#addChild() | I2CE_Form->addChild()]]
 
===getChildIds()===
This method is inherited from [[Class: I2CE_Form#getChildIds() | I2CE_Form->getChildIds()]]
 
===getStorage()===
This method is inherited from [[Class: I2CE_Form#getStorage() | I2CE_Form->getStorage()]]
 
===isWritable()===
This method is inherited from [[Class: I2CE_Form#isWritable() | I2CE_Form->isWritable()]]
 
===populate()===
This method is inherited from [[Class: I2CE_Form#populate() | I2CE_Form->populate()]]
 
===populateChild()===
This method is inherited from [[Class: I2CE_Form#populateChild() | I2CE_Form->populateChild()]]
 
===populateChildren()===
This method is inherited from [[Class: I2CE_Form#populateChildren() | I2CE_Form->populateChildren()]]
 
===populateFirst()===
This method is inherited from [[Class: I2CE_Form#populateFirst() | I2CE_Form->populateFirst()]]
 
===populateHistory()===
This method is inherited from [[Class: I2CE_Form#populateHistory() | I2CE_Form->populateHistory()]]
 
===populateLast()===
This method is inherited from [[Class: I2CE_Form#populateLast() | I2CE_Form->populateLast()]]
 
===delete()===
This method is inherited from [[Class: I2CE_Form#delete() | I2CE_Form->delete()]]
 
===save()===
This method is inherited from [[Class: I2CE_Form#save() | I2CE_Form->save()]]
 
===setChangeType()===
This method is inherited from [[Class: I2CE_Form#setChangeType() | I2CE_Form->setChangeType()]]
 
===userMessage()===
This method is inherited from [[Class: I2CE_Fuzzy#userMessage() | I2CE_Fuzzy->userMessage()]]




[[Category:Class Documentation]]
[[Category:Class Documentation]]

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