Table of Contents
Interfaces
- JobRepository
Methods
-
add()
: Job
-
checkIsDone()
: bool
-
getById()
: Job|null
-
getLastByTypeAndDate()
: JobCollection
-
increaseEventCountByIds()
: void
-
listByStatusListAndDate()
: JobCollection
-
listIdsByDate()
: array<int, int>
-
removeByIds()
: void
-
update()
: Job
-
updateStatusByIds()
: void
add()
public
add(Job $job) : Job
Parameters
-
$job
: Job
-
-
throws
-
CreationFailedException
checkIsDone()
public
checkIsDone(int $jobId) : bool
Parameters
-
$jobId
: int
-
getById()
public
getById(int $jobId) : Job|null
Parameters
-
$jobId
: int
-
getLastByTypeAndDate()
public
getLastByTypeAndDate(JobType $type, DateTime|null $date, int $companyId, array<string|int, mixed> $statuses[, int $limit = 1 ]) : JobCollection
Parameters
-
$type
: JobType
-
-
$date
: DateTime|null
-
-
$companyId
: int
-
-
$statuses
: array<string|int, mixed>
-
-
$limit
: int
= 1
-
increaseEventCountByIds()
public
increaseEventCountByIds(array<string|int, mixed> $ids) : void
Parameters
-
$ids
: array<string|int, mixed>
-
listByStatusListAndDate()
public
listByStatusListAndDate(array<string|int, mixed> $statusList[, DateTime|null $date = null ][, int $limit = 100 ]) : JobCollection
Parameters
-
$statusList
: array<string|int, mixed>
-
-
$date
: DateTime|null
= null
-
-
$limit
: int
= 100
-
listIdsByDate()
public
listIdsByDate(DateTime $olderThanDate[, int $limit = 100 ]) : array<int, int>
Parameters
-
$olderThanDate
: DateTime
-
-
$limit
: int
= 100
-
Return values
array<int, int>
removeByIds()
public
removeByIds(array<string|int, mixed> $ids) : void
Parameters
-
$ids
: array<string|int, mixed>
-
update()
public
update(Job $job) : Job
Parameters
-
$job
: Job
-
-
throws
-
UpdateFailedException
updateStatusByIds()
public
updateStatusByIds(array<string|int, mixed> $ids, JobStatus $status) : void
Parameters
-
$ids
: array<string|int, mixed>
-
-
$status
: JobStatus
-