PHP 인터페이스 Sulu\Component\Rest\RestHelperInterface

파일 보기 프로젝트 열기: sulu/sulu 0 사용 예제들

공개 메소드들

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