src/wcmf/lib/presentation/Controller.php
protected function executeSubAction($action) {
    $curRequest = $this->getRequest();
    $subRequest = ObjectFactory::getNewInstance('request');
    $subRequest->setSender(get_class($this));
    $subRequest->setContext($curRequest->getContext());
    $subRequest->setAction($action);
    $subRequest->setHeaders($curRequest->getHeaders());
    $subRequest->setValues($curRequest->getValues());
    $subRequest->setFormat('null');
    $subRequest->setResponseFormat('null');
    $subResponse = ObjectFactory::getNewInstance('response');
    $this->actionMapper->processAction($subRequest, $subResponse);
    return $subResponse;
  }
protected function executeSubAction($action) {
    $curRequest = $this->getRequest();
    $subRequest = ObjectFactory::getNewInstance('request');
    $subRequest->setSender(get_class($this));
    $subRequest->setContext($curRequest->getContext());
    $subRequest->setAction($action);
    $subRequest->setHeaders($curRequest->getHeaders());
    $subRequest->setValues($curRequest->getValues());
    $subRequest->setFormat('null');
    $subRequest->setResponseFormat('null');
    $subResponse = ObjectFactory::getNewInstance('response');
    $this->actionMapper->processAction($subRequest, $subResponse);
    return $subResponse;
  }
protected function executeSubAction ( $ action ) { $ curRequest = $ this -> getRequest ( ) ; $ subRequest = ObjectFactory :: getNewInstance ( 'request' ) ; $ subRequest -> setSender ( get_class ( $ this ) ) ; $ subRequest -> setContext ( $ curRequest -> getContext ( ) ) ; $ subRequest -> setAction ( $ action ) ; $ subRequest -> setHeaders ( $ curRequest -> getHeaders ( ) ) ; $ subRequest -> setValues ( $ curRequest -> getValues ( ) ) ; $ subRequest -> setFormat ( 'null' ) ; $ subRequest -> setResponseFormat ( 'null' ) ; $ subResponse = ObjectFactory :: getNewInstance ( 'response' ) ; $ this -> actionMapper -> processAction ( $ subRequest , $ subResponse ) ; return $ subResponse ; }
Delegate the current request to another action. The context is the same as
the current context and the source controller will be set to this.
The request and response format will be NullFormat which means that all
request values should be passed in the application internal format and
all response values will have that format. Execution will return to the
calling controller instance afterwards.
@param $action The name of the action to execute
@return Response instance
Delegate the current request to another action . The context is the same as the current context and the source controller will be set to this . The request and response format will be NullFormat which means that all request values should be passed in the application internal format and all response values will have that format . Execution will return to the calling controller instance afterwards .