edit
edit($num_task,$path,$type=0,$date="",$time="",$count=-1,$active=true,$comments="",$add_params=""); - change the task data with the specified number in the script schedule
The function accepts parameters as input:
$num_task – task number$path – new path to the script being executed$type – new task type :
- 0 - once
- 1 - Once an hour
- 2 - Once a day
- 3 - once a week
- 4 - once a month
- 5 - once a year
- 6 - optional
- 7 - Times per minute
- 8 Times in 5 minutes
- 9 - every 10 minutes
- 10 - Times in half an hour
- 11 - N times
- 12 - endlessly
$date – date - format system - for example 07/03/15$time – time - format system - for example 08:01:02$count – the new number of launches$active – new activity tasks$comments – comments$add_params – additional information to the task selection - after how many minutes to run zaadchu (available from 4.10.6)
After testing, the function returns the result of its work to the script :
true – completed successfully
true – failed