public function orderfromid()
    {
        $request = $this->owner->getRequest();
        $id = (int)$request->param('ID');
        if (!$id) {
            $id = (int)$request->postVar('OrderID');
        }

        return $this->allorders()->byID($id);
    }
public function orderfromid()
    {
        $request = $this->owner->getRequest();
        $id = (int)$request->param('ID');
        if (!$id) {
            $id = (int)$request->postVar('OrderID');
        }

        return $this->allorders()->byID($id);
    }
public function orderfromid ( ) { $ request = $ this -> owner -> getRequest ( ) ; $ id = ( int ) $ request -> param ( 'ID' ) ; if ( ! $ id ) { $ id = ( int ) $ request -> postVar ( 'OrderID' ) ; } return $ this -> allorders ( ) -> byID ( $ id ) ; }
Get the order via url 'ID' or form submission 'OrderID'.
It will check for permission based on session stored ids or member id.

@return Order order
Get the order via url ID or form submission OrderID . It will check for permission based on session stored ids or member id .