NaifyView\Dialect\Naify\NaifyOutputValueRuntime クラス

NaifyOutputValueRuntime — Naify dialect の Naify Output Value Runtime

Native template 構文の parser / evaluator / runtime contract を担当する。 Twig / Smarty 互換文化を混ぜず、Naify として持つ構文 surface をここで固定する。

使用例

// Naify dialect の parser / expression / runtime helper として使う。
// 通常は NaifyParser や compiler/executor から間接的に呼ばれる。

プロパティ

名前型説明
private $autoEscape bool

メソッド

メソッド説明
public __construct(bool $autoEscape = false): void インスタンスを初期化する
public setAutoEscape(bool $autoEscape): void `setAutoEscape()` の値を設定する
public getAutoEscape(): bool `getAutoEscape()` の値を返す
public stringify(mixed $value): string `stringify()` を実行する
public output(mixed $value): string `output()` を実行する
public expressionOutput(mixed $value): string `expressionOutput()` を実行する
public explicitStringify(mixed $value): string `explicitStringify()` を実行する
private escapeOutputString(string $value): string `escapeOutputString()` を実行する
private describeObjectClass(object $value): string `describeObjectClass()` を実行する