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

These values are calculated from the request paramaters.
Наследование: implements Sulu\Component\Rest\ListBuilder\ListRestHelperInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$requestStack Symfony\Component\HttpFoundation\Request The current request object.

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

Метод Описание
__construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack ) The constructor takes the request stack as an argument, which is injected by the service container.
getFields ( ) : array | null Returns an array with all the fields, which should be contained in the response.
getLimit ( ) : integer Returns the maximum number of elements in a single response.
getOffset ( ) : integer | null Returns the calculated value for the starting position based on the page and limit values.
getPage ( ) : mixed returns the current page.
getSearchFields ( ) : array | null Returns an array with all the fields the search pattern should be executed on.
getSearchPattern ( ) : mixed Returns the pattern of the search.
getSortColumn ( ) : string Returns the desired sort column.
getSortOrder ( ) : string Returns desired sort order.

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

Метод Описание
getRequest ( ) : Request Returns the current Request.

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

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

The constructor takes the request stack as an argument, which is injected by the service container.
public __construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack )
$requestStack Symfony\Component\HttpFoundation\RequestStack

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

If null is returned every field should be contained.
public getFields ( ) : array | null
Результат array | null

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

Returns the maximum number of elements in a single response.
public getLimit ( ) : integer
Результат integer

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

Returns the calculated value for the starting position based on the page and limit values.
public getOffset ( ) : integer | null
Результат integer | null

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

returns the current page.
public getPage ( ) : mixed
Результат mixed

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

Returns the current Request.
protected getRequest ( ) : Request
Результат Symfony\Component\HttpFoundation\Request

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

Returns an array with all the fields the search pattern should be executed on.
public getSearchFields ( ) : array | null
Результат array | null

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

Returns the pattern of the search.
public getSearchPattern ( ) : mixed
Результат mixed

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

Returns the desired sort column.
public getSortColumn ( ) : string
Результат string

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

Returns desired sort order.
public getSortOrder ( ) : string
Результат string

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

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

The current request object.
protected Request,Symfony\Component\HttpFoundation $requestStack
Результат Symfony\Component\HttpFoundation\Request