\WorkflowComponent

Workflow Component

Summary

Methods
Properties
Constants
initialize()
startup()
parseStatus()
getBlockRolePermissions()
getRoomRolePermissions()
No public properties found
STATUS_PUBLISHED
STATUS_APPROVED
STATUS_APPROVAL_WAITING
STATUS_IN_DRAFT
STATUS_DISAPPROVED
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

STATUS_PUBLISHED

STATUS_PUBLISHED

status published

STATUS_APPROVED

STATUS_APPROVED

status approved 後で削除

STATUS_APPROVAL_WAITING

STATUS_APPROVAL_WAITING

status approved

STATUS_IN_DRAFT

STATUS_IN_DRAFT

in draft status

STATUS_DISAPPROVED

STATUS_DISAPPROVED

status disaproved

Methods

initialize()

initialize(\Controller  $controller) : void

Called before the Controller::beforeFilter().

Parameters

\Controller $controller

Controller with components to initialize

startup()

startup(\Controller  $controller) : void

Called after the Controller::beforeFilter() and before the controller action

Parameters

\Controller $controller

Controller with components to startup

parseStatus()

parseStatus() : mixed

Parse content status from request

Throws

\BadRequestException

Returns

mixed —

status on success, false on error

getBlockRolePermissions()

getBlockRolePermissions(array  $permissions, integer  $roomId = null, string  $blockKey = null) : array

Function to get the data of BlockRolePermmissions.

e.g.) BlockRolePermmissions controller

Parameters

array $permissions

パーミッションリスト

integer $roomId

ルームID

string $blockKey

ブロックKey

Returns

array —

Role and Permissions data

  • The Role merged of Role and RoomRole
  • The Permission sets in priority of BlockRolePermission and RoomRolePermission and DefaultRolePermission.

getRoomRolePermissions()

getRoomRolePermissions(array  $permissions, string  $type, integer  $roomId = null) : array

Function to get the data of RoomRolePermmissions.

e.g.) RoomRolePermmissions controller

Parameters

array $permissions

パーミッションリスト

string $type

タイプ(DefaultRolePermissions.type)

integer $roomId

ルームID

Returns

array —

Role and Permissions and Rooms data

  • The DefaultPermissions data.
  • The Roles data.
  • The RolesRooms data.
  • The RoomRolePermissions data.
  • The RoomRoles data.