Elgg  Version master
Variables
time.php File Reference

Go to the source code of this file.

Variables

 $vars ['class'] = elgg_extract_class($vars, 'elgg-input-time')
 
 $defaults
 
 $timestamp = elgg_extract('timestamp', $vars)
 
 $format = elgg_extract('format', $vars, $defaults['format'], false)
 
 $min = (int) elgg_extract('min', $vars, 0)
 
 $max = (int) elgg_extract('max', $vars, 24 * 60 * 60)
 
 $step = (int) elgg_extract('step', $vars, 15 * 60)
 
 $value = elgg_extract('value', $vars)
 
 $value_time = ''
 
 $value_timestamp = ''
 
if($value) if($timestamp) else
 
 $hour_options = []
 
 $hour_options_ts = range($min, $max, $step)
 
 $dt = new DateTime('now', new DateTimeZone('UTC'))
 
foreach($hour_options_ts as $ts$vars ['options_values'] = $hour_options
 

Variable Documentation

$defaults
Initial value:
= [
'timestamp' => false

Definition at line 21 of file time.php.

$dt = new DateTime('now', new DateTimeZone('UTC'))

Definition at line 70 of file time.php.

$format = elgg_extract('format', $vars, $defaults['format'], false)

Definition at line 31 of file time.php.

$hour_options = []

Definition at line 67 of file time.php.

$hour_options_ts = range($min, $max, $step)

Definition at line 68 of file time.php.

$max = (int) elgg_extract('max', $vars, 24 * 60 * 60)

Definition at line 37 of file time.php.

$min = (int) elgg_extract('min', $vars, 0)

Definition at line 34 of file time.php.

$step = (int) elgg_extract('step', $vars, 15 * 60)

Definition at line 40 of file time.php.

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

Definition at line 28 of file time.php.

$value = elgg_extract('value', $vars)

Definition at line 43 of file time.php.

$value_time = ''

Definition at line 44 of file time.php.

$value_timestamp = ''

Definition at line 45 of file time.php.

$vars = elgg_extract_class($vars, 'elgg-input-time')

Definition at line 19 of file time.php.

foreach ($hour_options_ts as $ts) $vars['options_values'] = $hour_options

Definition at line 78 of file time.php.

if ($value) if ($timestamp) else
Initial value:
{
$vars['value'] = $value_time
$vars['class']
Definition: time.php:19
$value_time
Definition: time.php:44

Definition at line 63 of file time.php.