ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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}
An exception for terminatinating execution or to throw for unit testing.
Class ilStrictCliCronManager.
__construct(\ilCronManagerInterface $cronManager)
ilStrictCliCronManager constructor.
Class ilStrictCliCronManager.