NaifyViewExtension\Dialect\Smarty\SmartyAttributeReader クラス

SmartyAttributeReader

Smarty tag attribute の token/value 読み取り owner。 converter 本体から正規表現の細部を離し、quoted/backtick 系の拡張点をここへ寄せる。

メソッド

メソッド説明
public readValue(string $source, string $name): string
public readToken(string $source, string $name): string
public readPositionalToken(string $source): string Smarty allows structural tags such as `{include "file.tpl"}` and `{extends 'layout.tpl'}`. Treat the first non-assignment token as the positional file token, while keeping normal `file=...` as the canonical path.
public readTokens(string $source): array
public readValues(string $source): array