MediaWiki REL1_33
TitlesMultiselectWidget.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Widget;
4
12
13 protected $showMissing = null;
14 protected $excludeDynamicNamespaces = null;
15
21 public function __construct( array $config = [] ) {
22 parent::__construct( $config );
23
24 // Properties
25 if ( isset( $config['showMissing'] ) ) {
26 $this->showMissing = $config['showMissing'];
27 }
28 if ( isset( $config['excludeDynamicNamespaces'] ) ) {
29 $this->excludeDynamicNamespaces = $config['excludeDynamicNamespaces'];
30 }
31
32 $this->addClasses( [ 'mw-widgets-titlesMultiselectWidget' ] );
33 }
34
35 protected function getJavaScriptClassName() {
36 return 'mw.widgets.TitlesMultiselectWidget';
37 }
38
39 public function getConfig( &$config ) {
40 if ( $this->showMissing !== null ) {
41 $config['showMissing'] = $this->showMissing;
42 }
43 if ( $this->excludeDynamicNamespaces !== null ) {
44 $config['excludeDynamicNamespaces'] = $this->excludeDynamicNamespaces;
45 }
46
47 return parent::getConfig( $config );
48 }
49
50}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Abstract base class for widgets to select multiple users, titles, namespaces, etc.
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))