ipAllowed = $config['ipAllowed']; } if ( isset( $config['ipRangeAllowed'] ) ) { $this->ipRangeAllowed = $config['ipRangeAllowed']; } if ( isset( $config['ipRangeLimits'] ) ) { $this->ipRangeLimits = $config['ipRangeLimits']; } if ( isset( $config['excludeNamed'] ) ) { $this->excludeNamed = $config['excludeNamed']; } if ( isset( $config['excludeTemp'] ) ) { $this->excludeTemp = $config['excludeTemp']; } } protected function getJavaScriptClassName() { return 'mw.widgets.UsersMultiselectWidget'; } public function getConfig( &$config ) { if ( $this->ipAllowed !== null ) { $config['ipAllowed'] = $this->ipAllowed; } if ( $this->ipRangeAllowed !== null ) { $config['ipRangeAllowed'] = $this->ipRangeAllowed; } if ( $this->ipRangeLimits !== null ) { $config['ipRangeLimits'] = $this->ipRangeLimits; } if ( $this->excludeNamed !== null ) { $config['excludeNamed'] = $this->excludeNamed; } if ( $this->excludeTemp !== null ) { $config['excludeTemp'] = $this->excludeTemp; } return parent::getConfig( $config ); } }