|
| get_input ($variable, $default=null, $filter_result=true) |
| Parameter input functions. More...
|
|
| set_input ($variable, $value) |
| Sets an input value that may later be retrieved by get_input. More...
|
|
| elgg_get_request_data ($filter_result=true) |
| Returns all values parsed from the current request, including $_GET and $_POST values, as well as any values set with set_input() More...
|
|
| elgg_get_title_input ($variable= 'title', $default= '') |
| Get an HTML-escaped title from input. More...
|
|
| elgg_sanitize_input ($input) |
| Filter input from a given string based on registered hooks. More...
|
|
| elgg_is_valid_email (string $address) |
| Validates an email address. More...
|
|
| elgg_make_sticky_form ($form_name, array $ignored_field_names=[]) |
| Save form submission data (all GET and POST vars) into a session cache. More...
|
|
| elgg_clear_sticky_form ($form_name) |
| Remove form submission data from the session. More...
|
|
| elgg_is_sticky_form ($form_name) |
| Does form submission data exist for this form? More...
|
|
| elgg_get_sticky_value ($form_name, $variable= '', $default=null, $filter_result=true) |
| Get a specific value from cached form submission data. More...
|
|
| elgg_get_sticky_values ($form_name, $filter_result=true) |
| Get all submission data cached for a form. More...
|
|
| elgg_is_empty ($value) |
| Check if a value isn't empty, but allow 0 and '0'. More...
|
|
| _elgg_htmlawed_tag_post_processor ($element, $attributes=false) |
| Post processor for tags in htmlawed. More...
|
|
| elgg_string_to_array (string $string) |
| Takes in a comma-separated string and returns an array of uniquely trimmed and stripped strings. More...
|
|
_elgg_htmlawed_tag_post_processor |
( |
|
$element, |
|
|
|
$attributes = false |
|
) |
| |
Post processor for tags in htmlawed.
This runs after htmlawed has filtered. It runs for each tag and filters out style attributes we don't want.
This function triggers the 'allowed_styles', 'htmlawed' plugin hook.
- Parameters
-
string | $element | The tag element name |
array | $attributes | An array of attributes |
- Returns
- string
Definition at line 197 of file input.php.
get_input |
( |
|
$variable, |
|
|
|
$default = null , |
|
|
|
$filter_result = true |
|
) |
| |
Parameter input functions.
This file contains functions for getting input from get/post variables. Get some input from variables passed submitted through GET or POST.
If using any data obtained from get_input() in a web page, please be aware that it is a possible vector for a reflected XSS attack. If you are expecting an integer, cast it to an int. If it is a string, escape quotes.
- Parameters
-
string | $variable | The variable name we want. |
mixed | $default | A default value for the variable if it is not found. |
bool | $filter_result | If true, then the result is filtered for bad tags. |
- Returns
- mixed
- Examples:
- /root/Elgg/engine/lib/views.php.
Definition at line 20 of file input.php.