Elgg  Version 6.2
Variables
all.php File Reference

Go to the source code of this file.

Variables

 $defaults
 
 $options = (array) elgg_extract('options', $vars, [])
 
 $options ['wheres'][]
 
 $vars ['options'] = $options
 

Variable Documentation

◆ $defaults

$defaults
Initial value:
= [
'type_subtype_pairs' => elgg_entity_types_with_capability('restorable'),
'no_results' => elgg_echo('trash:no_results'),
'list_class' => 'elgg-listing-trash',
'item_view' => 'trash/entity',
'pagination_behaviour' => 'ajax-replace',
'limit' => max(20, (int) elgg_get_config('default_limit'), (int) get_input('limit')),
'sort_by' => [
'property' => 'time_deleted',
'direction' => 'desc',
],
'wheres' => [],
]
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
get_input(string $variable, $default=null, bool $filter_result=true)
Parameter input functions.
Definition: input.php:20
elgg_entity_types_with_capability(string $capability)
Returns an array of type/subtypes with the requested capability enabled.
Definition: entities.php:757
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17

Definition at line 10 of file all.php.

◆ $options [1/2]

$options = (array) elgg_extract('options', $vars, [])

Definition at line 24 of file all.php.

◆ $options [2/2]

$options[ 'wheres'][]
Initial value:
= function(QueryBuilder $qb, $main_alias) {
return $qb->compare("{$main_alias}.deleted", '=', 'yes', ELGG_VALUE_STRING);
}
Database abstraction query builder.
const ELGG_VALUE_STRING
Definition: constants.php:112
$qb
Definition: queue.php:12

Definition at line 28 of file all.php.

◆ $vars

$vars[ 'options'] = $options

Definition at line 32 of file all.php.