AdminAccessPermissionWriter

Implements \AdminAccessPermissionWriterInterface

Class AdminAccessPermissionWriter

category

System

package

AdminAccess

subpackage

Writers

Methods

AdminAccessPermissionReader constructor.

__construct(\CI_DB_query_builder $queryBuilder) 

Arguments

$queryBuilder

\CI_DB_query_builder

Query builder.

Updates the access flags of a permission in the database.

_updateAccessFlags(array $data) : \AdminAccessPermissionWriterInterface

Arguments

$data

array

Permission data.

Response

\AdminAccessPermissionWriterInterface

Returns same instance for chained method calls.

Stores a permission into the database.

insert(\AdminAccessPermission $permission) : \AdminAccessPermissionWriterInterface

Arguments

$permission

\AdminAccessPermission

Permission.

Response

\AdminAccessPermissionWriterInterface

Returns same instance for chained method calls.

Updates a permission in the database.

update(\AdminAccessPermission $permission) : \AdminAccessPermissionWriterInterface

Arguments

$permission

\AdminAccessPermission

Permission.

Response

\AdminAccessPermissionWriterInterface

Returns same instance for chained method calls.

Updates the deleting permission flag of a permission in the database.

updateDeletingPermission(\IdType $roleId, \IdType $groupId, \BoolType $deletingGranted) : \AdminAccessPermissionWriterInterface

Arguments

$roleId

\IdType

Role ID.

$groupId

\IdType

Group ID.

$deletingGranted

\BoolType

Value for the deleting permission flag.

Response

\AdminAccessPermissionWriterInterface

Returns same instance for chained method calls.

Updates the reading permission flag of a permission in the database.

updateReadingPermission(\IdType $roleId, \IdType $groupId, \BoolType $readingGranted) : \AdminAccessPermissionWriterInterface

Arguments

$roleId

\IdType

Role ID.

$groupId

\IdType

Group ID.

$readingGranted

\BoolType

Value for the reading permission flag.

Response

\AdminAccessPermissionWriterInterface

Returns same instance for chained method calls.

Updates the writing permission flag of a permission in the database.

updateWritingPermission(\IdType $roleId, \IdType $groupId, \BoolType $writingGranted) : \AdminAccessPermissionWriterInterface

Arguments

$roleId

\IdType

Role ID.

$groupId

\IdType

Group ID.

$writingGranted

\BoolType

Value for the writing permission flag.

Response

\AdminAccessPermissionWriterInterface

Returns same instance for chained method calls.

Properties

queryBuilder

queryBuilder : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

permissionFactory

permissionFactory : \AdminAccessPermissionFactoryInterface

permissionTable

permissionTable : string
var

Type(s)

string