Elgg  Version 3.0
Variables
friendlytime.php File Reference

Go to the source code of this file.

Variables

 $timestamp = elgg_extract('time', $vars)
 
 try
 
catch(DataFormatException $e) $default_friendly_time_number_of_days = elgg_get_config('friendly_time_number_of_days', 30)
 
 $friendly_time_number_of_days = (int) elgg_extract('number_of_days', $vars, $default_friendly_time_number_of_days)
 
if(strtotime("-{$friendly_time_number_of_days}days")< $timestamp) else
 
 $attributes
 

Variable Documentation

$attributes
Initial value:
= [
'title' => $date->formatLocale(elgg_echo('friendlytime:date_format'))
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21

Definition at line 29 of file friendlytime.php.

catch (DataFormatException $e) $default_friendly_time_number_of_days = elgg_get_config('friendly_time_number_of_days', 30)

Definition at line 20 of file friendlytime.php.

$friendly_time_number_of_days = (int) elgg_extract('number_of_days', $vars, $default_friendly_time_number_of_days)

Definition at line 21 of file friendlytime.php.

$timestamp = elgg_extract('time', $vars)

Definition at line 12 of file friendlytime.php.

if (strtotime("-{$friendly_time_number_of_days}days")< $timestamp) else
Initial value:
{
$output = $date->formatLocale(elgg_echo('friendlytime:date_format:short'))
catch(LoginException $e) if($request->isXhr()) $output
Definition: login.php:56
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21

Definition at line 25 of file friendlytime.php.

try
Initial value:
{
$date = Values::normalizeTime($timestamp)
$timestamp

Definition at line 14 of file friendlytime.php.