MediaWiki REL1_39
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.

Note
2016 MediaWiki Widgets Team and others; see AUTHORS.txt
MIT

Definition at line 13 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 27 of file DateTimeInputWidget.php.

Member Function Documentation

◆ getConfig()

◆ getInputElement()

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

Definition at line 69 of file DateTimeInputWidget.php.

◆ getJavaScriptClassName()

MediaWiki\Widget\DateTimeInputWidget::getJavaScriptClassName ( )
protected

Definition at line 51 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: