PHP 클래스 MetaModels\Filter\Rules\Condition\ConditionOr

상속: extends MetaModels\Filter\FilterRule
파일 보기 프로젝트 열기: metamodels/core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$arrChildFilters MetaModels\Filter\IFilter[] The list of child filters that shall be evaluated.
$stopAfterMatch boolean This flag determines if the rule shall return the result of the first child that returns at least one element (a return value of NULL from a rule counts as "all ids" in this context and therefore is considered non empty per definition).

공개 메소드들

메소드 설명
__construct ( boolean $stopAfterMatch = false ) Create a new FilterRule instance.
addChild ( MetaModels\Filter\IFilter $objFilter ) : ConditionOr Adds a child filter to this rule that will get evaluated when this rule is evaluated.
getMatchingIds ( ) : string[] | null Fetch the ids from all child filter rules.

메소드 상세

__construct() 공개 메소드

Create a new FilterRule instance.
public __construct ( boolean $stopAfterMatch = false )
$stopAfterMatch boolean Flag determining if filtering shall return the first non-empty match.

addChild() 공개 메소드

Adds a child filter to this rule that will get evaluated when this rule is evaluated.
public addChild ( MetaModels\Filter\IFilter $objFilter ) : ConditionOr
$objFilter MetaModels\Filter\IFilter The filter to add as child.
리턴 ConditionOr

getMatchingIds() 공개 메소드

If no entries have been found, the result is an empty array. If no filtering was applied and therefore all ids shall be reported as valid, the return value of NULL is allowed. The OR filter rule has an embedded shortcut for the first rule that returns "null". When this happens, no further child rules will get evaluated, as the result set can not expand any further. Note: when "stopAfterMatch" has been set, the rule will stop processing also when the first rule returns a non empty result and return that result.
public getMatchingIds ( ) : string[] | null
리턴 string[] | null

프로퍼티 상세

$arrChildFilters 보호되어 있는 프로퍼티

The list of child filters that shall be evaluated.
protected IFilter[],MetaModels\Filter $arrChildFilters
리턴 MetaModels\Filter\IFilter[]

$stopAfterMatch 보호되어 있는 프로퍼티

This flag determines if the rule shall return the result of the first child that returns at least one element (a return value of NULL from a rule counts as "all ids" in this context and therefore is considered non empty per definition).
protected bool $stopAfterMatch
리턴 boolean