original_string: protected function updateStatusOrder()
      {
          $this->controlAccess('order_edit');
  
          $submitted = array('status' => $this->getSubmitted('status'));
  
          if ($this->order->update($this->data_order['order_id'], $submitted)) {
              $submitted['notify'] = $this->setNotificationUpdateOrder($this->data_order['order_id']);
              $this->logUpdateStatusOrder($submitted);
              $messages = $this->getMassagesUpdateOrder();
              list($severity, $text) = $messages[$submitted['notify']];
              $this->redirect('', $this->text($text), $severity);
          }
  
          $this->redirect('', $this->text('Order has not been updated'), 'warning');
      }
code: protected function updateStatusOrder()
      {
          $this->controlAccess('order_edit');
  
          $submitted = array('status' => $this->getSubmitted('status'));
  
          if ($this->order->update($this->data_order['order_id'], $submitted)) {
              $submitted['notify'] = $this->setNotificationUpdateOrder($this->data_order['order_id']);
              $this->logUpdateStatusOrder($submitted);
              $messages = $this->getMassagesUpdateOrder();
              list($severity, $text) = $messages[$submitted['notify']];
              $this->redirect('', $this->text($text), $severity);
          }
  
          $this->redirect('', $this->text('Order has not been updated'), 'warning');
      }
code_tokens: protected function updateStatusOrder ( ) { $ this -> controlAccess ( 'order_edit' ) ; $ submitted = array ( 'status' => $ this -> getSubmitted ( 'status' ) ) ; if ( $ this -> order -> update ( $ this -> data_order [ 'order_id' ] , $ submitted ) ) { $ submitted [ 'notify' ] = $ this -> setNotificationUpdateOrder ( $ this -> data_order [ 'order_id' ] ) ; $ this -> logUpdateStatusOrder ( $ submitted ) ; $ messages = $ this -> getMassagesUpdateOrder ( ) ; list ( $ severity , $ text ) = $ messages [ $ submitted [ 'notify' ] ] ; $ this -> redirect ( '' , $ this -> text ( $ text ) , $ severity ) ; } $ this -> redirect ( '' , $ this -> text ( 'Order has not been updated' ) , 'warning' ) ; }
docstring: Update an order status
docstring_tokens: Update an order status