public function history()
    {
        $member = Security::getCurrentUser();
        $list = PaginatedList::create(
            $member->HistoricInvoices(),
            $this->owner->getRequest()
        );

        $this
            ->owner
            ->customise([
                "Title" => _t('Orders.OrderHistory', 'Order History'),
                "MenuTitle" => _t('Orders.OrderHistory', 'Order History'),
                "Content" => $this->owner->renderWith(
                    "SilverCommerce\\OrdersAdmin\\Includes\\OrdersList",
                    ["List" => $list]
                )
            ]);

        $this->owner->extend("updateHistoricOrders", $orders);

        return $this
            ->owner
            ->renderWith([
                'AccountController_history',
                AccountController::class . '_history',
                'AccountController',
                AccountController::class,
                'Page'
            ]);
    }
public function history()
    {
        $member = Security::getCurrentUser();
        $list = PaginatedList::create(
            $member->HistoricInvoices(),
            $this->owner->getRequest()
        );

        $this
            ->owner
            ->customise([
                "Title" => _t('Orders.OrderHistory', 'Order History'),
                "MenuTitle" => _t('Orders.OrderHistory', 'Order History'),
                "Content" => $this->owner->renderWith(
                    "SilverCommerce\\OrdersAdmin\\Includes\\OrdersList",
                    ["List" => $list]
                )
            ]);

        $this->owner->extend("updateHistoricOrders", $orders);

        return $this
            ->owner
            ->renderWith([
                'AccountController_history',
                AccountController::class . '_history',
                'AccountController',
                AccountController::class,
                'Page'
            ]);
    }
public function history ( ) { $ member = Security :: getCurrentUser ( ) ; $ list = PaginatedList :: create ( $ member -> HistoricInvoices ( ) , $ this -> owner -> getRequest ( ) ) ; $ this -> owner -> customise ( [ "Title" => _t ( 'Orders.OrderHistory' , 'Order History' ) , "MenuTitle" => _t ( 'Orders.OrderHistory' , 'Order History' ) , "Content" => $ this -> owner -> renderWith ( "SilverCommerce\\OrdersAdmin\\Includes\\OrdersList" , [ "List" => $ list ] ) ] ) ; $ this -> owner -> extend ( "updateHistoricOrders" , $ orders ) ; return $ this -> owner -> renderWith ( [ 'AccountController_history' , AccountController :: class . '_history' , 'AccountController' , AccountController :: class , 'Page' ] ) ; }
Display all historic orders for the current user

@return HTMLText
Display all historic orders for the current user