Class: iHRIS Competency: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 1: Line 1:
This article describes the class ''iHRIS_Competency''.
This article describes the class ''iHRIS_Competency''.
*Extends the class: [[Class: I2CE_List | I2CE_List]].
*Extends the class: [[Class: I2CE_List | I2CE_List]].
*Location: Part of the module [[iHRIS Module List#simple-competency|simple-competency]] in the package [https://launchpad.net/ihris-common iHRIS Common]
*Location: Part of the module [[iHRIS Common Module List#simple-competency|simple-competency]] in the package [https://launchpad.net/ihris-common iHRIS Common]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.0.0-release/annotate/head:/modules/SimpleComptency/lib/iHRIS_Competency.php modules/SimpleComptency/lib/iHRIS_Competency.php]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/ihris-common/4.0.0-release/annotate/head:/modules/SimpleComptency/lib/iHRIS_Competency.php modules/SimpleComptency/lib/iHRIS_Competency.php]
*Author: Luke Duncan <lduncan@intrahealth.org>
*Author: Luke Duncan <lduncan@intrahealth.org>

Revision as of 12:11, 19 October 2009

This article describes the class iHRIS_Competency.

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

Form Fields

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

name

The form field name is implemented by STRING_LINE

competency_type

The form field competency_type is implemented by MAP

notes

The form field notes is implemented by STRING_MLINE

Methods

getCompetenciesByType()

List all competencies by type (the linked form for this object). This will return an array that includes all competency types with all competencies that are in that type.

  • Signature: static public function getCompetenciesByType($flat,$id)
  • Parameters:
    • boolean $flat
      If false. returns array indexed by compentency id, then comptentcy_type name. Otherwise it returns an array indexed by compenety_type name
      • Default Value: true
    • string $id
      Defaults to null. If non-null it is the id of the competency to limit to. in which case we simply return the comptenty_type and and comptenecy name
      • Default Value: null
  • Returns: array

getCompetencyWithType()

  • Signature: public function getCompetencyWithType($id)
  • Parameters:
    • $id