PHP 클래스 FluidTYPO3\Vhs\ViewHelpers\Iterator\FilterViewHelper

Filters an array by filtering the array, analysing each member and assering if it is equal to (weak type) the filter parameter. If propertyName is set, the ViewHelper will try to extract this property from each member of the array. Iterators and ObjectStorage etc. are supported.
저자: Claus Due ([email protected])
상속: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
파일 보기 프로젝트 열기: fluidtypo3/vhs

공개 메소드들

메소드 설명
render ( mixed $subject = null, mixed $filter = null, string $propertyName = null, boolean $preserveKeys = false, boolean $invert = false, boolean $nullFilter = false ) : mixed Render method

보호된 메소드들

메소드 설명
filter ( mixed $item, mixed $filter, string $propertyName ) : boolean Filter an item/value according to desired filter. Returns TRUE if the item should be included, FALSE otherwise. This default method simply does a weak comparison (==) for sameness.

메소드 상세

filter() 보호된 메소드

Filter an item/value according to desired filter. Returns TRUE if the item should be included, FALSE otherwise. This default method simply does a weak comparison (==) for sameness.
protected filter ( mixed $item, mixed $filter, string $propertyName ) : boolean
$item mixed
$filter mixed Could be a single value or an Array. If so the function returns TRUE when $item matches with any value in it.
$propertyName string
리턴 boolean

render() 공개 메소드

Render method
public render ( mixed $subject = null, mixed $filter = null, string $propertyName = null, boolean $preserveKeys = false, boolean $invert = false, boolean $nullFilter = false ) : mixed
$subject mixed The subject iterator/array to be filtered
$filter mixed The comparison value
$propertyName string Optional property name to extract and use for comparison instead of the object; use on ObjectStorage etc. Note: supports dot-path expressions.
$preserveKeys boolean If TRUE, keys in the array are preserved - even if they are numeric
$invert boolean Invert the behavior of the view helper
$nullFilter boolean If TRUE and $filter is NULL (not set) - to filter NULL or empty values
리턴 mixed