PHP Класс Neos\Neos\TypoScript\Helper\ArrayHelper

These helpers are *WORK IN PROGRESS* and *NOT STABLE YET*
Наследование: implements Neos\Eel\ProtectedContextAwareInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
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