/**
  * The actual update function. Add your update task in here
  *
  * @return void
  */
 protected function processUpdates()
 {
     $report = Tools::updateJavaScript();
     if ($report['error']) {
         $this->messageArray[] = [FlashMessage::ERROR, 'ERROR', $report['message']];
     } else {
         $this->messageArray[] = [FlashMessage::OK, 'OK', $report['message']];
     }
 }
Example #2
0
 /**
  * This is the main method that is called when a task is executed
  *
  * @return bool Returns true on successful execution, false on error
  */
 public function execute()
 {
     $report = Tools::updateJavaScript();
     if ($report['error']) {
         return false;
     } else {
         return true;
     }
 }