Elgg  Version master
Variables
last_login.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('item', $vars)
 Render the last login timestamp. More...
 
if(! $entity instanceof \ElggUser$value = (int) $entity->last_login
 
if(empty($value)) $format = elgg_extract('format', $vars, DATE_RFC2822)
 
 if ( $format==='friendly')
 

Variable Documentation

◆ $entity

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

Render the last login timestamp.

@uses $vars['item'] The item being rendered @uses $vars['item_vars'] Vars received from the page/components/table view @uses $vars['type'] The item type or "" @uses $vars['format'] Date format. Use "friendly" for output/friendlytime view.

Definition at line 11 of file last_login.php.

◆ $format

if (empty( $value)) $format = elgg_extract('format', $vars, DATE_RFC2822)

Definition at line 22 of file last_login.php.

◆ $value

if (! $entity instanceof \ElggUser) $value = (int) $entity->last_login

Definition at line 16 of file last_login.php.

◆ if

if($format==='friendly') (   $format = == 'friendly')

Definition at line 24 of file last_login.php.