ModifyEditFormUserAccessEvent

FinalYes

Listeners to this Event will be able to modify the user access decision for using FormEngine to create or edit a record.

Table of Contents

Methods

__construct()  : mixed
allowUserAccess()  : void
Allows user access to the editing form
denyUserAccess()  : void
Denies user access to the editing form
doesUserHaveAccess()  : bool
Returns the current user access state
getAccessDeniedException()  : AccessDeniedException|null
If Core's DataProvider previously denied access, this returns the corresponding exception, `null` otherwise
getCommand()  : "new"|"edit"
Returns the requested command, either `new` or `edit`
getDatabaseRow()  : array<string|int, mixed>
Returns the record's database row
getTableName()  : string
Returns the table name of the record in question

Methods

__construct()

public __construct(AccessDeniedException|null $exception, string $tableName, "new"|"edit" $command, array<string|int, mixed> $databaseRow) : mixed
Parameters
$exception : AccessDeniedException|null
$tableName : string
$command : "new"|"edit"
$databaseRow : array<string|int, mixed>

allowUserAccess()

Allows user access to the editing form

public allowUserAccess() : void

denyUserAccess()

Denies user access to the editing form

public denyUserAccess() : void

doesUserHaveAccess()

Returns the current user access state

public doesUserHaveAccess() : bool
Return values
bool

getCommand()

Returns the requested command, either `new` or `edit`

public getCommand() : "new"|"edit"
Return values
"new"|"edit"

getDatabaseRow()

Returns the record's database row

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

getTableName()

Returns the table name of the record in question

public getTableName() : string
Return values
string

        
On this page

Search results