public function getOrders($limit = 10)
    {
        if ($Member = Security::getCurrentUser()) {
            $Orders = $Member->Orders()->sort('TransactionDate', 'DESC');

            $list = new PaginatedList($Orders, Controller::curr()->getRequest());
            $list->setPageLength($limit);

            return $list;
        }

        return false;
    }
public function getOrders($limit = 10)
    {
        if ($Member = Security::getCurrentUser()) {
            $Orders = $Member->Orders()->sort('TransactionDate', 'DESC');

            $list = new PaginatedList($Orders, Controller::curr()->getRequest());
            $list->setPageLength($limit);

            return $list;
        }

        return false;
    }
public function getOrders ( $ limit = 10 ) { if ( $ Member = Security :: getCurrentUser ( ) ) { $ Orders = $ Member -> Orders ( ) -> sort ( 'TransactionDate' , 'DESC' ) ; $ list = new PaginatedList ( $ Orders , Controller :: curr ( ) -> getRequest ( ) ) ; $ list -> setPageLength ( $ limit ) ; return $ list ; } return false ; }
return all current Member's Orders.

@param int $limit

@return bool|PaginatedList

@throws \Exception
return all current Member s Orders .