QueueItem
Table of Contents
Properties
-
$dateCreate
: DateTime
-
$dateUpdate
: DateTime
-
$id
: int
-
$isFirstInit
: bool
-
$isLocked
: bool
-
$pointer
: string
-
$sourceId
: int|null
-
$sourceType
: SourceType
-
$stageType
: StageType
-
$status
: string
-
$userId
: int
Methods
-
__construct()
: mixed
-
createFirstStep()
: static
-
createFromRow()
: static
-
getFields()
: array<string|int, mixed>
-
lock()
: self
-
setErrorStatus()
: self
-
setId()
: self
-
unlock()
: self
-
updatePointer()
: self
$dateCreate
read-only
public
DateTime
$dateCreate
$dateUpdate
read-only
public
DateTime
$dateUpdate
$id
read-only
public
int
$id
$isFirstInit
read-only
public
bool
$isFirstInit
$isLocked
read-only
public
bool
$isLocked
$pointer
read-only
public
string
$pointer
$sourceId
read-only
public
int|null
$sourceId
$sourceType
read-only
public
SourceType
$sourceType
$stageType
read-only
public
StageType
$stageType
$status
read-only
public
string
$status
$userId
read-only
public
int
$userId
__construct()
public
__construct(int $id, int $userId, StageType $stageType, SourceType $sourceType, int|null $sourceId, string $pointer, string $status, bool $isLocked, DateTime $dateCreate, DateTime $dateUpdate, bool $isFirstInit) : mixed
Parameters
-
$id
: int
-
-
$userId
: int
-
-
$stageType
: StageType
-
-
$sourceType
: SourceType
-
-
$sourceId
: int|null
-
-
$pointer
: string
-
-
$status
: string
-
-
$isLocked
: bool
-
-
$dateCreate
: DateTime
-
-
$dateUpdate
: DateTime
-
-
$isFirstInit
: bool
-
createFirstStep()
public
static createFirstStep(int $userId, SourceType $sourceType, int|null $sourceId[, bool $isFirstInit = false ]) : static
Parameters
-
$userId
: int
-
-
$sourceType
: SourceType
-
-
$sourceId
: int|null
-
-
$isFirstInit
: bool
= false
-
createFromRow()
public
static createFromRow(array<string|int, mixed> $row) : static
Parameters
-
$row
: array<string|int, mixed>
-
getFields()
public
getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>
lock()
public
lock() : self
setErrorStatus()
public
setErrorStatus() : self
setId()
public
setId(int $id) : self
Parameters
-
$id
: int
-
unlock()
public
unlock([bool $withSave = false ]) : self
Parameters
-
$withSave
: bool
= false
-
updatePointer()
public
updatePointer(string $pointer[, StageType|null $stage = null ]) : self
Parameters
-
$pointer
: string
-
-
$stage
: StageType|null
= null
-