MetaFox

RoleScope extends BaseScope
in package

Class BaseScope.

Table of Contents

Properties

$roles  : array<string|int, mixed>

Methods

apply()  : mixed
applyQueryBuilder()  : void
getAllowRoles()  : array<string|int, string>
getRoles()  : array<string|int, mixed>
likeOperator()  : string
return the case-insensitive LIKE operator bases on the current database driver.
setRole()  : RoleScope
setRoles()  : RoleScope
alias()  : string

Properties

$roles

private array<string|int, mixed> $roles

Methods

apply()

public apply(Builder $builder, Model $model) : mixed
Parameters
$builder : Builder
$model : Model
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

applyQueryBuilder()

public applyQueryBuilder(Builder $builder) : void
Parameters
$builder : Builder

getAllowRoles()

public static getAllowRoles() : array<string|int, string>
Return values
array<string|int, string>

getRoles()

public getRoles() : array<string|int, mixed>
Return values
array<string|int, mixed>

likeOperator()

return the case-insensitive LIKE operator bases on the current database driver.

public likeOperator() : string
Return values
string

setRoles()

public setRoles([array<string|int, mixed>|null $roles = null ]) : RoleScope
Parameters
$roles : array<string|int, mixed>|null = null
Return values
RoleScope

alias()

protected alias(string $table, string $column) : string
Parameters
$table : string
$column : string
Return values
string

        
On this page

Search results