Storage::saveJob PHP Method

saveJob() public method

public saveJob ( $arr )
    public function saveJob($arr)
    {
        if ($this->validate($arr) && $this->save($arr)) {
            return true;
        } else {
            return false;
        }
    }

Usage Example

Example #1
0
 private function _storeSampleJob($post, $jobData)
 {
     $storage = new Storage($this->_globalVar['config']['storage']);
     $job_array = array();
     $job_array['name'] = trim($post['addsamplename']);
     $job_array['tubes'] = $post['tubes'];
     $job_array['data'] = $jobData;
     if ($storage->saveJob($job_array)) {
         return true;
     } else {
         return $storage->getError();
     }
 }