PHP Класс Neos\Fusion\TypoScriptObjects\CaseImplementation

The "case" TypoScript object renders its children in order. The first result which is not MATCH_NORESULT is returned. Often, this TypoScript object is used together with the "Matcher" TypoScript object; and all its children are by-default interpreted as "Matcher" TypoScript objects if no others are specified.
Наследование: extends ArrayImplementation
Показать файл Открыть проект

Открытые методы

Метод Описание
evaluate ( ) : mixed Execute each matcher until the first one matches

Защищенные методы

Метод Описание
matcherMatched ( string $renderedMatcher ) : boolean Test whether the output of the matcher does not equal the MATCH_NORESULT
renderMatcher ( string $matcherKey ) : string Render the given matcher

Описание методов

evaluate() публичный Метод

Execute each matcher until the first one matches
public evaluate ( ) : mixed
Результат mixed

matcherMatched() защищенный Метод

If the debug mode is enabled, we have to strip the debug output before comparing the rendered result.
protected matcherMatched ( string $renderedMatcher ) : boolean
$renderedMatcher string
Результат boolean

renderMatcher() защищенный Метод

A result value of MATCH_NORESULT means that the condition of the matcher did not match and the case should continue.
protected renderMatcher ( string $matcherKey ) : string
$matcherKey string
Результат string