NaifyView\Executor\AttributeRuntime クラス

AttributeRuntime — 属性の指定を出力用の文字列へ組み立てる

真偽値の属性と値を持つ属性を区別し、属性内の補間は出力担当へ渡す。

ASTを直接実行する経路の内部部品。通常の描画にはView::render()を使う。

プロパティ

名前型説明
private $outputRuntime OutputRuntime interpolation / filter runtime

メソッド

メソッド説明
public __construct(OutputRuntime $outputRuntime): void インスタンスを初期化する
public renderAttributes(array $attributes, array $scope, array $state, callable $renderNodes): string `renderAttributes()` を実行する
private renderBooleanAttribute(string $name): string `renderBooleanAttribute()` を実行する
private renderValueAttribute(string $name, string $value, array $scope, array $state, callable $renderNodes): string `renderValueAttribute()` を実行する