Class: iHRIS Competency
From IHRIS Wiki
This article describes the class iHRIS_Competency.
- Extends the class: I2CE_List.
- Location: Part of the module simple-competency in the package iHRIS Common
- Source: Defined in the file modules/SimpleComptency/lib/iHRIS_Competency.php
- Author: Luke Duncan <lduncan@intrahealth.org>
- Since: v1.0.0
@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
- boolean $flat
- Returns: array
getCompetencyWithType()
- Signature: public function getCompetencyWithType($id)
- Parameters:
- $id