dolibarr 21.0.0-alpha
hrm_skillrank.lib.php File Reference

Library files with common functions for SkillRank. More...

Go to the source code of this file.

Functions

 skillrankPrepareHead ($object)
 Prepare array of tabs for SkillRank.
 
 displayRankInfos ($selected_rank, $fk_skill, $inputname='TNote', $mode='view')
 Used to print ranks of a skill into several case, view or edit pour js necessary to select a rank.
 

Detailed Description

Library files with common functions for SkillRank.

Definition in file hrm_skillrank.lib.php.

Function Documentation

◆ displayRankInfos()

displayRankInfos ( $selected_rank,
$fk_skill,
$inputname = 'TNote',
$mode = 'view' )

Used to print ranks of a skill into several case, view or edit pour js necessary to select a rank.

Parameters
int$selected_rankrank we want to preselect
int$fk_skillid of skill we display ranks
string$inputnamehtml name of input
string$modeview or edit
Returns
string string result

Definition at line 108 of file hrm_skillrank.lib.php.

References setEventMessages().

◆ skillrankPrepareHead()

skillrankPrepareHead ( $object)

Prepare array of tabs for SkillRank.

Parameters
SkillRank$objectSkillRank
Returns
array<array{0:string,1:string,2:string}> Array of tabs to show

Definition at line 34 of file hrm_skillrank.lib.php.

References $object, complete_head_from_modules(), Link\count(), dol_buildpath(), dol_dir_list(), dol_sanitizeFileName(), and getDolGlobalString().