PHP Класс Sulu\Component\Rest\ListBuilder\AbstractListBuilder

Наследование: implements Sulu\Component\Rest\ListBuilder\ListBuilderInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$expressions Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface[]
$fieldDescriptors Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[] All field descriptors for the current context.
$groupByFields array group by fields.
$limit integer The limit for this query.
$page integer The page the resulting query will be returning.
$permission string
$search string The value for which the searchfields will be searched.
$searchFields Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[] The field descriptors for the field, which will be used for the search.
$selectFields Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[] The field descriptors for the current list.
$sortFields Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[] The field descriptor for the field to sort.
$sortOrders string[] Defines the sort order of the string.
$user Sulu\Component\Security\Authentication\UserInterface

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

Метод Описание
addExpression ( Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface $expression )
addField ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor )
addGroupBy ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor )
addSearchField ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor )
addSelectField ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor )
between ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, array $values )
getCurrentPage ( )
getFieldDescriptor ( $fieldName )
getLimit ( )
getSelectField ( $fieldName )
hasField ( $name )
hasSelectField ( $name )
in ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, array $values )
limit ( $limit )
search ( $search )
setCurrentPage ( $page )
setFieldDescriptors ( array $fieldDescriptors )
setFields ( $fieldDescriptors )
setPermissionCheck ( Sulu\Component\Security\Authentication\UserInterface $user, $permission )
setSelectFields ( $fieldDescriptors )
sort ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, $order = self::SORTORDER_ASC )
where ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, $value, $comparator = self::WHERE_COMPARATOR_EQUAL )
whereNot ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, $value )

Защищенные методы

Метод Описание
addFieldDescriptor ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor ) Adds a field descriptor.
retrieveIndexOfFieldDescriptor ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, array $fieldDescriptors ) : boolean | integer | string Returns index of given FieldDescriptor in given array of descriptors.

Описание методов

addExpression() публичный Метод

public addExpression ( Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface $expression )
$expression Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface

addField() публичный Метод

Устаревший: use addSelectField instead
public addField ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor )
$fieldDescriptor Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface

addFieldDescriptor() защищенный Метод

Adds a field descriptor.
protected addFieldDescriptor ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor )
$fieldDescriptor Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface

addGroupBy() публичный Метод

public addGroupBy ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor )
$fieldDescriptor Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface

addSearchField() публичный Метод

public addSearchField ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor )
$fieldDescriptor Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface

addSelectField() публичный Метод

public addSelectField ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor )
$fieldDescriptor Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface

between() публичный Метод

public between ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, array $values )
$fieldDescriptor Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface
$values array

getCurrentPage() публичный Метод

public getCurrentPage ( )

getFieldDescriptor() публичный Метод

public getFieldDescriptor ( $fieldName )

getLimit() публичный Метод

public getLimit ( )

getSelectField() публичный Метод

public getSelectField ( $fieldName )

hasField() публичный Метод

Устаревший: use hasSelectField instead
public hasField ( $name )

hasSelectField() публичный Метод

public hasSelectField ( $name )

in() публичный Метод

public in ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, array $values )
$fieldDescriptor Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface
$values array

limit() публичный Метод

public limit ( $limit )

retrieveIndexOfFieldDescriptor() защищенный Метод

If no match is found, false will be returned.
protected retrieveIndexOfFieldDescriptor ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, array $fieldDescriptors ) : boolean | integer | string
$fieldDescriptor Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface
$fieldDescriptors array
Результат boolean | integer | string

setCurrentPage() публичный Метод

public setCurrentPage ( $page )

setFieldDescriptors() публичный Метод

public setFieldDescriptors ( array $fieldDescriptors )
$fieldDescriptors array

setFields() публичный Метод

Устаревший: use setSelectFields instead
public setFields ( $fieldDescriptors )

setPermissionCheck() публичный Метод

public setPermissionCheck ( Sulu\Component\Security\Authentication\UserInterface $user, $permission )
$user Sulu\Component\Security\Authentication\UserInterface

setSelectFields() публичный Метод

public setSelectFields ( $fieldDescriptors )

sort() публичный Метод

public sort ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, $order = self::SORTORDER_ASC )
$fieldDescriptor Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface

where() публичный Метод

public where ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, $value, $comparator = self::WHERE_COMPARATOR_EQUAL )
$fieldDescriptor Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface

whereNot() публичный Метод

Устаревший: use where instead {@inheritdoc}
public whereNot ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, $value )
$fieldDescriptor Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface

Описание свойств

$expressions защищенное свойство

protected ExpressionInterface[],Sulu\Component\Rest\ListBuilder\Expression $expressions
Результат Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface[]

$fieldDescriptors защищенное свойство

All field descriptors for the current context.
protected FieldDescriptorInterface[],Sulu\Component\Rest\ListBuilder $fieldDescriptors
Результат Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[]

$groupByFields защищенное свойство

group by fields.
protected array $groupByFields
Результат array

$limit защищенное свойство

The limit for this query.
protected int $limit
Результат integer

$page защищенное свойство

The page the resulting query will be returning.
protected int $page
Результат integer

$permission защищенное свойство

protected string $permission
Результат string

$searchFields защищенное свойство

The field descriptors for the field, which will be used for the search.
protected FieldDescriptorInterface[],Sulu\Component\Rest\ListBuilder $searchFields
Результат Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[]

$selectFields защищенное свойство

The field descriptors for the current list.
protected FieldDescriptorInterface[],Sulu\Component\Rest\ListBuilder $selectFields
Результат Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[]

$sortFields защищенное свойство

The field descriptor for the field to sort.
protected FieldDescriptorInterface[],Sulu\Component\Rest\ListBuilder $sortFields
Результат Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[]

$sortOrders защищенное свойство

Defines the sort order of the string.
protected string[] $sortOrders
Результат string[]

$user защищенное свойство

protected UserInterface,Sulu\Component\Security\Authentication $user
Результат Sulu\Component\Security\Authentication\UserInterface