Пример #1
0
 /**
  * Check Publish verify if all providers return response
  * in case some provider did not respond, the action will resend the publish
  * 
  * Check Publish Action - "http://SERVER/Cron/checkpublish"
  * 
  * @package ApplicationController
  * @subpackage CronController
  */
 public function checkpublishAction()
 {
     $run = new Application_Model_Cron();
     $run->checkPublish($this->getRequest()->getParams());
 }
Пример #2
0
 /**
  * method to force publish on specific request
  */
 public function publishAction()
 {
     $disabled_output = $this->getRequest()->getParam('no-output');
     if (!isset($disabled_output) || !$disabled_output) {
         $output_enabled = true;
     } else {
         $output_enabled = false;
     }
     $this->view->output_enabled = $output_enabled;
     $reqId = strtoupper($this->getRequest()->getParam('reqId'));
     $cron = new Application_Model_Cron();
     $request = $cron->getRequestByID($reqId);
     if (FALSE !== $request) {
         $sentRows = $cron->checkPublish($request);
         if ($sentRows === TRUE) {
             $this->view->status = "Publish response";
         } else {
             $this->view->status = TRUE;
             $this->view->rows = $sentRows;
         }
     } else {
         $this->view->status = "No request with this id: " . $reqId;
     }
 }