Elgg  Version master
Variables
livesearch.php File Reference

Go to the source code of this file.

Variables

 $request = elgg_extract('request', $vars)
 
 $input_params = $request->getParams()
 
 $ignored_inputs = ['view', '_route']
 
foreach($input_params as $name=> $value$vars ['term'] = trim((string) elgg_extract('term', $vars, elgg_extract('q', $vars)))
 
if(elgg_is_empty($vars['term'])) $vars ['limit'] = (int) elgg_extract('limit', $vars, elgg_get_config('default_limit'))
 
 $match_on = elgg_extract('match_on', $vars)
 
 if (!elgg_view_exists("resources/livesearch/$match_on"))
 

Variable Documentation

$ignored_inputs = ['view', '_route']

Definition at line 16 of file livesearch.php.

$input_params = $request->getParams()

Definition at line 15 of file livesearch.php.

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

Definition at line 40 of file livesearch.php.

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

Definition at line 12 of file livesearch.php.

foreach ($input_params as $name=> $value) $vars['term'] = trim((string) elgg_extract('term', $vars, elgg_extract('q', $vars)))

Definition at line 31 of file livesearch.php.

if (elgg_is_empty($vars['term'])) $vars['limit'] = (int) elgg_extract('limit', $vars, elgg_get_config('default_limit'))

Definition at line 38 of file livesearch.php.

if(!elgg_view_exists("resources/livesearch/$match_on"))

Definition at line 45 of file livesearch.php.