MediaWiki REL1_34
MediaWiki\Widget\ExpiryInputWidget Class Reference

Expiry widget. More...

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

Public Member Functions

 __construct (Widget $relativeInput, array $options=[])
 
 getConfig (&$config)
 

Protected Member Functions

 getJavaScriptClassName ()
 

Protected Attributes

Widget $relativeInput
 
bool $required
 

Detailed Description

Expiry widget.

Allows the user to toggle between a precise time or enter a relative time, regardless, the value comes in as a relative time.

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

Definition at line 16 of file ExpiryInputWidget.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Widget\ExpiryInputWidget::__construct ( Widget  $relativeInput,
array  $options = [] 
)
Parameters
Widget$relativeInput
array$optionsConfiguration options

Definition at line 32 of file ExpiryInputWidget.php.

References MediaWiki\Widget\ExpiryInputWidget\$relativeInput.

Member Function Documentation

◆ getConfig()

MediaWiki\Widget\ExpiryInputWidget::getConfig ( $config)

◆ getJavaScriptClassName()

MediaWiki\Widget\ExpiryInputWidget::getJavaScriptClassName ( )
protected

Definition at line 50 of file ExpiryInputWidget.php.

Member Data Documentation

◆ $relativeInput

Widget MediaWiki\Widget\ExpiryInputWidget::$relativeInput
protected

◆ $required

bool MediaWiki\Widget\ExpiryInputWidget::$required
protected

Definition at line 26 of file ExpiryInputWidget.php.

Referenced by MediaWiki\Widget\ExpiryInputWidget\getConfig().


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