Class: iHRIS Module TrainingSimpleCompetency (4.0.5)
This article describes the class iHRIS_Module_TrainingSimpleCompetency .
- Extends the class: I2CE_Module.
- Location: Part of the module training-simple-competency in the package iHRIS Common 4.0.5-release
- Source: Defined in the file modules/TrainingCourse/modules/TrainingSimpleCompetency/lib/iHRIS_Module_TrainingSimpleCompetency.php on line 31
- Author: Luke Duncan <lduncan@intrahealth.org>
- Since: 3.2.3
iHRIS_Module_TrainingSimpleCompetency
Methods
assignAndEvaluateCompetencies()
Assigns compentices to a person based on the evaluation saved in a person scheduled training course
- Defined in common/modules/TrainingCourse/modules/TrainingSimpleCompetency/lib/iHRIS_Module_TrainingSimpleCompetency.php on line 211
- Signature: static public function assignAndEvaluateCompetencies($person_id,$comp_ids,$comp_eval_id,$eval_date,$only_update)
- Parameters:
- string $person_id
the id of the person form e.g. 'person|12' - array $comp_ids
of string. The ids of competencies we want to esnure a pserson has. - string $comp_eval_id
The competentcy evaluation we wish to assign to each person. - I2CE_DATE $eval_date
If null, then we use now as the date.- Default Value: null
- boolean $only_update
If true (the default) we only update existing person competencies if the last evaluation date is equal to or less than $eval_date.- Default Value: true
- string $person_id
- Returns: boolean.
True on success
assignCompetenciesFromCourseEval()
Assigns compentices to a person based on the evaluation saved in a person scheduled training course @param iHRIS_Person $parent
- Defined in common/modules/TrainingCourse/modules/TrainingSimpleCompetency/lib/iHRIS_Module_TrainingSimpleCompetency.php on line 165
- Signature: static public function assignCompetenciesFromCourseEval($person,$pstc,$eval_date)
- Parameters:
- $person
- iHRIS_Person_Scheduled_Training_Course $pstc
- I2CE_DATE $eval_date
If null, then we use now as the date.- Default Value: null
- Returns: boolean.
True on success
getAssociatedCompetencies()
Get the competencies associated to an person scheduled training course
- Defined in common/modules/TrainingCourse/modules/TrainingSimpleCompetency/lib/iHRIS_Module_TrainingSimpleCompetency.php on line 114
- Signature: static public function getAssociatedCompetencies($course)
- Parameters:
- mixed $course
Either a string, the pseron scheduled training course id, a shceduled_training course id, or a (populated) instancof iHRIS_Person_Scheduled_Training_Course or a iHRIS_Scheduled_Trianing_Course or a iRHIS_Training_Course
- mixed $course
- Returns: array
of string
pre_upgrade()
Run the pre upgrade for this module. This can use the old config data before it has been changed from the config.
- Defined in common/modules/TrainingCourse/modules/TrainingSimpleCompetency/lib/iHRIS_Module_TrainingSimpleCompetency.php on line 42
- Signature: public function pre_upgrade($old_vers,$new_vers,$new_storage)
- Parameters:
- string $old_vers
- string $new_vers
- I2CE_MagicDataNode $new_storage
- Returns: boolean
upgrade()
Upgrade this module if necessary
- Defined in common/modules/TrainingCourse/modules/TrainingSimpleCompetency/lib/iHRIS_Module_TrainingSimpleCompetency.php on line 65
- Signature: public function upgrade($old_vers,$new_vers)
- Parameters:
- Returns: boolean
Inherited Methods
__construct()
This public method is inherited from I2CE_Module->__construct()
action_configure()
This public method is inherited from I2CE_Module->action_configure()
action_disable()
This public method is inherited from I2CE_Module->action_disable()
action_enable()
This public method is inherited from I2CE_Module->action_enable()
action_initialize()
This public method is inherited from I2CE_Module->action_initialize()
getCLIHooks()
This public method is inherited from I2CE_Module->getCLIHooks()
getCLIMethods()
This public method is inherited from I2CE_Module->getCLIMethods()
getConfig()
This public method is inherited from I2CE_Module->getConfig()
getHooks()
This public method is inherited from I2CE_Module->getHooks()
getMethods()
This public method is inherited from I2CE_Module->getMethods()
post_update()
This public method is inherited from I2CE_Module->post_update()
_hasMethod()
This public method is inherited from I2CE_Fuzzy->_hasMethod()
Inherited Fuzzy Methods
launchBackgroundProcess()
This method is inherited from I2CE_Module->launchBackgroundProcess()
launchBackgroundPHPScript()
This method is inherited from I2CE_Module->launchBackgroundPHPScript()
launchBackgroundPage()
This method is inherited from I2CE_Module->launchBackgroundPage()
userMessage()
This method is inherited from I2CE_Fuzzy->userMessage()