\CrontabEditor
System crontab editor class
Synopsis
class CrontabEditor
{
- // constants
- const TMP_FILE_PATH = 'exports/crontab_tmp';
- const URL_ME = '?module=crontabeditor';
- const URL_BACK = '?module=sysconf';
- // members
- protected array $billingCfg = ;
- protected string $currentCrontab = '';
- // methods
- public void __construct()
- protected void loadConfigs()
- protected void loadCrontab()
- public string getSystemName()
- public string getCurrentCrontab()
- public string renderEditForm()
- public void saveTempCrontab()
- public void/string installNewCrontab()
Constants
Name | Value |
---|---|
TMP_FILE_PATH | 'exports/crontab_tmp' |
URL_ME | '?module=crontabeditor' |
URL_BACK | '?module=sysconf' |
Members
protected
- $billingCfg
—
array
Contains billing.ini config file as key=>value - $currentCrontab
—
string
Contains current crontab state
Methods
protected
- loadConfigs() — Loads required configs into protected properties
- loadCrontab() — Loads current crontab state into protected property
public
- __construct() — Creates new crontab editor instance
- getCurrentCrontab() — Returns current crontab state
- getSystemName() — Returns current host system name
- installNewCrontab() — Installs new crontab jobs into system crontab
- renderEditForm() — Renders crontab editing interface form
- saveTempCrontab() — Saves received editor form content into temporary file