phpDocumentor

AdminAccessUser
in package
implements AdminAccessUserInterface

Class AdminAccessUser

A User is a representation of an user with administration rights. Since all users are stored in the customers table of the shop system, the term "customerId" is used to identify such an user. Apart from the ID the user has a collection of roles.

Tags
category

System

subpackage

Entities

Interfaces, Classes and Traits

AdminAccessUserInterface
Interface AdminAccessUserInterface

Table of Contents

$customerId  : int
$deletingUnknownGroupGranted  : bool
$readingUnknownGroupGranted  : bool
$roles  : AdminAccessRoleCollection|AbstractCollection
$userDeleter  : AdminAccessUserDeleterInterface
$userWriter  : AdminAccessUserWriterInterface
$writingUnknownGroupGranted  : bool
__construct()  : mixed
AdminAccessUser constructor.
addNewRole()  : AdminAccessUserInterface
Adds a role to this user.
checkDeletingPermission()  : bool
Checks deleting permission for a given group.
checkDeletingPermissionForUnknownGroup()  : bool
Checks deleting permission for an unknown group.
checkReadingPermission()  : bool
Checks reading permission for a given group.
checkReadingPermissionForUnknownGroup()  : bool
Checks reading permission for an unknown group.
checkWritingPermission()  : bool
Checks writing permission for a given group.
checkWritingPermissionForUnknownGroup()  : bool
Checks writing permission for an unknown group.
delete()  : AdminAccessUserInterface
Deletes an user from the database.
getId()  : int
Returns the user id.
getRoles()  : AbstractCollection|AdminAccessRoleCollection
Returns the user roles.
removeRole()  : AdminAccessUserInterface
Removes role from this user.
setCustomerId()  : AdminAccessUserInterface
Sets the customer ID.
setRoles()  : AdminAccessUserInterface
Sets the user roles.
update()  : AdminAccessUserInterface
Stores/Updates an user into/from the database.

Properties

Methods

checkDeletingPermissionForUnknownGroup()

Checks deleting permission for an unknown group.

public checkDeletingPermissionForUnknownGroup() : bool
Return values
bool

True if deleting permission for an unknown group is granted, false otherwise.

checkReadingPermissionForUnknownGroup()

Checks reading permission for an unknown group.

public checkReadingPermissionForUnknownGroup() : bool
Return values
bool

True if reading permission for an unknown group is granted, false otherwise.

checkWritingPermissionForUnknownGroup()

Checks writing permission for an unknown group.

public checkWritingPermissionForUnknownGroup() : bool
Return values
bool

True if writing permission for an unknown group is granted, false otherwise.

Search results