PHP Interface mult1mate\crontab\TaskInterface

Author: mult1mate Date: 20.12.15 Time: 13:25
ファイルを表示 Open project: MUlt1mate/cron-manager Interface Usage Examples

Public Methods

Method Description
createNew ( ) : mult1mate\crontab\TaskInterface Creates new task object and returns it
createTaskRun ( ) : mult1mate\crontab\TaskRunInterface Creates new task run object for current task and returns it
getAll ( ) : array Returns array of all tasks
getCommand ( ) : string
getComment ( ) : string
getStatus ( ) : string
getTaskId ( ) : integer
getTime ( ) : string
getTs ( ) : string
getTsUpdated ( ) : string
setCommand ( string $command )
setComment ( string $comment )
setStatus ( string $status )
setTime ( string $time )
setTs ( string $ts )
setTsUpdated ( string $ts )
taskDelete ( ) : mixed Deletes the task
taskGet ( integer $task_id ) : mult1mate\crontab\TaskInterface Returns tasks with given id
taskSave ( ) : mixed Saves the task

Method Details

createNew() public static method

Creates new task object and returns it
public static createNew ( ) : mult1mate\crontab\TaskInterface
return mult1mate\crontab\TaskInterface

createTaskRun() public method

Creates new task run object for current task and returns it
public createTaskRun ( ) : mult1mate\crontab\TaskRunInterface
return mult1mate\crontab\TaskRunInterface

getAll() public static method

Returns array of all tasks
public static getAll ( ) : array
return array

getCommand() public method

public getCommand ( ) : string
return string

getComment() public method

public getComment ( ) : string
return string

getStatus() public method

public getStatus ( ) : string
return string

getTaskId() public method

public getTaskId ( ) : integer
return integer

getTime() public method

public getTime ( ) : string
return string

getTs() public method

public getTs ( ) : string
return string

getTsUpdated() public method

public getTsUpdated ( ) : string
return string

setCommand() public method

public setCommand ( string $command )
$command string

setComment() public method

public setComment ( string $comment )
$comment string

setStatus() public method

public setStatus ( string $status )
$status string

setTime() public method

public setTime ( string $time )
$time string

setTs() public method

public setTs ( string $ts )
$ts string

setTsUpdated() public method

public setTsUpdated ( string $ts )
$ts string

taskDelete() public method

Deletes the task
public taskDelete ( ) : mixed
return mixed

taskGet() public static method

Returns tasks with given id
public static taskGet ( integer $task_id ) : mult1mate\crontab\TaskInterface
$task_id integer
return mult1mate\crontab\TaskInterface

taskSave() public method

Saves the task
public taskSave ( ) : mixed
return mixed