Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
AclElement Class Reference

Ubiquity\security\acl\models$AclElement This class is part of Ubiquity. More...

Public Member Functions

 getRole ()
 
 getPermission ()
 
 getResource ()
 
 fromArray ($aclArray)
 
 toArray ()
 
 allow (Role $role, Resource $resource, Permission $permission)
 
 getId ()
 
 setId ($id)
 
 setRole ($role)
 
 setPermission ($permission)
 
 setResource ($resource)
 
 getType ()
 
 setType (?string $type)
 
 getId_ ()
 
 castAs (string $class)
 

Protected Attributes

 $id
 @id @column("name"=>"id","nullable"=>false,"dbType"=>"int(11)")
 
 $role
 
 $permission
 
 $resource
 
 $type =''
 

Detailed Description

Ubiquity\security\acl\models$AclElement This class is part of Ubiquity.

Author
jc
Version
1.0.2

Definition at line 16 of file AclElement.php.

Member Function Documentation

◆ allow()

allow ( Role  $role,
Resource  $resource,
Permission  $permission 
)

Definition at line 109 of file AclElement.php.

◆ castAs()

castAs ( string  $class)

Definition at line 183 of file AclElement.php.

◆ fromArray()

fromArray (   $aclArray)

Definition at line 89 of file AclElement.php.

◆ getId()

getId ( )
Returns
mixed

Definition at line 119 of file AclElement.php.

◆ getId_()

getId_ ( )

Definition at line 169 of file AclElement.php.

◆ getPermission()

getPermission ( )
Returns
Permission

Definition at line 77 of file AclElement.php.

◆ getResource()

getResource ( )
Returns
\Ubiquity\security\acl\models\Resource

Definition at line 85 of file AclElement.php.

◆ getRole()

getRole ( )
Returns
Role

Definition at line 69 of file AclElement.php.

◆ getType()

getType ( )
Returns
string

Definition at line 158 of file AclElement.php.

◆ setId()

setId (   $id)
Parameters
mixed$id

Definition at line 127 of file AclElement.php.

◆ setPermission()

setPermission (   $permission)
Parameters
\Ubiquity\security\acl\models\Permission$permission

Definition at line 143 of file AclElement.php.

◆ setResource()

setResource (   $resource)
Parameters
\Ubiquity\security\acl\models\Resource$resource

Definition at line 151 of file AclElement.php.

◆ setRole()

setRole (   $role)
Parameters
\Ubiquity\security\acl\models\Role$role

Definition at line 135 of file AclElement.php.

◆ setType()

setType ( ?string  $type)
Parameters
string$type

Definition at line 165 of file AclElement.php.

◆ toArray()

toArray ( )

Definition at line 101 of file AclElement.php.

Field Documentation

◆ $id

$id
protected

@id @column("name"=>"id","nullable"=>false,"dbType"=>"int(11)")

Definition at line 25 of file AclElement.php.

◆ $permission

$permission
protected

Definition at line 45 of file AclElement.php.

◆ $resource

$resource
protected

Definition at line 55 of file AclElement.php.

◆ $role

$role
protected

Definition at line 35 of file AclElement.php.

◆ $type

$type =''
protected

Definition at line 62 of file AclElement.php.


The documentation for this class was generated from the following file: