Elgg  Version 6.3
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$entity_stats = elgg_get_entity_statistics()
 
 $registered_entity_types = elgg_entity_types_with_capability('searchable')
 
if(empty($registered_entity_types)) $stats = []
 
 foreach ( $stats as $name=> $num)
 

Variable Documentation

◆ $entity_stats

if (! $widget instanceof \ElggWidget) $entity_stats = elgg_get_entity_statistics()

Definition at line 11 of file content.php.

◆ $registered_entity_types

$registered_entity_types = elgg_entity_types_with_capability('searchable')

Definition at line 13 of file content.php.

◆ $stats

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

Definition at line 20 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 40 of file content.php.