Elgg  Version 7.1
Variables
content.php File Reference

Go to the source code of this file.

Variables

 $widget = elgg_extract('entity', $vars)
 Content stats widget. More...
 
if(! $widget instanceof \ElggWidget$registered_entity_types = elgg_entity_types_with_capability('searchable')
 
if(empty($registered_entity_types)) $stats = []
 
 $entity_stats = elgg_get_entity_statistics()
 
 foreach ( $stats as $name=> $num)
 

Variable Documentation

◆ $entity_stats

$entity_stats = elgg_get_entity_statistics()

Definition at line 18 of file content.php.

◆ $registered_entity_types

if (! $widget instanceof \ElggWidget) $registered_entity_types = elgg_entity_types_with_capability('searchable')

Definition at line 11 of file content.php.

◆ $stats

if (empty( $registered_entity_types)) $stats = []

Definition at line 17 of file content.php.

◆ $widget

$widget = elgg_extract('entity', $vars)

Content stats widget.

Definition at line 6 of file content.php.

◆ foreach

foreach($stats as $name=> $num) (   $stats as,
  $num 
)

Definition at line 38 of file content.php.