Documentation

Import_Queue_Action extends Action
in package

Abstract action controller class.

Table of Contents

$headers  : Headers
$IMPORT_STATUS_COMPLETED  : mixed
$IMPORT_STATUS_HALTED  : mixed
$IMPORT_STATUS_NONE  : mixed
$IMPORT_STATUS_RUNNING  : mixed
$IMPORT_STATUS_SCHEDULED  : mixed
$activatedLocale  : bool
$csrfInitiated  : bool
__construct()  : mixed
add()  : mixed
Adds status to the database.
checkPermission()  : mixed
{@inheritdoc}
getAll()  : mixed
getImportInfo()  : array<string|int, mixed>|null
Import info.
getImportInfoById()  : mixed
getImportInfoFromResult()  : array<string|int, mixed>
Import info.
getUserCurrentImportInfo()  : array<string|int, mixed>
Function to get current import.
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.
remove()  : mixed
removeForUser()  : mixed
Remove import for user.
sendHeaders()  : mixed
Send headers.
updateStatus()  : mixed
validateRequest()  : void
Function to validate request method.

Properties

$headers

public Headers $headers

Headers instance.

$IMPORT_STATUS_COMPLETED

public static mixed $IMPORT_STATUS_COMPLETED = 4

$IMPORT_STATUS_HALTED

public static mixed $IMPORT_STATUS_HALTED = 3

$IMPORT_STATUS_NONE

public static mixed $IMPORT_STATUS_NONE = 0

$IMPORT_STATUS_RUNNING

public static mixed $IMPORT_STATUS_RUNNING = 2

$IMPORT_STATUS_SCHEDULED

public static mixed $IMPORT_STATUS_SCHEDULED = 1

$activatedLocale

protected static bool $activatedLocale = false

Activated language locale.

$csrfInitiated

private static bool $csrfInitiated = false

CSRF already initiated.

Methods

__construct()

public __construct() : mixed
Return values
mixed

add()

Adds status to the database.

public static add(Request $request, User $user) : mixed
Parameters
$request : Request
$user : User
Return values
mixed

checkPermission()

{@inheritdoc}

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

getAll()

public static getAll([mixed $tempStatus = false ]) : mixed
Parameters
$tempStatus : mixed = false
Return values
mixed

getImportInfo()

Import info.

public static getImportInfo(string $module, User $user) : array<string|int, mixed>|null
Parameters
$module : string
$user : User
Return values
array<string|int, mixed>|null

getImportInfoById()

public static getImportInfoById(mixed $importId) : mixed
Parameters
$importId : mixed
Return values
mixed

getImportInfoFromResult()

Import info.

public static getImportInfoFromResult(array<string|int, mixed> $rowData) : array<string|int, mixed>
Parameters
$rowData : array<string|int, mixed>
Return values
array<string|int, mixed>

getUserCurrentImportInfo()

Function to get current import.

public static getUserCurrentImportInfo(User $user) : array<string|int, mixed>
Parameters
$user : User
Return values
array<string|int, 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

process()

Process action.

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

remove()

public static remove(mixed $importId) : mixed
Parameters
$importId : mixed
Return values
mixed

removeForUser()

Remove import for user.

public static removeForUser(User $user) : mixed
Parameters
$user : User
Return values
mixed

sendHeaders()

Send headers.

public sendHeaders() : mixed
Return values
mixed

updateStatus()

public static updateStatus(mixed $importId, mixed $tempStatus) : mixed
Parameters
$importId : mixed
$tempStatus : mixed
Return values
mixed

validateRequest()

Function to validate request method.

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

        

Search results