PageGuard
in package
Handles access restriction administration on Pages.
(Retrieve / Store)
Tags
Table of Contents
Properties
- $db : mixed
Methods
- __construct() : mixed
- getAssignedGroupIds() : mixed
- Returns the group ids with access to front- or backend of a page
- getGroups() : mixed
- Returns an array of all front- or backend groups
- setAssignedGroupIds() : mixed
- getAccessId() : mixed
Properties
$db
protected
mixed
$db
= \null
Methods
__construct()
public
__construct(mixed $db) : mixed
Parameters
- $db : mixed
getAssignedGroupIds()
Returns the group ids with access to front- or backend of a page
public
getAssignedGroupIds(Page $page, bool $frontend) : mixed
Parameters
- $page : Page
-
Page to get the group ids of
- $frontend : bool
-
True for frontend access groups, false for backend
Tags
Return values
mixed —Array of group ids or false on error
getGroups()
Returns an array of all front- or backend groups
public
getGroups(bool $frontend) : mixed
Parameters
- $frontend : bool
-
True for frontend access groups, false for backend
Return values
mixed —Array (id=>name) or false on error
setAssignedGroupIds()
public
setAssignedGroupIds(mixed $page, mixed $ids, mixed $frontend) : mixed
Parameters
- $page : mixed
- $ids : mixed
- $frontend : mixed
getAccessId()
protected
getAccessId(mixed $page, mixed $frontend) : mixed
Parameters
- $page : mixed
- $frontend : mixed