baserCMS クラスリファレンス

PermissionGroupsService
in package
implements PermissionGroupsServiceInterface Uses BcContainerTrait

PermissionGroupsService

Table of Contents

Interfaces

PermissionGroupsServiceInterface
PermissionGroupsServiceInterface

Properties

$PermissionGroups  : PermissionGroupsTable
$PermissionGroups  : PermissionGroupsTable|Table
PermissionGroups Table
$UserGroups  : UserGroupsTable
$UserGroups  : UserGroupsTable|Table
UserGroups Table

Methods

__construct()  : mixed
Constructor
build()  : bool
アクセスルールを構築する
buildAll()  : mixed
アクセスルールを全て構築する
buildAllowAllMethodByPlugin()  : mixed
指定したプラグインについて全てを許可するアクセスルールを構築する
buildByPlugin()  : mixed
プラグインを指定してアクセスルールを構築する
buildByUserGroup()  : mixed
ユーザーグループを指定してアクセスグループを構築する
buildDefaultEtcRuleGroup()  : EntityInterface|false
デフォルトのその他のルールグループを作成する
create()  : EntityInterface
アクセスルールグループを更新する
delete()  : bool
アクセスグループを削除する
deleteByPlugin()  : mixed
プラグインを指定してアクセスルールを削除する
deleteByUserGroup()  : mixed
ユーザーを指定してアクセスルールを削除する
get()  : EntityInterface
アクセスルールグループを単一取得
getAvailableMinUserGroupId()  : false|mixed
アクセスグループを利用可能なユーザーグループの最小のIDを取得する
getControlSource()  : array<string|int, mixed>
コントロールソースを取得する
getIndex()  : Query
アクセスルールグループの一覧を取得する
getList()  : array<string|int, mixed>
アクセスルールグループのリストを取得する
getNew()  : EntityInterface
初期データを取得
getService()  : array<string|int, mixed>|mixed|object
Get Service
hasService()  : bool
Has Service
rebuildByUserGroup()  : bool
ユーザーを指定してアクセスルールを再構築する
update()  : EntityInterface
アクセスルールグループを更新する

Properties

Methods

build()

アクセスルールを構築する

public build(int $userGroupId, string $plugin) : bool
Parameters
$userGroupId : int
$plugin : string
Tags
noTodo
unitTest
checked
Return values
bool

buildAll()

アクセスルールを全て構築する

public buildAll() : mixed
Tags
noTodo
unitTest
checked

buildAllowAllMethodByPlugin()

指定したプラグインについて全てを許可するアクセスルールを構築する

public buildAllowAllMethodByPlugin(int $userGroupId, string $plugin, string $type, string $typeName) : mixed
Parameters
$userGroupId : int
$plugin : string
$type : string
$typeName : string
Tags
noTodo
unitTest
checked

buildByPlugin()

プラグインを指定してアクセスルールを構築する

public buildByPlugin(string $plugin) : mixed
Parameters
$plugin : string
Tags
noTodo
unitTest
checked

buildByUserGroup()

ユーザーグループを指定してアクセスグループを構築する

public buildByUserGroup(int $userGroupId) : mixed
Parameters
$userGroupId : int
Tags
noTodo
unitTest
checked

buildDefaultEtcRuleGroup()

デフォルトのその他のルールグループを作成する

public buildDefaultEtcRuleGroup(string $type, string $name) : EntityInterface|false

タイプを指定してタイプごとに作る

Parameters
$type : string
$name : string
Tags
noTodo
unitTest
checked
Return values
EntityInterface|false

create()

アクセスルールグループを更新する

public create(array<string|int, mixed> $postData) : EntityInterface
Parameters
$postData : array<string|int, mixed>
Tags
checked
noTodo
Return values
EntityInterface

delete()

アクセスグループを削除する

public delete(int $id) : bool
Parameters
$id : int
Tags
checked
noTodo
Return values
bool

deleteByPlugin()

プラグインを指定してアクセスルールを削除する

public deleteByPlugin(string $plugin) : mixed
Parameters
$plugin : string
Tags
noTodo
unitTest
checked

deleteByUserGroup()

ユーザーを指定してアクセスルールを削除する

public deleteByUserGroup(int $userGroupId) : mixed
Parameters
$userGroupId : int
Tags
checked
noTodo
unitTest

get()

アクセスルールグループを単一取得

public get(int $id[, int $userGroupId = null ]) : EntityInterface
Parameters
$id : int
$userGroupId : int = null
Tags
unitTest
noTodo
checked
Return values
EntityInterface

getAvailableMinUserGroupId()

アクセスグループを利用可能なユーザーグループの最小のIDを取得する

public getAvailableMinUserGroupId() : false|mixed
Tags
checked
noTodo
Return values
false|mixed

getControlSource()

コントロールソースを取得する

public getControlSource(string $field[, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$field : string
$options : array<string|int, mixed> = []
Tags
noTodo
unitTest
checked
Return values
array<string|int, mixed>

getIndex()

アクセスルールグループの一覧を取得する

public getIndex(int $userGroupId, array<string|int, mixed> $queryParams) : Query
Parameters
$userGroupId : int
$queryParams : array<string|int, mixed>
Tags
notodo
unitTest
checked
Return values
Query

getList()

アクセスルールグループのリストを取得する

public getList([array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$options : array<string|int, mixed> = []
Tags
noTodo
unitTest
checked
Return values
array<string|int, mixed>

getNew()

初期データを取得

public getNew(string $prefix) : EntityInterface
Parameters
$prefix : string
Tags
checked
noTodo
Return values
EntityInterface

getService()

Get Service

public getService( $service) : array<string|int, mixed>|mixed|object
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>|mixed|object

hasService()

Has Service

public hasService( $service) : bool
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
bool

rebuildByUserGroup()

ユーザーを指定してアクセスルールを再構築する

public rebuildByUserGroup(int $userGroupId) : bool
Parameters
$userGroupId : int
Tags
checked
noTodo
Return values
bool

update()

アクセスルールグループを更新する

public update(EntityInterface $entity, array<string|int, mixed> $postData) : EntityInterface
Parameters
$entity : EntityInterface
$postData : array<string|int, mixed>
Tags
noTodo
checked
unitTest
Return values
EntityInterface

        
On this page

Search results