CronRunner
in package
Executes cron jobs.
Table of Contents
- $isDryRun : bool
- __construct() : mixed
- Constructor
- runGlobalCronJobs() : void
- Runs all global cron actions.
- runSingleServerProfileActions() : void
- Runs the actions of a single server profile.
- openLdapConnection() : void
- Opens the LDAP connection.
- runServerProfileJobs() : void
- Runs the actions of a server profile.
- validateServerProfileName() : void
- Validates the server profile.
Properties
$isDryRun
private
bool
$isDryRun
Methods
__construct()
Constructor
public
__construct(bool $isDryRun) : mixed
Parameters
- $isDryRun : bool
-
dry-run
Return values
mixed —runGlobalCronJobs()
Runs all global cron actions.
public
runGlobalCronJobs() : void
Tags
Return values
void —runSingleServerProfileActions()
Runs the actions of a single server profile.
public
runSingleServerProfileActions(string $serverProfileName) : void
Parameters
- $serverProfileName : string
-
profile name
Tags
Return values
void —openLdapConnection()
Opens the LDAP connection.
private
openLdapConnection() : void
Tags
Return values
void —runServerProfileJobs()
Runs the actions of a server profile.
private
runServerProfileJobs(LAMConfig $conf, CronDatabase $cronDatabase, PDO $pdo, string $serverProfileName) : void
Parameters
- $conf : LAMConfig
-
config
- $cronDatabase : CronDatabase
-
cron DB
- $pdo : PDO
-
PDO
- $serverProfileName : string
-
server profile name
Tags
Return values
void —validateServerProfileName()
Validates the server profile.
private
validateServerProfileName(string $serverProfileName, ServerProfilePersistenceManager $serverProfilePersistenceManager) : void
Parameters
- $serverProfileName : string
-
profile name
- $serverProfilePersistenceManager : ServerProfilePersistenceManager
-
persistence manager