protected function setOrder($order_id)
    {
        $this->data_order = array();

        if (is_numeric($order_id)) {

            $this->data_order = $this->order->get($order_id);

            if (empty($this->data_order)) {
                $this->outputHttpStatus(404);
            }

            $this->order_history->setViewed($this->data_order);
            $this->prepareOrder($this->data_order);
        }
    }
protected function setOrder($order_id)
    {
        $this->data_order = array();

        if (is_numeric($order_id)) {

            $this->data_order = $this->order->get($order_id);

            if (empty($this->data_order)) {
                $this->outputHttpStatus(404);
            }

            $this->order_history->setViewed($this->data_order);
            $this->prepareOrder($this->data_order);
        }
    }
protected function setOrder ( $ order_id ) { $ this -> data_order = array ( ) ; if ( is_numeric ( $ order_id ) ) { $ this -> data_order = $ this -> order -> get ( $ order_id ) ; if ( empty ( $ this -> data_order ) ) { $ this -> outputHttpStatus ( 404 ) ; } $ this -> order_history -> setViewed ( $ this -> data_order ) ; $ this -> prepareOrder ( $ this -> data_order ) ; } }
Returns an order
@param integer $order_id
Returns an order