User
in package
Represents a user account (login)
Table of Contents
- $fullname : mixed
- $id : mixed
- $password : mixed
- $restrictionSet : RestrictionSet
- $startpage : Startpage
- __construct() : mixed
- Constructor.
- getId() : mixed
- getPassword() : mixed
- getRestrictionSet() : mixed
- getStartpage() : mixed
- hasAccessTo() : mixed
- setRestrictionSet() : mixed
- setStartpage() : mixed
Properties
$fullname
private
mixed
$fullname
= ''
Tags
$id
private
mixed
$id
= ''
Tags
$password
private
mixed
$password
= ''
Tags
$restrictionSet
private
RestrictionSet
$restrictionSet
= null
(default = null, no restrictions)
Tags
$startpage
private
Startpage
$startpage
= null
Tags
Methods
__construct()
Constructor.
public
__construct(string $id, string $password[, RestrictionSet $restrictionSet = null ][, Startpage $startpage = null ]) : mixed
See CrudkitServiceProvider documentation for how to define Users.
Parameters
- $id : string
-
The (unique) id of the user
- $password : string
-
The users password
- $restrictionSet : RestrictionSet = null
-
(optional)
- $startpage : Startpage = null
-
(optional)
Tags
Return values
mixed —getId()
public
getId() : mixed
Tags
Return values
mixed —getPassword()
public
getPassword() : mixed
Tags
Return values
mixed —getRestrictionSet()
public
getRestrictionSet() : mixed
Tags
Return values
mixed —getStartpage()
public
getStartpage() : mixed
Tags
Return values
mixed —hasAccessTo()
public
hasAccessTo(string $action, string $pageId) : mixed
Parameters
- $action : string
- $pageId : string
Tags
Return values
mixed —setRestrictionSet()
public
setRestrictionSet(RestrictionSet $restrictionSet) : mixed
Parameters
- $restrictionSet : RestrictionSet
Tags
Return values
mixed —setStartpage()
public
setStartpage(Startpage $startpage) : mixed
Parameters
- $startpage : Startpage