Crontab\Crontab::removeAllJobs PHP Method

removeAllJobs() public method

Remove all job in the current crontab
public removeAllJobs ( ) : Crontab
return Crontab
    public function removeAllJobs()
    {
        $this->jobs = array();
        return $this;
    }

Usage Example

Beispiel #1
0
 /**
  * Deletes all cron jobs
  * 
  * @return Crontab
  */
 public function clear()
 {
     $this->crontab->removeAllJobs();
     return $this;
 }