magic-core
[ class tree: magic-core ] [ index: magic-core ] [ all elements ]

Class: SessionForward

Source Location: /core/helper/action/impl/SessionForward.php

Class Overview

ActionResult
   |
   --SessionForward

セッション付きのフォワード処理を実行します.


Author(s):

  • T.Okumura

Version:

  • 1.0.0

Methods


Inherited Variables

Inherited Methods

Class: ActionResult

ActionResult::execute()
Viewクラスを実行します.
ActionResult::getResponse()
HttpResponseクラスを取得します.
ActionResult::getSession()
HttpSessionクラスを取得します.
ActionResult::setResponse()
HttpResponseクラスを設定します.
ActionResult::setSession()
HttpSessionクラスを設定します.

Class Details

[line 31]
セッション付きのフォワード処理を実行します.

ViewクラスからHTMLファイルにレンダリングします。
Forwardクラスとの違いは、セッションIDを 自動的にhidden項目に書き出すかどうかだけです。
Cookieが利用できない場合などに、Forwardクラスで処理を実行すると、 セッションが継続できなくなる事に注意してください。
特に携帯端末を対象にしたアプリケーションが対象になります。
アプリケーション側で(セキュリティの観点からは、あまりお勧めできませんが) transSidを出力するか、このクラスを使用するようにしてください。
Cookieが利用できる場合やセッションを使用しない場合は、 Forwardクラスを利用してください。
フレームワークによって書き出されたセッションIDは、HTMLファイル側で
<?=$magic>
とする事で利用できます。




Tags:

author:  T.Okumura
version:  1.0.0
see:  Forward
final:  


[ Top ]


Class Methods


constructor __construct [line 45]

SessionForward __construct( [string $viewName = NULL])

コンストラクタ.

Actionクラスの名前とコールするViewクラスの名前が同じ場合、 この引数は省略できます。




Tags:

access:  public


Parameters:

string   $viewName   [optional] コールするViewクラス名(オプション)

[ Top ]

method execute [line 58]

void execute( NameConfigure $name, PathConfigure $path, RouteConfigure $route)

ViewクラスのView::forward()を実行します.

セッションIDを書き出すように指定してコールします。




Tags:

see:  ActionResult::execute()
access:  public


Overrides ActionResult::execute() (Viewクラスを実行します.)

Parameters:

NameConfigure   $name   命名規則設定クラス
PathConfigure   $path   パス設定クラス
RouteConfigure   $route   ルート設定クラス

[ Top ]


Documentation generated on Fri, 16 Dec 2011 11:13:57 +0100 by phpDocumentor 1.4.3