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
파일 보기 프로젝트 열기: neos/neos-development-collection

공개 메소드들

메소드 설명
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