PHP Class TaskRunFile

Author: mult1mate Date: 10.04.16 Time: 13:39
Inheritance: implements mult1mate\crontab\TaskRunInterface
Datei anzeigen Open project: MUlt1mate/cron-manager

Protected Properties

Property Type Description
$execution_time
$log_name string Default log file name
$logs_folder string Folder with logs files. Should exists
$output
$status
$task_id
$ts

Public Methods

Method Description
getExecutionTime ( ) : integer
getOutput ( ) : string
getStatus ( ) : string
getTaskId ( ) : integer
getTaskRunId ( ) : integer
getTs ( ) : string
saveTaskRun ( ) : boolean Writes log in file. Do NOT actually saves the task run
setExecutionTime ( integer $execution_time )
setOutput ( string $output )
setStatus ( string $status )
setTaskId ( integer $task_id )
setTs ( string $ts )

Method Details

getExecutionTime() public method

public getExecutionTime ( ) : integer
return integer

getOutput() public method

public getOutput ( ) : string
return string

getStatus() public method

public getStatus ( ) : string
return string

getTaskId() public method

public getTaskId ( ) : integer
return integer

getTaskRunId() public method

public getTaskRunId ( ) : integer
return integer

getTs() public method

public getTs ( ) : string
return string

saveTaskRun() public method

Writes log in file. Do NOT actually saves the task run
public saveTaskRun ( ) : boolean
return boolean

setExecutionTime() public method

public setExecutionTime ( integer $execution_time )
$execution_time integer

setOutput() public method

public setOutput ( string $output )
$output string

setStatus() public method

public setStatus ( string $status )
$status string

setTaskId() public method

public setTaskId ( integer $task_id )
$task_id integer

setTs() public method

public setTs ( string $ts )
$ts string

Property Details

$execution_time protected_oe property

protected $execution_time

$log_name protected_oe property

Default log file name
protected string $log_name
return string

$logs_folder protected_oe property

Folder with logs files. Should exists
protected string $logs_folder
return string

$output protected_oe property

protected $output

$status protected_oe property

protected $status

$task_id protected_oe property

protected $task_id

$ts protected_oe property

protected $ts