Свойство | Type | Description | |
---|---|---|---|
$em | Doctrine\Common\Persistence\ObjectManager | ||
$request | The current request object. |
Méthode | Description | |
---|---|---|
__construct ( |
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 ) : |
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. |
Méthode | Description | |
---|---|---|
getRequest ( ) : |
Returns the current Request. |
public __construct ( |
||
$request | ||
$em | Doctrine\Common\Persistence\ObjectManager |
public getAllFields ( $entityName ) : array | ||
$entityName | ||
Résultat | array |
public getRepository ( string $entityName ) : |
||
$entityName | string | |
Résultat |
protected getRequest ( ) : |
||
Résultat |
public getSearchFields ( ) : array | null | ||
Résultat | array | null |
public getSearchPattern ( ) : mixed | ||
Résultat | mixed |
public getSorting ( ) : array | ||
Résultat | array |
public getTotalNumberOfElements ( $entityName, $where, array $joinConditions = [] ) : integer | ||
$entityName | ||
$where | ||
$joinConditions | array | |
Résultat | integer |
protected ObjectManager,Doctrine\Common\Persistence $em | ||
Résultat | Doctrine\Common\Persistence\ObjectManager |