AdminAccessRoleWriter

Implements \AdminAccessRoleWriterInterface

Class AdminAccessRoleWriter

category

System

package

AdminAccess

subpackage

Writers

Methods

AdminAccessRoleWriter constructor.

__construct(\CI_DB_query_builder $db, \LanguageProviderInterface $languageProvider) 

Arguments

$db

\CI_DB_query_builder

Query builder.

$languageProvider

\LanguageProviderInterface

Language provider.

Stores a role into the database.

insert(\AdminAccessRole $role) : integer

Arguments

$role

\AdminAccessRole

Role object.

Response

integer

ID of stored role.

Updates a role from the database.

update(\AdminAccessRole $role) : \AdminAccessRoleWriterInterface

Arguments

$role

\AdminAccessRole

Role object.

Response

\AdminAccessRoleWriterInterface

Returns same instance for chained method calls.

Properties

db

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

languageProvider

languageProvider : \LanguageProviderInterface

rolesTable

rolesTable : string
var

Type(s)

string

rolesDescriptionsTable

rolesDescriptionsTable : string
var

Type(s)

string