Beta version

class EntityListManager

Perform basic filtering and search over entity listings.

Constants

ITEM_PER_PAGE

Methods

__construct(Request $request, EntityManager $_em, string $entityName, array $preFilters = array(), array $preOrdering = array())

No description

$this
enablePagination()

No description

getTranslation()

No description

$this
setTranslation(Translation $newtranslation = null)

No description

AuthorizationChecker
getAuthorizationChecker()

No description

$this
setAuthorizationChecker(AuthorizationChecker $authorizationChecker = null)

No description

void
handle(boolean $disabled = false)

Handle request to find filter to apply to entity listing.

$this
setPage(integer $page)

Configure a custom current page.

$this
disablePagination()

No description

array
getAssignation()

Get Twig assignation to render list details.

int
getItemCount()

No description

float|int
getPageCount()

No description

array
getEntities()

Return filtered entities.

boolean
isPreview()

Gets the value of preview.

setPreview(boolean $preview)

Sets the value of preview.

int
getItemPerPage()

No description

$this
setItemPerPage(integer $itemPerPage)

Configure a custom item count per page.

int
getPage()

No description

Details

at line 117
__construct(Request $request, EntityManager $_em, string $entityName, array $preFilters = array(), array $preOrdering = array())

Parameters

Request $request
EntityManager $_em
string $entityName
array $preFilters
array $preOrdering

at line 170
$this enablePagination()

Return Value

$this

at line 179
Translation getTranslation()

Return Value

Translation

at line 188
$this setTranslation(Translation $newtranslation = null)

Parameters

Translation $newtranslation

Return Value

$this

at line 198
AuthorizationChecker getAuthorizationChecker()

Return Value

AuthorizationChecker

at line 207
$this setAuthorizationChecker(AuthorizationChecker $authorizationChecker = null)

Parameters

AuthorizationChecker $authorizationChecker

Return Value

$this

at line 220
void handle(boolean $disabled = false)

Handle request to find filter to apply to entity listing.

Parameters

boolean $disabled Disable pagination and filtering over GET params

Return Value

void

at line 269
$this setPage(integer $page)

Configure a custom current page.

Parameters

integer $page

Return Value

$this

at line 282
$this disablePagination()

Return Value

$this

at line 347
array getAssignation()

Get Twig assignation to render list details.

** Fields:

  • description [string]
  • search [string]
  • currentPage [int]
  • pageCount [int]
  • itemPerPage [int]
  • itemCount [int]
  • previousPage [int]
  • nextPage [int]
  • nextPageQuery [string]
  • previousPageQuery [string]
  • previousQueryArray [array]
  • nextQueryArray [array]

Return Value

array

at line 381
int getItemCount()

Return Value

int

at line 394
float|int getPageCount()

Return Value

float|int

at line 409
array getEntities()

Return filtered entities.

Return Value

array

at line 430
boolean isPreview()

Gets the value of preview.

Return Value

boolean

at line 442
EntityListManager setPreview(boolean $preview)

Sets the value of preview.

Parameters

boolean $preview the preview

Return Value

EntityListManager

at line 452
int getItemPerPage()

Return Value

int

at line 464
$this setItemPerPage(integer $itemPerPage)

Configure a custom item count per page.

Parameters

integer $itemPerPage

Return Value

$this

at line 478
int getPage()

Return Value

int