PHP Interface Sulu\Component\Rest\RestHelperInterface

Datei anzeigen Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
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.

Method Details

initializeListBuilder() public method

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() public method

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
return boolean