NaifyView\Dialect\Naify\NaifySpecialVariableRuntime クラス
NaifySpecialVariableRuntime — Naify dialect の Naify Special Variable Runtime
Native template 構文の parser / evaluator / runtime contract を担当する。 Twig / Smarty 互換文化を混ぜず、Naify として持つ構文 surface をここで固定する。
使用例
// Naify dialect の parser / expression / runtime helper として使う。
// 通常は NaifyParser や compiler/executor から間接的に呼ばれる。
メソッド
| メソッド | 説明 |
|---|---|
public
decorateScope(array $scope, string $templatePath, string $mode): array
|
`decorateScope()` を実行する |
public
decorateScopeWithSession(RuntimeSession $session, string $templatePath, string $mode): array
|
`decorateScopeWithSession()` を実行する |
public
createCompiledRootScope(array $context, string $templatePath, string $mode): array
|
`createCompiledRootScope()` を実行する |
public
readScope(array $scope): array
|
`readScope()` を実行する |
public
readTrustedRoots(array $scope): array
|
`readTrustedRoots()` を実行する |
public
readPublicScope(array $scope): array
|
`readPublicScope()` を実行する |
public
isReservedBindingName(string $name): bool
|
`isReservedBindingName()` かを返す |
private
extractVisiblePublicScope(array $scope): array
|
`extractVisiblePublicScope()` を実行する |
private
firstProtectedInputKey(array $context): ?string
|
`firstProtectedInputKey()` を実行する |
private
normalizeTrustedRoots(mixed $trustedRoots): array
|
`normalizeTrustedRoots()` を実行する |