NaifyViewExtension\Dialect\Smarty\SmartyFilter クラス

SmartyFilter

Native core に入れない Smarty 固有 filter を Extension 側で補う。

メソッド

メソッド説明
public smartyAppend(mixed $value, mixed $appendValue, mixed $index): array
public smartyAppendBuffer(mixed $value): SmartyAppendBuffer
public smartyAppendMutable(mixed $value, mixed $appendValue, mixed $index): SmartyAppendBuffer
public smartyCat(mixed $value, mixed $suffix = ): string
public smartyArrayPush(mixed $value, ...mixed $items): array
public smartyCount(mixed $value): int
public smartyDateFormat(mixed $value, mixed $format, mixed $defaultDate): string
public smartyGetClass(mixed $value): string
public smartyImplode(mixed $value, mixed $separator = ): string
public smartyInArray(mixed $value, mixed $haystack): bool
public smartyJsonEncode(mixed $value): string
public smartyNumberFormat(mixed $value, mixed $decimals = 0, mixed $decimalSeparator = ., mixed $thousandsSeparator = ,): string
public smartyRegexReplace(mixed $value, mixed $pattern, mixed $replacement = ): string
public smartyStringFormat(mixed $value, mixed $format = %s): string
public smartyStrstr(mixed $value, mixed $needle, mixed $beforeNeedle = false): string
public smartyStrtotime(mixed $value): int
public smartySubstr(mixed $value, mixed $start, mixed $length): string
public smartyVarDump(mixed $value): string
public smartyConst(mixed $value): mixed
public smartySection(mixed $value, mixed $start, mixed $step = 1, mixed $max): array Smarty の {section} 用に、対象 loop から section metadata item の列を作る。
public smartySectionAfter(mixed $value, mixed $start, mixed $step = 1, mixed $max): array section 終了後に $smarty.section.name.* を読む古い surface 用の最終 state。
public supportsFilter(string $filterName): bool
public applyFilter(string $filterName, mixed $value, array $arguments): mixed
private toInt(mixed $value, int $fallback): int
private stringify(mixed $value): string
private toTimestamp(mixed $value): ?int
private normalizeDateFormat(mixed $format): string