Elgg  Version 2.3
Namespaces | Variables
autocomplete.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

if(isset($vars['class'])) else
 
 $defaults
 
 $vars = array_merge($defaults, $vars)
 
 $params = array()
 
if(isset($vars['match_on'])) if(isset($vars['match_owner'])) $vars ['type'] = 'text'
 
 $vars ['data-source'] = elgg_get_site_url() . 'livesearch?' . http_build_query($params)
 

Variable Documentation

◆ $defaults

$defaults
Initial value:
= array(
'value' => '',
'disabled' => false,
)
Examples
/root/Elgg/engine/classes/Elgg/FormsService.php, and /root/Elgg/engine/lib/views.php.

Definition at line 22 of file autocomplete.php.

◆ $params

$params = array()

Definition at line 29 of file autocomplete.php.

◆ $vars [1/3]

$vars = array_merge($defaults, $vars)

Definition at line 27 of file autocomplete.php.

◆ $vars [2/3]

$vars[ 'data-source'] = elgg_get_site_url() . 'livesearch?' . http_build_query($params)

Definition at line 39 of file autocomplete.php.

◆ $vars [3/3]

if (isset( $vars[ 'match_on'])) if (isset( $vars[ 'match_owner'])) $vars[ 'type'] = 'text'

Definition at line 38 of file autocomplete.php.

◆ else

if (isset( $vars[ 'class'])) else
Initial value:
{
$vars['class'] = "elgg-input-autocomplete"
$vars

Definition at line 18 of file autocomplete.php.