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 – ComplexNamespaceInputWidget class. * * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ namespace MediaWiki\Widget; /** * Namespace input widget. Displays a dropdown box with the choice of available namespaces, plus two * checkboxes to include associated namespace or to invert selection. */ class ComplexNamespaceInputWidget extends \OOUI\Widget { protected $config; protected $namespace; protected $associated = null; protected $associatedLabel = null; protected $invert = null; protected $invertLabel = null; /** * @param array $config Configuration options * @param array $config['namespace'] Configuration for the NamespaceInputWidget * dropdown with list of namespaces * @param string $config['namespace']['includeAllValue'] If specified, * add an "all namespaces" option to the dropdown, and use this as the input value for it * @param array|null $config['invert'] Configuration for the "invert selection" * CheckboxInputWidget. If null, the checkbox will not be generated. * @param array|null $config['associated'] Configuration for the "include associated namespace" * CheckboxInputWidget. If null, the checkbox will not be generated. * @param array $config['invertLabel'] Configuration for the FieldLayout with label * wrapping the "invert selection" checkbox * @param string $config['invertLabel']['label'] Label text for the label * @param array $config['associatedLabel'] Configuration for the FieldLayout with label * wrapping the "include associated namespace" checkbox * @param string $config['associatedLabel']['label'] Label text for the label */ public function __construct( array $config = [] ) { // Configuration initialization $config = array_merge( [ // Config options for nested widgets 'namespace' => [], 'invert' => [], 'invertLabel' => [], 'associated' => [], 'associatedLabel' => [], ], $config ); // Parent constructor parent::__construct( $config ); // Properties $this->config = $config; $this->namespace = new NamespaceInputWidget( $config['namespace'] ); if ( $config['associated'] !== null ) { $this->associated = new \OOUI\CheckboxInputWidget( array_merge( [ 'value' => '1' ], $config['associated'] ) ); // TODO Should use a LabelWidget? But they don't work like HTML <label>s yet $this->associatedLabel = new \OOUI\FieldLayout( $this->associated, array_merge( [ 'align' => 'inline' ], $config['associatedLabel'] ) ); } if ( $config['invert'] !== null ) { $this->invert = new \OOUI\CheckboxInputWidget( array_merge( [ 'value' => '1' ], $config['invert'] ) ); // TODO Should use a LabelWidget? But they don't work like HTML <label>s yet $this->invertLabel = new \OOUI\FieldLayout( $this->invert, array_merge( [ 'align' => 'inline' ], $config['invertLabel'] ) ); } // Initialization $this ->addClasses( [ 'mw-widget-complexNamespaceInputWidget' ] ) ->appendContent( $this->namespace, $this->associatedLabel, $this->invertLabel ); } protected function getJavaScriptClassName() { return 'mw.widgets.ComplexNamespaceInputWidget'; } public function getConfig( &$config ) { $config = array_merge( $config, array_intersect_key( $this->config, array_fill_keys( [ 'namespace', 'invert', 'invertLabel', 'associated', 'associatedLabel' ], true ) ) ); return parent::getConfig( $config ); } }