PHP Interface Newscoop\Search\RepositoryInterface

Provides an interface for repositories of which the entities are connected to the Search service.
Show file Open project: sourcefabric/newscoop Interface Usage Examples

Public Methods

Method Description
getBatch ( integer $count = self::BATCH_COUNT, array $filter = null ) : array Get items to process
setIndexedNow ( array $items ) : void Set indexed to now for given items
setIndexedNull ( array $items = null ) : void Set indexed to null for specified items or all when value is null

Method Details

getBatch() public method

Get items to process
public getBatch ( integer $count = self::BATCH_COUNT, array $filter = null ) : array
$count integer Limit amount of results
$filter array Filter to apply to results
return array

setIndexedNow() public method

Set indexed to now for given items
public setIndexedNow ( array $items ) : void
$items array
return void

setIndexedNull() public method

Set indexed to null for specified items or all when value is null
public setIndexedNull ( array $items = null ) : void
$items array
return void