Class: iHRIS Competency: 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]] | ||
==name== | ==name== | ||
The form field ''name'' is implemented by [[Class: I2CE_FormField_STRING_LINE |STRING_LINE ]] | |||
==competency_type== | ==competency_type== | ||
The form field ''competency_type'' is implemented by [[Class: I2CE_FormField_MAP |MAP ]] | |||
==notes== | ==notes== | ||
The form field ''notes'' is implemented by [[Class: I2CE_FormField_STRING_MLINE |STRING_MLINE ]] | |||
==Methods== | ==Methods== | ||
===getCompetenciesByType()=== | ===getCompetenciesByType()=== |
Revision as of 11:49, 19 October 2009
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