admin/jqadm/src/Admin/JQAdm/Base.php
protected function nextAction( \Aimeos\MW\View\Iface $view, $action, $resource, $id = null, $act = null )
	{
		$params = $this->getClientParams();
		$params['resource'] = $resource;
		unset( $params['id'] );

		if( $act ) {
			$params['act'] = $act;
		}

		switch( $action )
		{
			case 'search':
				$target = $view->config( 'admin/jqadm/url/search/target' );
				$cntl = $view->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
				$action = $view->config( 'admin/jqadm/url/search/action', 'search' );
				$conf = $view->config( 'admin/jqadm/url/search/config', [] );
				$url = $view->url( $target, $cntl, $action, $params, [], $conf );
				break;
			case 'create':
				$target = $view->config( 'admin/jqadm/url/create/target' );
				$cntl = $view->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
				$action = $view->config( 'admin/jqadm/url/create/action', 'create' );
				$conf = $view->config( 'admin/jqadm/url/create/config', [] );
				$url = $view->url( $target, $cntl, $action, $params, [], $conf );
				break;
			case 'copy':
				$target = $view->config( 'admin/jqadm/url/copy/target' );
				$cntl = $view->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
				$action = $view->config( 'admin/jqadm/url/copy/action', 'copy' );
				$conf = $view->config( 'admin/jqadm/url/copy/config', [] );
				$url = $view->url( $target, $cntl, $action, ['id' => $id] + $params, [], $conf );
				break;
			default:
				$target = $view->config( 'admin/jqadm/url/get/target' );
				$cntl = $view->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
				$action = $view->config( 'admin/jqadm/url/get/action', 'get' );
				$conf = $view->config( 'admin/jqadm/url/get/config', [] );
				$url = $view->url( $target, $cntl, $action, ['id' => $id] + $params, [], $conf );
		}

		$view->response()->withStatus( 302 );
		$view->response()->withHeader( 'Location', $url );
		$view->response()->withHeader( 'Cache-Control', 'no-store' );

		return $view;
	}
protected function nextAction( \Aimeos\MW\View\Iface $view, $action, $resource, $id = null, $act = null )
	{
		$params = $this->getClientParams();
		$params['resource'] = $resource;
		unset( $params['id'] );

		if( $act ) {
			$params['act'] = $act;
		}

		switch( $action )
		{
			case 'search':
				$target = $view->config( 'admin/jqadm/url/search/target' );
				$cntl = $view->config( 'admin/jqadm/url/search/controller', 'Jqadm' );
				$action = $view->config( 'admin/jqadm/url/search/action', 'search' );
				$conf = $view->config( 'admin/jqadm/url/search/config', [] );
				$url = $view->url( $target, $cntl, $action, $params, [], $conf );
				break;
			case 'create':
				$target = $view->config( 'admin/jqadm/url/create/target' );
				$cntl = $view->config( 'admin/jqadm/url/create/controller', 'Jqadm' );
				$action = $view->config( 'admin/jqadm/url/create/action', 'create' );
				$conf = $view->config( 'admin/jqadm/url/create/config', [] );
				$url = $view->url( $target, $cntl, $action, $params, [], $conf );
				break;
			case 'copy':
				$target = $view->config( 'admin/jqadm/url/copy/target' );
				$cntl = $view->config( 'admin/jqadm/url/copy/controller', 'Jqadm' );
				$action = $view->config( 'admin/jqadm/url/copy/action', 'copy' );
				$conf = $view->config( 'admin/jqadm/url/copy/config', [] );
				$url = $view->url( $target, $cntl, $action, ['id' => $id] + $params, [], $conf );
				break;
			default:
				$target = $view->config( 'admin/jqadm/url/get/target' );
				$cntl = $view->config( 'admin/jqadm/url/get/controller', 'Jqadm' );
				$action = $view->config( 'admin/jqadm/url/get/action', 'get' );
				$conf = $view->config( 'admin/jqadm/url/get/config', [] );
				$url = $view->url( $target, $cntl, $action, ['id' => $id] + $params, [], $conf );
		}

		$view->response()->withStatus( 302 );
		$view->response()->withHeader( 'Location', $url );
		$view->response()->withHeader( 'Cache-Control', 'no-store' );

		return $view;
	}
protected function nextAction ( \ Aimeos \ MW \ View \ Iface $ view , $ action , $ resource , $ id = null , $ act = null ) { $ params = $ this -> getClientParams ( ) ; $ params [ 'resource' ] = $ resource ; unset ( $ params [ 'id' ] ) ; if ( $ act ) { $ params [ 'act' ] = $ act ; } switch ( $ action ) { case 'search' : $ target = $ view -> config ( 'admin/jqadm/url/search/target' ) ; $ cntl = $ view -> config ( 'admin/jqadm/url/search/controller' , 'Jqadm' ) ; $ action = $ view -> config ( 'admin/jqadm/url/search/action' , 'search' ) ; $ conf = $ view -> config ( 'admin/jqadm/url/search/config' , [ ] ) ; $ url = $ view -> url ( $ target , $ cntl , $ action , $ params , [ ] , $ conf ) ; break ; case 'create' : $ target = $ view -> config ( 'admin/jqadm/url/create/target' ) ; $ cntl = $ view -> config ( 'admin/jqadm/url/create/controller' , 'Jqadm' ) ; $ action = $ view -> config ( 'admin/jqadm/url/create/action' , 'create' ) ; $ conf = $ view -> config ( 'admin/jqadm/url/create/config' , [ ] ) ; $ url = $ view -> url ( $ target , $ cntl , $ action , $ params , [ ] , $ conf ) ; break ; case 'copy' : $ target = $ view -> config ( 'admin/jqadm/url/copy/target' ) ; $ cntl = $ view -> config ( 'admin/jqadm/url/copy/controller' , 'Jqadm' ) ; $ action = $ view -> config ( 'admin/jqadm/url/copy/action' , 'copy' ) ; $ conf = $ view -> config ( 'admin/jqadm/url/copy/config' , [ ] ) ; $ url = $ view -> url ( $ target , $ cntl , $ action , [ 'id' => $ id ] + $ params , [ ] , $ conf ) ; break ; default : $ target = $ view -> config ( 'admin/jqadm/url/get/target' ) ; $ cntl = $ view -> config ( 'admin/jqadm/url/get/controller' , 'Jqadm' ) ; $ action = $ view -> config ( 'admin/jqadm/url/get/action' , 'get' ) ; $ conf = $ view -> config ( 'admin/jqadm/url/get/config' , [ ] ) ; $ url = $ view -> url ( $ target , $ cntl , $ action , [ 'id' => $ id ] + $ params , [ ] , $ conf ) ; } $ view -> response ( ) -> withStatus ( 302 ) ; $ view -> response ( ) -> withHeader ( 'Location' , $ url ) ; $ view -> response ( ) -> withHeader ( 'Cache-Control' , 'no-store' ) ; return $ view ; }
Adds a redirect to the response for the next action

@param \Aimeos\MW\View\Iface $view View object
@param string $action Next action
@param string $resource Resource name
@param string $id ID of the next resource item
@return \Aimeos\MW\View\Iface Modified view object
Adds a redirect to the response for the next action