Class: iHRIS Competency

From IHRIS Wiki
Revision as of 11:49, 19 October 2009 by Litlfred (talk | contribs)

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