dolibarr 21.0.0-alpha
usergroups.lib.php File Reference

Set of function to manage users, groups and permissions. More...

Go to the source code of this file.

Functions

 user_prepare_head (User $object)
 Prepare array with list of tabs.
 
 group_prepare_head ($object)
 Prepare array with list of tabs.
 
 user_admin_prepare_head ()
 Prepare array with list of tabs.
 
 showSkins ($fuser, $edit=0, $foruserprofile=false)
 Show list of themes.
 

Detailed Description

Set of function to manage users, groups and permissions.

Definition in file usergroups.lib.php.

Function Documentation

◆ group_prepare_head()

group_prepare_head ( $object)

Prepare array with list of tabs.

Parameters
UserGroup$objectObject group
Returns
array<array{0:string,1:string,2:string}> Array of tabs to show

Definition at line 236 of file usergroups.lib.php.

References $object, complete_head_from_modules(), and getDolGlobalString().

◆ showSkins()

showSkins ( $fuser,
$edit = 0,
$foruserprofile = false )

Show list of themes.

Show all thumbs of themes

Parameters
User | null$fuserUser concerned or null for global theme
int$edit1 to add edit form
boolean$foruserprofileShow for user profile view
Returns
void

Definition at line 344 of file usergroups.lib.php.

References colorArrayToHex(), colorStringToArray(), dol_buildpath(), dol_escape_htmltag(), getDolGlobalInt(), getDolGlobalString(), img_picto(), and yn().

◆ user_admin_prepare_head()

user_admin_prepare_head ( )

Prepare array with list of tabs.

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

Definition at line 285 of file usergroups.lib.php.

References complete_head_from_modules().

◆ user_prepare_head()

user_prepare_head ( User $object)

Prepare array with list of tabs.

Parameters
User$objectObject related to tabs
Returns
array<array{0:string,1:string,2:string}> Array of tabs to show

Definition at line 37 of file usergroups.lib.php.

References $object, complete_head_from_modules(), Link\count(), dol_dir_list(), dol_getcache(), dol_print_error(), dol_setcache(), dol_syslog(), and getDolGlobalString().