PHP Class 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.
Inheritance: extends ArrayImplementation
Afficher le fichier Open project: neos/neos-development-collection

Méthodes publiques

Méthode Description
evaluate ( ) : mixed Execute each matcher until the first one matches

Méthodes protégées

Méthode Description
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

Method Details

evaluate() public méthode

Execute each matcher until the first one matches
public evaluate ( ) : mixed
Résultat mixed

matcherMatched() protected méthode

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
Résultat boolean

renderMatcher() protected méthode

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
Résultat string