Methods

__construct()

__construct(array $contenidoVars, $phpFile) 

Parameters

$contenidoVars

$phpFile

Exist the file and is it a php file

existFile() : bool

Returns

boolif exist

Get all Cronjobs in directory cronjobs from contenido

getAllCronjobs() 

Get the contents of the crontab.txt file

getContentsCrontabFile() : \string,

Returns

\string,contents of the file or ''

Get the directory path of cronjobs

getCronjobDirectory() : string

Returns

string

Get the directory path of cronlog

getCronlogDirectory() : string

Returns

string

Get date of last execution of cronjob

getDateLastExecute() : \date

Returns

\date

Return the name of file

getFile() : string

Returns

stringfilename

Get the last lines of log file

getLastLines(int $lines) : \string,

Parameters

$lines

int

Returns

\string,the lines

Save the data to crontab.txt file

saveCrontabFile(string $data) : mixed

Parameters

$data

string

Returns

mixedfile_put_contents

Set the execute-time to $this->_phpFile.job file.

setRunTime(int $timestamp) 

Parameters

$timestamp

int

 Properties

 

$CRONTAB_FILE 
 

$JOB_ENDING 
 

$LOG_ENDING 
 

$_cfg 
 

$_conVars : array

..)

 

$_cronjobDirectory : string
 

$_cronlogDirectory : string
 

$_phpFile 
 

$_fileName : string