Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
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 ) |
Method | Description | |
---|---|---|
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. |
public addExpression ( Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface $expression ) | ||
$expression | Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface |
public addField ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor ) | ||
$fieldDescriptor | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface |
protected addFieldDescriptor ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor ) | ||
$fieldDescriptor | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface |
public addGroupBy ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor ) | ||
$fieldDescriptor | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface |
public addSearchField ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor ) | ||
$fieldDescriptor | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface |
public addSelectField ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor ) | ||
$fieldDescriptor | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface |
protected retrieveIndexOfFieldDescriptor ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, array $fieldDescriptors ) : boolean | integer | string | ||
$fieldDescriptor | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface | |
$fieldDescriptors | array | |
return | boolean | integer | string |
public setFieldDescriptors ( array $fieldDescriptors ) | ||
$fieldDescriptors | array |
public setPermissionCheck ( Sulu\Component\Security\Authentication\UserInterface $user, $permission ) | ||
$user | Sulu\Component\Security\Authentication\UserInterface |
public sort ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, $order = self::SORTORDER_ASC ) | ||
$fieldDescriptor | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface |
public where ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, $value, $comparator = self::WHERE_COMPARATOR_EQUAL ) | ||
$fieldDescriptor | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface |
public whereNot ( Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface $fieldDescriptor, $value ) | ||
$fieldDescriptor | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface |
protected ExpressionInterface[],Sulu\Component\Rest\ListBuilder\Expression $expressions | ||
return | Sulu\Component\Rest\ListBuilder\Expression\ExpressionInterface[] |
protected FieldDescriptorInterface[],Sulu\Component\Rest\ListBuilder $fieldDescriptors | ||
return | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[] |
protected int $page | ||
return | integer |
protected string $search | ||
return | string |
protected FieldDescriptorInterface[],Sulu\Component\Rest\ListBuilder $searchFields | ||
return | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[] |
protected FieldDescriptorInterface[],Sulu\Component\Rest\ListBuilder $selectFields | ||
return | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[] |
protected FieldDescriptorInterface[],Sulu\Component\Rest\ListBuilder $sortFields | ||
return | Sulu\Component\Rest\ListBuilder\FieldDescriptorInterface[] |
protected string[] $sortOrders | ||
return | string[] |