Documentation

PermissionAssociationable

Tools to work with a permission type field.

Table of Contents

$permission  : mixed
$permissionState  : mixed
__construct()  : mixed
PermissionAssociationable constructor.
checkState()  : bool
Checks if this permission is set to a given state.
getId()  : string
Returns the permission id.
getLibrary()  : string
Returns the permission library.
getPermission()  : Permission
Returns the Permission entity.
getState()  : int
Returns the current state of the permission.
setState()  : mixed
Sets the current state of the permission.

Properties

$permission

protected mixed $permission
Tags
Id

@ManyToOne(targetEntity="LotGD\Core\Models\Permission", inversedBy="permission")

JoinColumn

(name="permission", referencedColumnName="id")

Methods

checkState()

Checks if this permission is set to a given state.

public checkState(int $state) : bool
Parameters
$state : int
Return values
bool

getId()

Returns the permission id.

public getId() : string
Tags
see

Permission->getId()

Return values
string

getLibrary()

Returns the permission library.

public getLibrary() : string
Tags
see

Permission->getLibrary()

Return values
string

setState()

Sets the current state of the permission.

public setState(int $state) : mixed
Parameters
$state : int
Return values
mixed

Search results