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

public const PagePermissionHandler::EVENT_CAN_EDIT = 'setasite.page_permission_handler.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

public const PagePermissionHandler::EVENT_CAN_MOVE = 'setasite.page_permission_handler.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

public const PagePermissionHandler::PAGE_CREATE = 'create'

PAGE_DELETE

public const PagePermissionHandler::PAGE_DELETE = 'delete'

PAGE_EDIT

public const PagePermissionHandler::PAGE_EDIT = 'edit'

PAGE_MOVE

public const PagePermissionHandler::PAGE_MOVE = 'move'

PAGE_PUBLISH

public const PagePermissionHandler::PAGE_PUBLISH = 'publish'

Properties

$db

$eventManager

$permissionControl

$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
)
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
 

canCreate()

public PagePermissionHandler::canCreate (
Page $page
): bool
Parameters
$page : Page
 

canDelete()

public PagePermissionHandler::canDelete (
Page $page
): bool
Parameters
$page : Page
 

canEdit()

public PagePermissionHandler::canEdit (
Page $page
): bool
Parameters
$page : Page
 

canMove()

public PagePermissionHandler::canMove (
Page $page
): bool
Parameters
$page : Page
 

canPublish()

public PagePermissionHandler::canPublish (
Page $page
): bool
Parameters
$page : Page