Documentation

JobApiAfterRemoveComponent extends AbstractJobHandlerComponent
in package
uses TraitUploadHelper

Table of Contents

Constants

SUPPORTED_JOB_ACTION_LIST  = [\Vatjar\Jobs\Model\Job::MAIN_ACTION_API => [\Vatjar\Jobs\Model\Job::SUB_ACTION_AFTER_REMOVE]]

Properties

$cache  : mixed
$job  : Job
$jobList  : array<string|int, Job>
$helperComponent  : mixed
$lockList  : FSLock[string]
$opt  : array<string|int, mixed>

Methods

__construct()  : mixed
addCache()  : self
Set the value of cache
addMultiUseCache()  : mixed
if something validated which and maybe need to recheck pass to this, and check this with a simple condition
afterHandle()  : JobResult
beforeHandle()  : mixed
create()  : static
createAndHandle()  : mixed
dateChecker()  : mixed
getAlreadyAdded()  : mixed
if a value already validated or used and not need to recheck
getCache()  : mixed
Get the value of cache
getHelperComponent()  : mixed
Get the value of helperComponent
getJob()  : Job
getJobList()  : array<string|int, Job>
getJobParameters()  : array<string|int, mixed>
getLockNameListForHandle()  : mixed
getLockPrefix()  : string
getOpt()  : array<string|int, mixed>
getOptUser()  : mixed
getOptUserId()  : mixed
getOptVal()  : mixed
getOptValOr()  : mixed
handle()  : JobResult
handleJob()  : mixed
handleLock()  : mixed
hasOptKey()  : mixed
loadJobList()  : mixed
lock()  : bool
markReportAsOld()  : mixed
setHelperComponent()  : self
Set the value of helperComponent
setJob()  : mixed
setOpt()  : static
support()  : bool
unlock()  : void
_handle()  : JobResult
dateHasTime()  : mixed
getCacheName()  : mixed
getDateFromString()  : mixed

Constants

SUPPORTED_JOB_ACTION_LIST

public mixed SUPPORTED_JOB_ACTION_LIST = [\Vatjar\Jobs\Model\Job::MAIN_ACTION_API => [\Vatjar\Jobs\Model\Job::SUB_ACTION_AFTER_REMOVE]]

Properties

$opt

private array<string|int, mixed> $opt

Methods

__construct()

public __construct([Job $job = null ][, array<string|int, mixed> $opt = null ]) : mixed
Parameters
$job : Job = null
$opt : array<string|int, mixed> = null

addCache()

Set the value of cache

public addCache(mixed $name, mixed $value) : self
Parameters
$name : mixed
$value : mixed
Return values
self

addMultiUseCache()

if something validated which and maybe need to recheck pass to this, and check this with a simple condition

public addMultiUseCache(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed

create()

public static create([Job $job = null ][, array<string|int, mixed> $opt = null ]) : static
Parameters
$job : Job = null
$opt : array<string|int, mixed> = null
Return values
static

createAndHandle()

public static createAndHandle([Job $job = null ][, array<string|int, mixed> $opt = null ]) : mixed
Parameters
$job : Job = null
$opt : array<string|int, mixed> = null

dateChecker()

public dateChecker(mixed $key, mixed $row) : mixed
Parameters
$key : mixed
$row : mixed

getAlreadyAdded()

if a value already validated or used and not need to recheck

public getAlreadyAdded(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed

getCache()

Get the value of cache

public getCache(mixed $name) : mixed
Parameters
$name : mixed

getLockPrefix()

public getLockPrefix() : string
Return values
string

getOpt()

public getOpt([array<string|int, mixed> $opt = null ]) : array<string|int, mixed>
Parameters
$opt : array<string|int, mixed> = null
Return values
array<string|int, mixed>

getOptUser()

public getOptUser() : mixed

getOptUserId()

public getOptUserId() : mixed

getOptVal()

public getOptVal(string $key) : mixed
Parameters
$key : string

getOptValOr()

public getOptValOr(string $key[, mixed $or = null ]) : mixed
Parameters
$key : string
$or : mixed = null

handleJob()

public handleJob(Job $job[, array<string|int, mixed> $opt = null ]) : mixed
Parameters
$job : Job
$opt : array<string|int, mixed> = null

hasOptKey()

public hasOptKey(string $key) : mixed
Parameters
$key : string

lock()

public lock([array<string|int, mixed> $lockNameList = [] ]) : bool
Parameters
$lockNameList : array<string|int, mixed> = []
Tags
throws
LockException
Return values
bool

setHelperComponent()

Set the value of helperComponent

public setHelperComponent(mixed $helperComponent) : self
Parameters
$helperComponent : mixed
Return values
self

setOpt()

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

dateHasTime()

private dateHasTime(string $date) : mixed
Parameters
$date : string

getCacheName()

private getCacheName(string $modelName[, mixed $indexedTo = null ]) : mixed
Parameters
$modelName : string
$indexedTo : mixed = null

getDateFromString()

private getDateFromString(string $value) : mixed
Parameters
$value : string

        
On this page

Search results