Translation2::getDecorator

Translation2::getDecorator() – デコレータのインスタンスを返す

Synopsis

require_once 'Translation2.php';

object Decorator& Translation2::getDecorator ( string $decorator , object [optional] 1 )

Description

デコレータのインスタンスを取得するために使用します。 デコレータとはいわゆるフィルタのようなもので、 渡されたオブジェクトや変数の値を変更したり何らかの処理を加えたりします。

Parameter

string $decorator

デコレータの名前。

object $obj [optional]

デコレートするオブジェクト (デフォルトのオブジェクトは $this です)。

Return value

Translation2_Decorator のサブクラスのオブジェクトへの参照を返します。

Note

This function can not be called statically.