MediaWiki  1.30.2
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

◆ __construct()

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

◆ getConfig()

◆ getInputElement()

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

Definition at line 73 of file DateTimeInputWidget.php.

References type.

◆ getJavaScriptClassName()

MediaWiki\Widget\DateTimeInputWidget::getJavaScriptClassName ( )
protected

Definition at line 55 of file DateTimeInputWidget.php.

Member Data Documentation

◆ $clearable

MediaWiki\Widget\DateTimeInputWidget::$clearable = null
protected

◆ $max

MediaWiki\Widget\DateTimeInputWidget::$max = null
protected

◆ $min

MediaWiki\Widget\DateTimeInputWidget::$min = null
protected

◆ $type

MediaWiki\Widget\DateTimeInputWidget::$type = null
protected

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