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
Mostra file Open project: neos/neos-development-collection

Public Methods

Method Description
evaluate ( ) : mixed Execute each matcher until the first one matches

Protected Methods

Method 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 method

Execute each matcher until the first one matches
public evaluate ( ) : mixed
return mixed

matcherMatched() protected method

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
return boolean

renderMatcher() protected method

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
return string