NaifyViewExtension\Dialect\Smarty\SmartyTemplateMetadataScanner クラス
SmartyTemplateMetadataScanner
Smarty converter の変換前に必要な local / loop metadata だけを拾う。 変換本体から「先読み観測」を分け、converter を構文変換へ集中させる。
プロパティ
| 名前 | 型 | 説明 |
|---|---|---|
private
$attributeReader
|
SmartyAttributeReader |
|
private
$textHelper
|
ExtensionConverterTextHelper |
メソッド
| メソッド | 説明 |
|---|---|
public
__construct(?SmartyAttributeReader $attributeReader, ?ExtensionConverterTextHelper $textHelper):
|
|
public
collectLocalNames(string $source): array
|
|
public
collectSectionNames(string $source): array
|
|
public
collectLoopItemMetadata(string $source): array
|
|
public
collectLoopMetadataNames(string $source): array
|
|
public
collectForeachAfterMetadataNames(string $source): array
|
|
private
parseForeachSpec(string $attributes): array
|
|
private
readAttribute(string $source, string $name): string
|
|
private
normalizeName(string $value, string $fallback): string
|