protected function logUpdateStatusOrder(array $submitted)
    {
        if ($this->data_order['status'] != $submitted['status']) {

            $log = array(
                'user_id' => $this->uid,
                'order_id' => $this->data_order['order_id'],
                'text' => $this->text('Update order status to @status', array('@status' => $submitted['status']))
            );

            $this->order_history->add($log);
        }
    }
protected function logUpdateStatusOrder(array $submitted)
    {
        if ($this->data_order['status'] != $submitted['status']) {

            $log = array(
                'user_id' => $this->uid,
                'order_id' => $this->data_order['order_id'],
                'text' => $this->text('Update order status to @status', array('@status' => $submitted['status']))
            );

            $this->order_history->add($log);
        }
    }
protected function logUpdateStatusOrder ( array $ submitted ) { if ( $ this -> data_order [ 'status' ] != $ submitted [ 'status' ] ) { $ log = array ( 'user_id' => $ this -> uid , 'order_id' => $ this -> data_order [ 'order_id' ] , 'text' => $ this -> text ( 'Update order status to @status' , array ( '@status' => $ submitted [ 'status' ] ) ) ) ; $ this -> order_history -> add ( $ log ) ; } }
Log the status updated event
@param array $submitted
Log the status updated event