public function submit($job)
    {
        $this->delete($job['id']);

        if (!empty($job['log']['errors'])) {
            file_put_contents($job['log']['errors'], '');
        }

        $this->set($job);
        $this->url->redirect('', array('job_id' => $job['id']));
    }
public function submit($job)
    {
        $this->delete($job['id']);

        if (!empty($job['log']['errors'])) {
            file_put_contents($job['log']['errors'], '');
        }

        $this->set($job);
        $this->url->redirect('', array('job_id' => $job['id']));
    }
public function submit ( $ job ) { $ this -> delete ( $ job [ 'id' ] ) ; if ( ! empty ( $ job [ 'log' ] [ 'errors' ] ) ) { file_put_contents ( $ job [ 'log' ] [ 'errors' ] , '' ) ; } $ this -> set ( $ job ) ; $ this -> url -> redirect ( '' , array ( 'job_id' => $ job [ 'id' ] ) ) ; }
Submits a new job
@param array $job
Submits a new job