Beta version

class TagListManager extends EntityListManager

Perform basic filtering and search over entity listings.

Constants

ITEM_PER_PAGE

Methods

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

No description

$this
enablePagination()

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

ArrayCollection
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 46
__construct(Request $request, EntityManager $_em, array $preFilters = array(), array $preOrdering = array())

Parameters

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

in EntityListManager at line 170
$this enablePagination()

Return Value

$this

in EntityListManager at line 179
Translation getTranslation()

Return Value

Translation

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

Parameters

Translation $newtranslation

Return Value

$this

in EntityListManager at line 198
AuthorizationChecker getAuthorizationChecker()

Return Value

AuthorizationChecker

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

Parameters

AuthorizationChecker $authorizationChecker

Return Value

$this

in EntityListManager 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

in EntityListManager at line 269
$this setPage(integer $page)

Configure a custom current page.

Parameters

integer $page

Return Value

$this

in EntityListManager at line 282
$this disablePagination()

Return Value

$this

in EntityListManager 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

in EntityListManager at line 381
int getItemCount()

Return Value

int

in EntityListManager at line 394
float|int getPageCount()

Return Value

float|int

at line 56
ArrayCollection getEntities()

Return filtered entities.

Return Value

ArrayCollection

in EntityListManager at line 430
boolean isPreview()

Gets the value of preview.

Return Value

boolean

in EntityListManager at line 442
EntityListManager setPreview(boolean $preview)

Sets the value of preview.

Parameters

boolean $preview the preview

Return Value

EntityListManager

in EntityListManager at line 452
int getItemPerPage()

Return Value

int

in EntityListManager at line 464
$this setItemPerPage(integer $itemPerPage)

Configure a custom item count per page.

Parameters

integer $itemPerPage

Return Value

$this

in EntityListManager at line 478
int getPage()

Return Value

int