Crontab\Crontab::removeAllJobs PHP 메소드

removeAllJobs() 공개 메소드

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

Usage Example

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