PHP Interface Newscoop\Service\IEntityService

Inheritance: extends Newscoop\Service\IEntityBaseService
Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
getCount ( Search $search = NULL ) : integer Provides the count of the entities that can be associated with the provided search.
getEntities ( Search $search = NULL, integer | 0 $offset, integer $limit ) : array Provides the all the entities that can be associated with the provided search

Method Details

getCount() public method

Provides the count of the entities that can be associated with the provided search.
public getCount ( Search $search = NULL ) : integer
$search Newscoop\Service\Model\Search\Search The search criteria, not null.
return integer The entities count.

getEntities() public method

Provides the all the entities that can be associated with the provided search
public getEntities ( Search $search = NULL, integer | 0 $offset, integer $limit ) : array
$search Newscoop\Service\Model\Search\Search The search criteria, not null.
$offset integer | 0
$limit integer The limit of entities to fetch, negaive value will fetch all entities found.
return array The array of entities found.