European Week of Regions and Cities

SessionList extends ControllerBase

Renders a list of events.

Table of Contents

Properties

$dateFormatter  : DateFormatterInterface
The date formatter service.
$filters  : array<string|int, mixed>
Session list filters.
$formBuilder  : FormBuilderInterface
Form Builder.
$pagerManager  : PagerManagerInterface
The Pager Manager service.
$request  : RequestStack
Symfony Request stack.
$typeEvent  : string
Type of event.
$year  : int
Year of current programme.
$cmsConector  : CMSConnector
CMS Conector.

Methods

__construct()  : mixed
SessionList constructor.
allwords()  : mixed
Return true if all words are found.
filterRows()  : mixed
Filter rows based on the filters selected by the user.
getFilterOperation()  : mixed
Get operation for the specified filter.
getList()  : mixed
Get list of events.
getSelectedFilters()  : mixed
Get the selected filters by the user.
getSelectedFilterValue()  : mixed
Get filter value.
matchField()  : mixed
Return true if the field evaluated matches the operation requested.
matchRow()  : mixed
Compares all row fields and return true if they match the user selection.
prepareRows()  : mixed
Prepare rows: Add vars for theming and combine field values for filtering.
sortRows()  : mixed
Sort rows by the provided field.
splitArray()  : mixed
Split array into chunks to paginate results.

Properties

$dateFormatter

The date formatter service.

protected DateFormatterInterface $dateFormatter

$filters

Session list filters.

protected array<string|int, mixed> $filters

$formBuilder

Form Builder.

protected FormBuilderInterface $formBuilder

$pagerManager

The Pager Manager service.

protected PagerManagerInterface $pagerManager

$request

Symfony Request stack.

protected RequestStack $request

$typeEvent

Type of event.

protected string $typeEvent

$year

Year of current programme.

protected int $year

Methods

__construct()

SessionList constructor.

public __construct(CMSConnector $cmsConector, FormBuilderInterface $formBuilder, RequestStack $request_stack, DateFormatterInterface $date_formatter, PagerManagerInterface $pager_manager) : mixed
Parameters
$cmsConector : CMSConnector
$formBuilder : FormBuilderInterface
$request_stack : RequestStack
$date_formatter : DateFormatterInterface
$pager_manager : PagerManagerInterface

allwords()

Return true if all words are found.

public allwords(mixed $filter_value, mixed $field_value) : mixed
Parameters
$filter_value : mixed
$field_value : mixed

filterRows()

Filter rows based on the filters selected by the user.

public filterRows(mixed $rows) : mixed
Parameters
$rows : mixed

getFilterOperation()

Get operation for the specified filter.

public getFilterOperation(mixed $filter_key) : mixed
Parameters
$filter_key : mixed

getList()

Get list of events.

public getList(mixed $event_type, mixed $year, mixed $num_items_page) : mixed
Parameters
$event_type : mixed
$year : mixed
$num_items_page : mixed

getSelectedFilters()

Get the selected filters by the user.

public getSelectedFilters() : mixed

getSelectedFilterValue()

Get filter value.

public getSelectedFilterValue(mixed $filter_name) : mixed
Parameters
$filter_name : mixed

matchField()

Return true if the field evaluated matches the operation requested.

public matchField(mixed $op, mixed $filter_value, mixed $field_value) : mixed
Parameters
$op : mixed
$filter_value : mixed
$field_value : mixed

matchRow()

Compares all row fields and return true if they match the user selection.

public matchRow(mixed $row) : mixed
Parameters
$row : mixed

prepareRows()

Prepare rows: Add vars for theming and combine field values for filtering.

public prepareRows(mixed $rows) : mixed
Parameters
$rows : mixed

sortRows()

Sort rows by the provided field.

public sortRows(mixed $rows, mixed $sort_field_name) : mixed
Parameters
$rows : mixed
$sort_field_name : mixed

splitArray()

Split array into chunks to paginate results.

public splitArray(mixed $items, mixed $num_items_page) : mixed
Parameters
$items : mixed
$num_items_page : mixed

        
On this page

Search results