YetiForce PHP Documentation

Import_Queue_Action extends Action
in package

Abstract action controller class.

Table of Contents

$csrfActive  : bool
CSRF is active?.
$headers  : Headers
Headers instance.
$IMPORT_STATUS_COMPLETED  : mixed
$IMPORT_STATUS_HALTED  : mixed
$IMPORT_STATUS_NONE  : mixed
$IMPORT_STATUS_RUNNING  : mixed
$IMPORT_STATUS_SCHEDULED  : mixed
$activatedCsrf  : bool
Activated csrf.
$activatedLocale  : bool
Activated language locale.
__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 extend.
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()  : bool
Function to validate request method.

Properties

$csrfActive

CSRF is active?.

public bool $csrfActive = true

$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

$activatedCsrf

Activated csrf.

protected static bool $activatedCsrf = false

$activatedLocale

Activated language locale.

protected static bool $activatedLocale = false

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 extend.

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) : bool
Parameters
$request : Request
Return values
bool

Search results