PHP 클래스 Neos\Neos\TypoScript\Helper\ArrayHelper

These helpers are *WORK IN PROGRESS* and *NOT STABLE YET*
상속: implements Neos\Eel\ProtectedContextAwareInterface
파일 보기 프로젝트 열기: neos/neos-development-collection

공개 메소드들

메소드 설명
allowsCallOfMethod ( string $methodName ) : boolean All methods are considered safe
filter ( array | Doctrine\Common\Collections\Collection $set, string $filterProperty ) : array Filter an array of objects, by only keeping the elements where each object's $filterProperty evaluates to TRUE.
filterNegated ( array | Doctrine\Common\Collections\Collection $set, string $filterProperty ) : array Filter an array of objects, by only keeping the elements where each object's $filterProperty evaluates to FALSE.
groupBy ( array | Doctrine\Common\Collections\Collection $set, string $groupingKey ) : array The input is assumed to be an array or Collection of objects. Groups this input by the $groupingKey property of each element.

보호된 메소드들

메소드 설명
filterInternal ( array | Doctrine\Common\Collections\Collection $set, string $filterProperty, boolean $negate ) : array Internal method for filtering

메소드 상세

allowsCallOfMethod() 공개 메소드

All methods are considered safe
public allowsCallOfMethod ( string $methodName ) : boolean
$methodName string
리턴 boolean

filter() 공개 메소드

Filter an array of objects, by only keeping the elements where each object's $filterProperty evaluates to TRUE.
public filter ( array | Doctrine\Common\Collections\Collection $set, string $filterProperty ) : array
$set array | Doctrine\Common\Collections\Collection
$filterProperty string
리턴 array

filterInternal() 보호된 메소드

Internal method for filtering
protected filterInternal ( array | Doctrine\Common\Collections\Collection $set, string $filterProperty, boolean $negate ) : array
$set array | Doctrine\Common\Collections\Collection
$filterProperty string
$negate boolean
리턴 array

filterNegated() 공개 메소드

Filter an array of objects, by only keeping the elements where each object's $filterProperty evaluates to FALSE.
public filterNegated ( array | Doctrine\Common\Collections\Collection $set, string $filterProperty ) : array
$set array | Doctrine\Common\Collections\Collection
$filterProperty string
리턴 array

groupBy() 공개 메소드

The input is assumed to be an array or Collection of objects. Groups this input by the $groupingKey property of each element.
public groupBy ( array | Doctrine\Common\Collections\Collection $set, string $groupingKey ) : array
$set array | Doctrine\Common\Collections\Collection
$groupingKey string
리턴 array