.

RedirectActionRenderDecorator Class Reference
[Controller]

Redirect to given action. More...

Inheritance diagram for RedirectActionRenderDecorator:
RenderDecoratorBase IRenderDecorator

List of all members.

Public Member Functions

  __construct ($target_path)
  Constructor.
  initialize ($page_data)
  Initialize this decorator and the data passed.

Detailed Description

Redirect to given action.

Author:
Gerd Riesselmann
Attention:
This class is not ready yet - don't use

Definition at line 10 of file redirectactionrenderdecorator.cls.php.


Constructor & Destructor Documentation

RedirectActionRenderDecorator::__construct ( target_path  ) 

Constructor.

Parameters:
ICacheManager  $cache_manager Desired Cache Manager
Returns:
void

Definition at line 24 of file redirectactionrenderdecorator.cls.php.

00024                                                   {
00025                 $this->target_path = $target_path;
00026         }

Member Function Documentation

RedirectActionRenderDecorator::initialize ( page_data  ) 

Initialize this decorator and the data passed.

Parameters:
PageData  $page_data
Returns:
void

Reimplemented from RenderDecoratorBase.

Definition at line 34 of file redirectactionrenderdecorator.cls.php.

00034                                                {
00035                 Url::current()->clear_query()->set_path($this->target_path)->redirect(Url::PERMANENT);
00036                 exit;
00037         }

The documentation for this class was generated from the following file: