MediaWiki  1.28.0
MediaWiki\Widget\DateTimeInputWidget Class Reference

Date-time input widget. More...

Inheritance diagram for MediaWiki\Widget\DateTimeInputWidget:
Collaboration diagram for MediaWiki\Widget\DateTimeInputWidget:

Public Member Functions

 __construct (array $config=[])
 
 getConfig (&$config)
 

Protected Member Functions

 getInputElement ($config)
 
 getJavaScriptClassName ()
 

Protected Attributes

 $clearable = null
 
 $max = null
 
 $min = null
 
 $type = null
 

Detailed Description

Date-time input widget.

Definition at line 15 of file DateTimeInputWidget.php.

Constructor & Destructor Documentation

MediaWiki\Widget\DateTimeInputWidget::__construct ( array  $config = [])
Parameters
array$configConfiguration options
string$config,['type']'date', 'time', or 'datetime'
string$config,['min']Minimum date, time, or datetime
string$config,['max']Maximum date, time, or datetime
bool$config,['clearable']Whether to provide for blanking the value.

Definition at line 29 of file DateTimeInputWidget.php.

References MediaWiki\$config, and type.

Member Function Documentation

MediaWiki\Widget\DateTimeInputWidget::getInputElement (   $config)
protected

Definition at line 73 of file DateTimeInputWidget.php.

References type.

MediaWiki\Widget\DateTimeInputWidget::getJavaScriptClassName ( )
protected

Definition at line 55 of file DateTimeInputWidget.php.

Member Data Documentation

MediaWiki\Widget\DateTimeInputWidget::$clearable = null
protected
MediaWiki\Widget\DateTimeInputWidget::$max = null
protected
MediaWiki\Widget\DateTimeInputWidget::$min = null
protected
MediaWiki\Widget\DateTimeInputWidget::$type = null
protected

The documentation for this class was generated from the following file: