ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilStrictCliCronManager Class Reference

Class ilStrictCliCronManager. More...

+ Inheritance diagram for ilStrictCliCronManager:
+ Collaboration diagram for ilStrictCliCronManager:

Public Member Functions

 __construct (\ilCronManagerInterface $cronManager)
 ilStrictCliCronManager constructor. More...
 
 runActiveJobs ()
 Run all active jobs. More...
 

Protected Attributes

 $cronManager
 

Private Member Functions

 getValidPhpApis ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilStrictCliCronManager::__construct ( \ilCronManagerInterface  $cronManager)

ilStrictCliCronManager constructor.

Parameters
ilCronManagerInterface$cronManager

Definition at line 19 of file class.ilStrictCliCronManager.php.

References $cronManager.

20  {
21  $this->cronManager = $cronManager;
22  }

Member Function Documentation

◆ getValidPhpApis()

ilStrictCliCronManager::getValidPhpApis ( )
private
Returns
string[]

Definition at line 27 of file class.ilStrictCliCronManager.php.

Referenced by runActiveJobs().

27  : array
28  {
29  return [
30  'cli'
31  ];
32  }
+ Here is the caller graph for this function:

◆ runActiveJobs()

ilStrictCliCronManager::runActiveJobs ( )

Run all active jobs.

Implements ilCronManagerInterface.

Definition at line 37 of file class.ilStrictCliCronManager.php.

References getValidPhpApis().

38  {
39  if (in_array(php_sapi_name(), array_map('strtolower', $this->getValidPhpApis()))) {
40  $this->cronManager->runActiveJobs();
41  }
42  }
+ Here is the call graph for this function:

Field Documentation

◆ $cronManager

ilStrictCliCronManager::$cronManager
protected

Definition at line 13 of file class.ilStrictCliCronManager.php.

Referenced by __construct().


The documentation for this class was generated from the following file: