PHP Интерфейс Sulu\Component\Rest\RestHelperInterface

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
initializeListBuilder ( Sulu\Component\Rest\ListBuilder\ListBuilderInterface $listBuilder, array $fieldDescriptors ) Initializes the given ListBuilder with the standard values from the request.
processSubEntities ( Traversable $entities, array $requestEntities, callable $get, callable $add = null, callable $update = null, callable $delete = null ) : boolean This method processes a put request (delete non-existing entities, update existing entities, add new entries), and let the single actions be modified by callbacks.

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

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

Initializes the given ListBuilder with the standard values from the request.
public initializeListBuilder ( Sulu\Component\Rest\ListBuilder\ListBuilderInterface $listBuilder, array $fieldDescriptors )
$listBuilder Sulu\Component\Rest\ListBuilder\ListBuilderInterface The ListBuilder to initialize
$fieldDescriptors array The FieldDescriptors available for this object type

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

This method processes a put request (delete non-existing entities, update existing entities, add new entries), and let the single actions be modified by callbacks.
public processSubEntities ( Traversable $entities, array $requestEntities, callable $get, callable $add = null, callable $update = null, callable $delete = null ) : boolean
$entities Traversable The list of entities to work on
$requestEntities array The entities as retrieved from the request
$get callable The
$add callable
$update callable
$delete callable
Результат boolean