ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilCronJobRepositoryImpl.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 /* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
13  public function findAll() : ilCronJobCollection
14  {
15  $collection = new ilCronJobEntities();
16 
17  foreach (ilCronManager::getCronJobData() as $item) {
19  $item['job_id'],
20  $item['component'],
21  $item['class'],
22  $item['path']
23  );
24  if ($job) {
25  $collection->add(new ilCronJobEntity($job, $item));
26  }
27  }
28 
29  foreach (ilCronManager::getPluginJobs() as $item) {
30  $collection->add(new ilCronJobEntity($item[0], $item[1], true));
31  }
32 
33  return $collection;
34  }
35 }
static getJobInstance($a_id, $a_component, $a_class, $a_path=null)
Get job instance (by job data)
Class ilCronJobEntities.
static getCronJobData($a_id=null, $a_include_inactive=true)
Get cron job configuration/execution data.
Class ilCronJobEntity.
static getPluginJobs($a_only_active=false)
Interface ilCronJobRepository.
Class ilCronJobCollection.
Class ilCronJobRepositoryImpl.