Documentation

ServiceContracts_PolicySaveAjax_Action extends Action
in package

ServiceContracts PolicySaveAjax Action class.

Tags
copyright

YetiForce Sp. z o.o.

license

YetiForce Public License 4.0 (licenses/LicenseEN.txt or yetiforce.com)

author

Rafal Pospiech r.pospiech@yetiforce.com

author

Mariusz Krzaczkowski m.krzaczkowski@yetiforce.com

Table of Contents

$csrfActive  : bool
CSRF is active?.
$headers  : Headers
$activatedCsrf  : bool
Activated csrf.
$activatedLocale  : bool
Activated language locale.
__construct()  : mixed
Constructor.
checkPermission()  : mixed
{@inheritdoc}
isSessionExtend()  : bool
Function to check if session is extended.
loginRequired()  : bool
Function to check login required permission.
postProcess()  : mixed
Post process function.
postProcessAjax()  : mixed
Post process ajax function.
preProcess()  : mixed
Pre process function.
preProcessAjax()  : mixed
Pre process ajax function.
process()  : mixed
Process action.
saveCustomRecords()  : array<string|int, mixed>
Save custom records.
sendHeaders()  : mixed
Send headers.
validateRequest()  : bool
Function to validate request method.

Properties

$csrfActive

CSRF is active?.

public bool $csrfActive = true

$headers

public Headers $headers

Headers instance.

$activatedCsrf

Activated csrf.

protected static bool $activatedCsrf = false

$activatedLocale

Activated language locale.

protected static bool $activatedLocale = false

Methods

__construct()

Constructor.

public __construct() : mixed
Return values
mixed

checkPermission()

{@inheritdoc}

public checkPermission(Request $request) : mixed
Parameters
$request : Request
Return values
mixed

isSessionExtend()

Function to check if session is extended.

public isSessionExtend(Request $request) : bool
Parameters
$request : Request
Return values
bool

loginRequired()

Function to check login required permission.

public loginRequired() : bool
Return values
bool

postProcess()

Post process function.

public postProcess(Request $request[, bool $display = true ]) : mixed
Parameters
$request : Request
$display : bool = true
Return values
mixed

postProcessAjax()

Post process ajax function.

public postProcessAjax(Request $request) : mixed
Parameters
$request : Request
Return values
mixed

preProcess()

Pre process function.

public preProcess(Request $request[, bool $display = true ]) : mixed
Parameters
$request : Request
$display : bool = true
Return values
mixed

preProcessAjax()

Pre process ajax function.

public preProcessAjax(Request $request) : mixed
Parameters
$request : Request
Return values
mixed

saveCustomRecords()

Save custom records.

public saveCustomRecords(Request $request) : array<string|int, mixed>
Parameters
$request : Request
Return values
array<string|int, mixed>

sendHeaders()

Send headers.

public sendHeaders() : mixed
Return values
mixed

validateRequest()

Function to validate request method.

public validateRequest(Request $request) : bool
Parameters
$request : Request
Return values
bool

        

Search results