ZenphotoCMS 1.6.2

user_groups

Table of Contents

Methods

admin_alterrights()  : mixed
admin_tabs()  : mixed
edit_admin()  : string
Returns table row(s) for edit of an admin user's custom data
groupList()  : mixed
merge_rights()  : mixed
Merges rights for multiple group memebership or templates
save_admin()  : bool
Saves admin custom data Called when an admin is saved

Methods

admin_alterrights()

public static admin_alterrights(mixed $alterrights, mixed $userobj) : mixed
Parameters
$alterrights : mixed
$userobj : mixed

admin_tabs()

public static admin_tabs(mixed $tabs) : mixed
Parameters
$tabs : mixed

edit_admin()

Returns table row(s) for edit of an admin user's custom data

public static edit_admin(string $html,  $userobj, string $i, string $background, bool $current) : string
Parameters
$html : string
$userobj :

Admin object

$i : string

prefix for the admin

$background : string

background color for the admin row

$current : bool

true if this admin row is the logged in admin

Return values
string

groupList()

public static groupList(mixed $userobj, mixed $i, mixed $background, mixed $current, mixed $template) : mixed
Parameters
$userobj : mixed
$i : mixed
$background : mixed
$current : mixed
$template : mixed

merge_rights()

Merges rights for multiple group memebership or templates

public static merge_rights(object $userobj, array<string|int, mixed> $groups) : mixed
Parameters
$userobj : object
$groups : array<string|int, mixed>

save_admin()

Saves admin custom data Called when an admin is saved

public static save_admin(string $updated, object $userobj, string $i, bool $alter) : bool
Parameters
$updated : string

true if there has been an update to the user

$userobj : object

admin user object

$i : string

prefix for the admin

$alter : bool

will be true if critical admin data may be altered

Return values
bool

        
On this page

Search results