ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
|
Public Member Functions | |
__construct (private readonly \ILIAS\Cron\Job\JobCollection $origin, mixed $sort, bool $reverse_order=false) | |
getIterator () | |
count () | |
add (\ILIAS\Cron\Job\JobEntity $job) | |
filter (callable $callable) | |
Returns all the elements of this collection that satisfy the predicate $callable. More... | |
slice (int $offset, ?int $length=null) | |
Extracts a slice of $length elements starting at position $offset from the Collection. More... | |
toArray () | |
Data Fields | |
final const int | ORDER_BY_NONE = 0 |
final const int | ORDER_BY_NAME = 1 |
final const int | ORDER_BY_STATUS = 2 |
final const int | ORDER_AS_PROVIDED = 1 |
final const int | ORDER_REVERSE = -1 |
Private Member Functions | |
getSortedJobs () | |
Private Attributes | |
mixed | $sort |
array | $sorted_jobs = null |
Definition at line 23 of file OrderedJobEntities.php.
ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities::__construct | ( | private readonly \ILIAS\Cron\Job\JobCollection | $origin, |
mixed | $sort, | ||
bool | $reverse_order = false |
||
) |
int|callable( |
Definition at line 42 of file OrderedJobEntities.php.
References ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\$sort, ILIAS\UI\examples\Symbol\Glyph\Sort\sort(), and ilStr\strCmp().
ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities::add | ( | \ILIAS\Cron\Job\JobEntity | $job | ) |
Implements ILIAS\BackgroundTasks\Task\Job\JobCollection.
Definition at line 91 of file OrderedJobEntities.php.
References null.
ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities::count | ( | ) |
Definition at line 86 of file OrderedJobEntities.php.
ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities::filter | ( | callable | $callable | ) |
Returns all the elements of this collection that satisfy the predicate $callable.
callable( |
Implements ILIAS\BackgroundTasks\Task\Job\JobCollection.
Definition at line 97 of file OrderedJobEntities.php.
References ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\$sort.
ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities::getIterator | ( | ) |
Definition at line 81 of file OrderedJobEntities.php.
References ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\getSortedJobs().
|
private |
Definition at line 121 of file OrderedJobEntities.php.
References ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\$sorted_jobs, null, and ILIAS\UI\examples\Symbol\Glyph\Sort\sort().
Referenced by ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\getIterator(), ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\slice(), and ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\toArray().
ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities::slice | ( | int | $offset, |
?int | $length = null |
||
) |
Extracts a slice of $length elements starting at position $offset from the Collection.
If $length is null it returns all elements from $offset to the end of the Collection. Calling this method will only return the selected slice and NOT change the elements contained in the collection slice is called on.
int | $offset | The offset to start from. |
int | null | $length | The maximum number of elements to return, or null for no limit. |
Implements ILIAS\BackgroundTasks\Task\Job\JobCollection.
Definition at line 105 of file OrderedJobEntities.php.
References ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\$sort, and ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\getSortedJobs().
ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities::toArray | ( | ) |
Implements ILIAS\BackgroundTasks\Task\Job\JobCollection.
Definition at line 113 of file OrderedJobEntities.php.
References ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\getSortedJobs().
|
private |
|
private |
Definition at line 37 of file OrderedJobEntities.php.
Referenced by ILIAS\BackgroundTasks\Task\Job\Collection\OrderedJobEntities\getSortedJobs().
final const int ILIAS\BackgroundTasks\Task\Job::Collection\OrderedJobEntities::ORDER_AS_PROVIDED = 1 |
Definition at line 29 of file OrderedJobEntities.php.
final const int ILIAS\BackgroundTasks\Task\Job::Collection\OrderedJobEntities::ORDER_BY_NAME = 1 |
Definition at line 26 of file OrderedJobEntities.php.
Referenced by ILIAS\BackgroundTasks\Task\Job\Manager\UI\JobTable\getRecords().
final const int ILIAS\BackgroundTasks\Task\Job::Collection\OrderedJobEntities::ORDER_BY_NONE = 0 |
Definition at line 25 of file OrderedJobEntities.php.
final const int ILIAS\BackgroundTasks\Task\Job::Collection\OrderedJobEntities::ORDER_BY_STATUS = 2 |
Definition at line 27 of file OrderedJobEntities.php.
Referenced by ILIAS\BackgroundTasks\Task\Job\Manager\UI\JobTable\getRecords().
final const int ILIAS\BackgroundTasks\Task\Job::Collection\OrderedJobEntities::ORDER_REVERSE = -1 |
Definition at line 30 of file OrderedJobEntities.php.