コード例 #1
0
 public static function getStatusObject($status, $message)
 {
     $js = new SchedulerJobStatus();
     $js->setStatus($status);
     $js->setMessage($message);
     return $js;
 }
コード例 #2
0
 /**
  * Must return an object of type SchedulerJobStatus
  * @param $args
  * @return SchedulerJobStatus
  */
 public function perform($args)
 {
     return SchedulerJobStatus::getStatusObject(SchedulerJobStatus::SCHEDULERJOB_STATUS_SUCCESS, "Dummy job - Successful");
 }