Go to the source code of this file.
|
| $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 |
|
Initial value:
Definition at line 21 of file time.php.
$dt = new DateTime('now', new DateTimeZone('UTC')) |
$format = elgg_extract('format', $vars, $defaults['format'], false) |
$hour_options_ts = range($min, $max, $step) |
foreach ($hour_options_ts as $ts) $vars['options_values'] = $hour_options |
Initial value:
Definition at line 63 of file time.php.