function setJob($id)
 {
     $id = trim($id);
     if ($id == FALSE or $id == 0 or $id == '') {
         $id = 0;
     }
     if (getTTProductEdition() == TT_PRODUCT_PROFESSIONAL) {
         $jlf = new JobListFactory();
     }
     if ($id == 0 or $this->Validator->isResultSetWithRows('job', $jlf->getByID($id), TTi18n::gettext('Job does not exist'))) {
         $this->data['job_id'] = $id;
         return TRUE;
     }
     return FALSE;
 }
 function setDefaultJob($id)
 {
     $id = trim($id);
     if ($id == FALSE or $id == 0 or $id == '') {
         $id = 0;
     }
     Debug::Text('Job ID: ' . $id, __FILE__, __LINE__, __METHOD__, 10);
     if (getTTProductEdition() == TT_PRODUCT_PROFESSIONAL) {
         $jlf = new JobListFactory();
     }
     if ($id == 0 or $this->Validator->isResultSetWithRows('job_id', $jlf->getByID($id), TTi18n::gettext('Invalid Job'))) {
         $this->data['job_id'] = $id;
         return TRUE;
     }
     return FALSE;
 }