s2ana.php5.sandbox.seasar.org
The Seasar Project - S2AnA.PHP5
http://s2ana.php5.sandbox.seasar.org/authorization.html
Raquo; ドキュメント » 承認(Authorization). S2Base.PHP5 with S2AnA. Component name="requireLogin" class="S2AnA AuthenticatedAccessOnlyInterceptor" /. S2AnA AllowInterceptor, S2AnA DenyInterceptor. Component name="roleA" class="S2AnA AuthenticatedAccessOnlyInterceptor" arg "roleA" /arg /component. Include path="/path/to/ana.dicon" component name="authComponent" class="AuthComponentImpl" aspect requireLogin /aspect /component. Component name="authenticationContext" class="S2AnA NullAuthenticationContext" /.
s2ana.php5.sandbox.seasar.org
The Seasar Project - S2AnA.PHP5
http://s2ana.php5.sandbox.seasar.org/setup.html
Raquo; ドキュメント » セットアップ. S2Base.PHP5 with S2AnA. S2AnA-version.tgz を取得し、 pear install コマンドでインストールして下さい。 Pear install S2AnA-version.tgz install ok: channel:/ pear.php.net/S2AnA-version % pear list S2AnA version state %. S2Container.php と S2AnA.php を読み込み、 autoload関数を次のように定義して下さい。 Php require once 'S2Container/S2Container.php'; require once 'S2AnA/S2AnA.php'; function autoload($class = null){ if($class! Null){ include once("$class.class.php"); } }? Null){ include once("$class.class.php"); } }? Php require on...
s2base.php5.sandbox.seasar.org
The Seasar Project - S2Base.PHP5
http://s2base.php5.sandbox.seasar.org/2.0/setup.html
Raquo; ドキュメント » セットアップ. S2Container.PHP5 と S2Dao.PHP5 のバージョンアップ. S2Base.PHP5では、 s2container.php5-1.2. S2Base-version.tgz を取得し、 pear install コマンドでインストールして下さい。 Pear install S2Base-version.tgz % pear list -c uri Installed packages, channel uri: = = = = = = = = = = = = = = = = = Package Version State S2Base 1.2.0RC1 beta %. PEARバージョン 1.4.11 以上が必要です。 S2Container.PHP5、S2Dao.PHP5 のインストールが別途必要です。 PEARパッケージのインストールが完了すると、PHP バイナリディレクトリ、または PHP PEAR BIN DIR で 指定されたディレクトリに、s2base (s2base.bat) コマンドがインストールされます。 Pwd /s...
s2base.php5.sandbox.seasar.org
The Seasar Project - S2Base.PHP5
http://s2base.php5.sandbox.seasar.org/2.0/dir.html
Raquo; ドキュメント » ディレクトリ構成. S2base.php5-version.zip を解凍すると次のディレクトリが展開されます。 S2base.php5 - app アプリケーション本体格納ディレクトリ - config 設定ファイル保存ディレクトリ - lib ライブラリ関連ディレクトリ - public WEB公開ディレクトリ - test テスト用ディレクトリ - var ログ キャッシュディレクトリ `- vendor 外部フレームワーク、ライブラリ等との連携モジュール. Publicディレクトリは、 Zend Framework と組合わせる. を 実行しモジュール名を Default とすると、次のディレクトリ群が app/modules ディレクトリと test/modules ディレクトリに作成されます。
s2base.php5.sandbox.seasar.org
The Seasar Project - S2Base.PHP5
http://s2base.php5.sandbox.seasar.org/2.0/javelin.html
Raquo; サブプロジェクト » S2Javelin.PHP5. に含まれる JavelinTraceInterceptor を PHP5 に移植します。 S2JavelinTraceInterceptor によって出力されるトレースログは、 ArrowVision という表示用ツールによりビジュアルに表示することができます。 S2Javelin-1.0.0.tgz. WindowsXP : php-5.1.6-Win32. Debian GNU/Linux 3.1 : php-5.1.6. CentOS 4.3 : php-5.1.4. Mac OS X 10.4.7 : php-5.1.4. S2base.php5/app/commons/dicon/javelin.dicon に S2JavelinTraceInterceptor コンポーネントを定義済みの ダイコンファイルがあります。 このダイコンファイルをアクションダイコンやサービスダイコンで include し、S2JavelinTraceInterceptor をアスペクトすることができます。 DOCTYPE components PU...
s2ana.php5.sandbox.seasar.org
The Seasar Project - S2AnA.PHP5
http://s2ana.php5.sandbox.seasar.org/authentication.html
Raquo; ドキュメント » 認証(Authentication). S2Base.PHP5 with S2AnA. Component name="authenticationContext" class="S2AnA AuthenticationContextImpl". Php class ExampleAuthenticationContext implements S2AnA AuthenticationCotext { public function getUserPrincipal() { return AuthManager: getLoginUser(); } public function isAuthenticated() { $authenticated = FALSE; $user = $this- getUserPrincipal(); if ($user! In array($role, $roles) { return FALSE; } return TRUE; } }?