예제 #1
0
 public function showAction()
 {
     $id = $this->intVal(3);
     $jobsModel = new JobsModel();
     $job = $jobsModel->jobById($id);
     $this->_mainContent->assign("job", $job);
     $this->_mainContent->assign("userid", $this->userid);
     $this->_mainContent->assign("isEmailValidated", $this->isEmailValidated);
     $this->display();
 }
예제 #2
0
 public function updatejobsAction()
 {
     $jobsModel = new JobsModel();
     $jobsModel->update();
 }
예제 #3
0
 public function jobs_complete_job()
 {
     // quit if no job name provided
     if (!isset($_REQUEST['job'])) {
         return false;
     }
     // mark job as completed
     $job = new JobsModel($_REQUEST['job']);
     $job->completeJob();
     if ('updateEbayData' == $job->item['job_name']) {
         // if we were updating ebay details as part of setup, move to next step
         if ('2' == self::getOption('setup_next_step')) {
             self::updateOption('setup_next_step', 3);
         }
     }
     // build response
     $response = new stdClass();
     $response->msg = $job->item['job_name'] . ' completed';
     $response->error = '';
     $response->success = true;
     $response->job_key = $job->key;
     $this->returnJSON($response);
     exit;
 }