Elgg  Version 6.1
Variables
date.php File Reference

Go to the source code of this file.

Variables

 $vars ['class'] = elgg_extract_class($vars, 'elgg-input-date')
 
 $defaults
 
 $timestamp = elgg_extract('timestamp', $vars)
 
 $format = elgg_extract('format', $vars, $defaults['format'], false)
 
 $name = elgg_extract('name', $vars)
 
 $value = elgg_extract('value', $vars)
 
 $value_date = ''
 
 $value_timestamp = ''
 
if($value) if($timestamp) $vars ['value'] = $value_date
 
 $datepicker_options = (array) elgg_extract('datepicker_options', $vars, [])
 
if(empty($datepicker_options['dateFormat'])) $vars ['data-datepicker-opts'] = $datepicker_options ? json_encode($datepicker_options) : ''
 
if(isset($vars['id'])) else
 

Variable Documentation

$datepicker_options = (array) elgg_extract('datepicker_options', $vars, [])

Definition at line 73 of file date.php.

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

Definition at line 25 of file date.php.

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

Definition at line 37 of file date.php.

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

Definition at line 40 of file date.php.

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

Definition at line 34 of file date.php.

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

Definition at line 41 of file date.php.

$value_date = ''

Definition at line 43 of file date.php.

$value_timestamp = ''

Definition at line 44 of file date.php.

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

Definition at line 23 of file date.php.

if ($value) if ($timestamp) $vars['value'] = $value_date

Definition at line 71 of file date.php.

if (empty($datepicker_options['dateFormat'])) $vars['data-datepicker-opts'] = $datepicker_options ? json_encode($datepicker_options) : ''

Definition at line 80 of file date.php.

if (isset($vars['id'])) else
Initial value:
{
$selector = ".elgg-input-date[name='{$name}']"
$selector
Definition: tags.php:54

Definition at line 86 of file date.php.