Method |
Description |
|
__construct ( Request $request, Doctrine\Common\Persistence\ObjectManager $em ) |
The constructor takes the request as an argument, which
is injected by the service container. |
|
find ( string $entityName, array $where = [], array $joinConditions = [] ) : array |
Create a ListRepository for given EntityName and find Entities for list. |
|
getAllFields ( $entityName ) : array |
returns all field names for a certain entity. |
|
getFields ( ) : array | null |
Returns an array with all the fields, which should be contained in the response. |
|
getLimit ( ) : integer |
Returns the maximum number of elements in a single response. |
|
getOffset ( ) : integer | null |
Returns the calculated value for the starting position based
on the page and limit values. |
|
getPage ( ) : mixed |
returns the current page. |
|
getRepository ( string $entityName ) : ListRepository |
Create a ListRepository for given EntityName. |
|
getSearchFields ( ) : array | null |
Returns an array with all the fields the search pattern should be executed on. |
|
getSearchPattern ( ) : mixed |
Returns the pattern of the search. |
|
getSorting ( ) : array |
Returns an array containing the desired sorting. |
|
getTotalNumberOfElements ( $entityName, $where, array $joinConditions = [] ) : integer |
|
|
getTotalPages ( integer $totalNumber = null ) : float | integer |
returns total amount of pages. |
|