Import_Lock_Action
extends Action
in package
Import lock action.
Table of Contents
- $headers : Headers
- $activatedLocale : bool
- $csrfInitiated : bool
- __construct() : mixed
- Constructor.
- checkPermission() : mixed
- {@inheritdoc}
- isLockedForModule() : array<string|int, mixed>|bool
- Is locked for module.
- isSessionExtend() : bool
- Function to check if session is extended.
- lock() : mixed
- Lock.
- 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.
- sendHeaders() : mixed
- Send headers.
- unLock() : mixed
- Unlock.
- validateRequest() : void
- Function to validate request method.
Properties
$headers
public
Headers
$headers
Headers instance.
$activatedLocale
protected
static bool
$activatedLocale
= false
Activated language locale.
$csrfInitiated
private
static bool
$csrfInitiated
= false
CSRF already initiated.
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixed —checkPermission()
{@inheritdoc}
public
checkPermission(Request $request) : mixed
Parameters
- $request : Request
Return values
mixed —isLockedForModule()
Is locked for module.
public
static isLockedForModule(string $module) : array<string|int, mixed>|bool
Parameters
- $module : string
Return values
array<string|int, mixed>|bool —isSessionExtend()
Function to check if session is extended.
public
isSessionExtend(Request $request) : bool
Parameters
- $request : Request
Return values
bool —lock()
Lock.
public
static lock(int $importId, string $module, User $user) : mixed
Parameters
- $importId : int
- $module : string
- $user : User
Return values
mixed —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 —process()
Process action.
public
process(Request $request) : mixed
Parameters
- $request : Request
Return values
mixed —sendHeaders()
Send headers.
public
sendHeaders() : mixed
Return values
mixed —unLock()
Unlock.
public
static unLock(User $user[, string $module = false ]) : mixed
Parameters
- $user : User
- $module : string = false
Return values
mixed —validateRequest()
Function to validate request method.
public
validateRequest(Request $request) : void
Parameters
- $request : Request