You are here

public function SearchApiDummyService::deleteItems in Search API 7

Deletes indexed items from this server.

Might be either used to delete some items (given by their ids) from a specified index, or all items from that index, or all items from all indexes on this server.

Parameters

$ids: Either an array containing the ids of the items that should be deleted, or 'all' if all items should be deleted. Other formats might be recognized by implementing classes, but these are not standardized.

SearchApiIndex $index: The index from which items should be deleted, or NULL if all indexes on this server should be cleared (then, $ids has to be 'all').

Throws

SearchApiException If an error occurred while trying to delete the items.

Overrides SearchApiServiceInterface::deleteItems

File

tests/search_api_test_2.module, line 121
Provides a second test service and server for testing Search API.

Class

SearchApiDummyService
Dummy service for testing.

Code

public function deleteItems($ids = 'all', SearchApiIndex $index = NULL) {
}