메소드 | 설명 | |
---|---|---|
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. |
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 |
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 |