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

Class: IFinalFilter

Source Location: /package/core/interfaces.inc

Interface Overview


標準終了フィルタのインターフェイスです。


Methods



Class Details

[line 40]
標準終了フィルタのインターフェイスです。

Ag:PUREの終了処理で実行されるフィルタのインターフェイスです。 Ag:PUREでは出力結果は標準的にバッファリングされます。 Ag:PUREの終了処理はバッファリングされている出力結果に対して登録されている終了フィルタを順次適用、最終的な出力結果を得ます。

終了フィルタを実装する場合、IFinalFilterインターフェイスを実装し、PUREクラスに登録します。 以下に例を示します。

  1.  class SampleFilter extends PURE_Class implements IFinalFilter
  2.  {
  3.      public function execute($source)
  4.      {
  5.          // ... フィルタ処理 ...
  6.          return $source;
  7.      }
  8.  }
  9.  
  10.  PURE::addFinalFilter(new SampleFilter());




[ Top ]


Class Methods


method execute [line 51]

string execute( string $source)

フィルタの主処理を実装します。

executeメソッドはバッファリングされた出力内容を整形して返すフィルタの主処理です。 引数$sourceで与えられた出力内容を整形し、返却してください。




Tags:

return:  フィルタリング後の文字列
access:  public


Parameters:

string   $source   フィルタリングする文字列

[ Top ]


Documentation generated on Sun, 06 Jan 2008 01:33:15 +0900 by phpDocumentor 1.3.2