NaifyView\Dialect\Naify\NaifyLayoutContractGuard クラス
NaifyLayoutContractGuard — Naify dialect の Naify Layout Contract Guard
Native template 構文の parser / evaluator / runtime contract を担当する。 Twig / Smarty 互換文化を混ぜず、Naify として持つ構文 surface をここで固定する。
使用例
// Naify dialect の parser / expression / runtime helper として使う。
// 通常は NaifyParser や compiler/executor から間接的に呼ばれる。
メソッド
| メソッド | 説明 |
|---|---|
public
readDefineName(array $attributes): ?string
|
`readDefineName()` を実行する |
public
readUseName(array $attributes): ?string
|
`readUseName()` を実行する |
public
readSource(array $attributes): ?string
|
`readSource()` を実行する |
public
readWithExpression(array $attributes): ?string
|
`readWithExpression()` を実行する |
public
hasAmbiguousMode(?string $defineName, ?string $useName): bool
|
`hasAmbiguousMode()` かを返す |
public
hasMissingMode(?string $defineName, ?string $useName): bool
|
`hasMissingMode()` かを返す |
public
isUseSourceMissing(?string $useName, ?string $source): bool
|
`isUseSourceMissing()` かを返す |
public
readSlotName(array $attributes): ?string
|
`readSlotName()` を実行する |
public
findFirstDisallowedUseChild(array $children): ?NodeInterface
|
`findFirstDisallowedUseChild()` を実行する |
private
isAllowedUseChild(NodeInterface $child): bool
|
`isAllowedUseChild()` かを返す |
private
readAttributeString(array $attributes, string $name): ?string
|
`readAttributeString()` を実行する |