ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilStrictCliCronManager.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
13  protected $cronManager;
14 
20  {
21  $this->cronManager = $cronManager;
22  }
23 
27  private function getValidPhpApis() : array
28  {
29  return [
30  'cli'
31  ];
32  }
33 
37  public function runActiveJobs()
38  {
39  if (in_array(php_sapi_name(), array_map('strtolower', $this->getValidPhpApis()))) {
40  $this->cronManager->runActiveJobs();
41  }
42  }
43 }
Class ilStrictCliCronManager.
runActiveJobs()
Run all active jobs.
Class ilStrictCliCronManager.
__construct(\ilCronManagerInterface $cronManager)
ilStrictCliCronManager constructor.