com\setasign\SetaSite\Page
PagePermissionHandler
File: /SetaSite/src/Page/PagePermissionHandler.php
Class hierarchy
Summary
Constants
EVENT_CAN_CREATE
public const PagePermissionHandler::EVENT_CAN_CREATE = 'setasite.page_permission_handler.can_create'
Will be called when the permission is needed whether the page can be created.
Type: PageEvent
Cancelable: If the event is canceled, the permission is denied.
EVENT_CAN_DELETE
public const PagePermissionHandler::EVENT_CAN_DELETE = 'setasite.page_permission_handler.can_delete'
Will be called when the permission is needed whether the page can be deleted.
Type: PageEvent
Cancelable: If the event is canceled, the permission is denied.
EVENT_CAN_EDIT
Will be called when the permission is needed whether the page can be edited.
Type: PageEvent
Cancelable: If the event is canceled, the permission is denied.
EVENT_CAN_MOVE
Will be called when the permission is needed whether the page can be moved.
Type: PageEvent
Cancelable: If the event is canceled, the permission is denied.
EVENT_CAN_PUBLISH
public const PagePermissionHandler::EVENT_CAN_PUBLISH = 'setasite.page_permission_handler.can_publish'
Will be called when the permission is needed whether the page can be published.
Type: PageEvent
Cancelable: If the event is canceled, the permission is denied.
PAGE_CREATE
PAGE_DELETE
PAGE_EDIT
PAGE_MOVE
PAGE_PUBLISH
Properties
$db
protected PagePermissionHandler::$db
$eventManager
protected PagePermissionHandler::$eventManager
$permissionControl
protected PagePermissionHandler::$permissionControl
$user
protected PagePermissionHandler::$user
Methods
__construct()
public PagePermissionHandler::__construct (
\com\setasign\SetaFramework\EventManager\EventManager $eventManager,
\com\setasign\SetaFramework\Database\Database $db,
\com\setasign\SetaSite\User\User $user,
\com\setasign\SetaFramework\Permissions\PermissionControl $permissionControl
)\com\setasign\SetaFramework\Database\Database $db,
\com\setasign\SetaSite\User\User $user,
\com\setasign\SetaFramework\Permissions\PermissionControl $permissionControl
Parameters
- $eventManager : \com\setasign\SetaFramework\EventManager\EventManager
- $db : \com\setasign\SetaFramework\Database\Database
- $user : \com\setasign\SetaSite\User\User
- $permissionControl : \com\setasign\SetaFramework\Permissions\PermissionControl
