Elgg  Version 3.0
Variables
filter.php File Reference

Go to the source code of this file.

Variables

 $filter_value = elgg_extract('filter_value', $vars)
 Renders a filter menu. More...
 
 $filter_tabs = (array) elgg_extract('filter', $vars, [])
 
foreach($filter_tabs as $name=> $tab) $filter_id = elgg_extract('filter_id', $vars)
 
 $menu_name = $filter_id ? "filter:$filter_id" : 'filter'
 
 $menu_params = $vars
 
 $menu_params ['items'] = $filter_tabs
 
 $menu_params ['sort_by'] = 'priority'
 
 $menu_params ['class'] = 'elgg-menu-filter'
 

Variable Documentation

foreach ($filter_tabs as $name=> $tab) $filter_id = elgg_extract('filter_id', $vars)
Examples:
/root/Elgg/engine/lib/views.php.

Definition at line 31 of file filter.php.

$filter_tabs = (array) elgg_extract('filter', $vars, [])

Definition at line 17 of file filter.php.

$filter_value = elgg_extract('filter_value', $vars)

Renders a filter menu.

$vars['filter'] An optional array of filter tabs Array items should be suitable for usage with elgg_register_menu_item() $vars['filter_id'] An optional ID of the filter If provided, plugins can adjust filter tabs menu via 'register, filter:$filter_id' hook $vars['filter_value'] Optional name of the selected filter tab If not provided, will be determined by current page's URL

Definition at line 16 of file filter.php.

$menu_name = $filter_id ? "filter:$filter_id" : 'filter'

Definition at line 32 of file filter.php.

$menu_params = $vars

Definition at line 34 of file filter.php.

$menu_params['items'] = $filter_tabs

Definition at line 35 of file filter.php.

$menu_params['sort_by'] = 'priority'

Definition at line 36 of file filter.php.

$menu_params['class'] = 'elgg-menu-filter'

Definition at line 37 of file filter.php.