Example #1
0
 /**
  * Standard constructor method, the cron job are required.
  * If the job data property is a string, it will be unserialized.
  * @param Enlight_Components_Cron_Job $job
  */
 public function __construct(Enlight_Components_Cron_Job $job)
 {
     $data = $job->getData();
     if (is_string($data)) {
         $data = unserialize($data);
     }
     $this->job = $job;
     parent::__construct($job->getAction(), $data);
 }