Ejemplo n.º 1
0
 /**
  * @param string $resultId
  *
  * @return bool|array|mixed
  */
 public function trackResult($resultId)
 {
     /** @var JobResult $_result */
     if (null === ($_result = JobResult::byResultId($resultId)->first())) {
         return false;
     }
     return $_result->result_text;
 }
 /**
  * @param string $resultId The identifier to delete
  *
  * @return bool
  */
 public function deletePublishedResult($resultId)
 {
     //  doesn't exist? it's already been deleted as far as we're concerned
     if (null === ($_result = JobResult::byResultId($resultId)->first())) {
         return true;
     }
     return $_result->delete();
 }