return Xml::tags( 'span', [ 'class' => 'mw-revdelundel-link' ], $htmlParentheses );
}
- /* Deprecated methods */
-
/**
* Returns the attributes for the tooltip and access key.
*
$this->getOutput()->addWikiMsg( $msgKey, $this->getTitle()->getPrefixedText() );
}
- /* Static utility methods */
-
/**
* Watch or unwatch a page
* @since 1.22
return $this->skin;
}
- /** Helpful methods **/
-
/**
* Get a Message object with context set
* Parameters are the same as wfMessage()
return call_user_func_array( 'wfMessage', $args )->setContext( $this );
}
- /** Static methods **/
-
/**
* Get the RequestContext object associated with the main request
*
use HTMLFormElement;
public function __construct( $fieldWidget, array $config = [] ) {
- // Parent constructor
parent::__construct( $fieldWidget, $config );
+
// Traits
$this->initializeHTMLFormElement( $config );
}
use HTMLFormElement;
public function __construct( $fieldWidget, $buttonWidget = false, array $config = [] ) {
- // Parent constructor
parent::__construct( $fieldWidget, $buttonWidget, $config );
+
// Traits
$this->initializeHTMLFormElement( $config );
}
*/
class CSSMin {
- /* Constants */
-
/** @var string Strip marker for comments. **/
const PLACEHOLDER = "\x7fPLACEHOLDER\x7f";
const EMBED_REGEX = '\/\*\s*\@embed\s*\*\/';
const COMMENT_REGEX = '\/\*.*?\*\/';
- /* Protected Static Members */
-
/** @var array List of common image files extensions and MIME-types */
protected static $mimeTypes = [
'gif' => 'image/gif',
'svg' => 'image/svg+xml',
];
- /* Static Methods */
-
/**
* Get a list of local files referenced in a stylesheet (includes non-existent files).
*
*/
class JavaScriptMinifier {
- /* Class constants */
/* Parsing states.
* The state machine is only necessary to decide whether to parse a slash as division
* operator or as regexp literal.
// Sanity limit to avoid excessive memory usage
const STACK_LIMIT = 1000;
- /* Static functions */
-
/**
* Returns minified JavaScript code.
*
return $data;
}
- /* Methods */
-
/**
* Register core modules and runs registration hooks.
* @param Config $config [optional]
return $moduleNames;
}
- /* Static Methods */
-
/**
* Return JS code that calls mw.loader.implement with given module properties.
*
* ResourceLoader module based on local JavaScript/CSS files.
*/
class ResourceLoaderFileModule extends ResourceLoaderModule {
- /* Protected Members */
/** @var string Local base path, see __construct() */
protected $localBasePath = '';
*/
protected $missingLocalFileRefs = [];
- /* Methods */
-
/**
* Constructs a new module from an options array.
*
* and local base path, for use with ResourceLoaderFileModule.
*/
class ResourceLoaderFilePath {
- /* Protected Members */
/** @var string Local base path */
protected $localBasePath;
* @var string Path to the file */
protected $path;
- /* Methods */
-
/**
* @param string $path Path to the file.
* @param string $localBasePath Base path to prepend when generating a local path.
# pages like Special:UserLogin and Special:Preferences
protected $origin = self::ORIGIN_CORE_SITEWIDE;
- /* Protected Members */
-
protected $name = null;
protected $targets = [ 'desktop' ];
*/
protected $logger;
- /* Methods */
-
/**
* Get this module's name. This is set when the module is registered
* with ResourceLoader::register()
*/
class ResourceLoaderUserTokensModule extends ResourceLoaderModule {
- /* Protected Members */
-
protected $origin = self::ORIGIN_CORE_INDIVIDUAL;
protected $targets = [ 'desktop', 'mobile' ];
- /* Methods */
-
/**
* Fetch the tokens for the current user.
*
* @ingroup Pager
*/
-use \MediaWiki\Linker\LinkRenderer;
+use MediaWiki\Linker\LinkRenderer;
-/**
- * @todo document
- */
class ProtectedPagesPager extends TablePager {
+
public $mForm, $mConds;
private $type, $level, $namespace, $sizetype, $size, $indefonly, $cascadeonly, $noredirect;
$config
);
- // Parent constructor
parent::__construct( $config );
// Properties
$config
);
- // Parent constructor
parent::__construct( $config );
// Properties
'placeholder' => $placeholder,
], $config );
- // Parent constructor
parent::__construct( $config );
// Calculate min/max attributes (which are skipped by TextInputWidget) and add to <input>
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
// Configuration initialization
$config['options'] = $this->getNamespaceDropdownOptions( $config );
- // Parent constructor
parent::__construct( $config );
// Properties
'icon' => 'search',
], $config );
- // Parent constructor
parent::__construct( $config );
// Properties, which are ignored in PHP and just shipped back to JS
$config
);
- // Parent constructor
parent::__construct( $config );
// Properties
* be a valid title (default: true)
*/
public function __construct( array $config = [] ) {
- // Parent constructor
parent::__construct(
array_merge( [ 'maxLength' => 255 ], $config )
);
* @param array $config Configuration options
*/
public function __construct( array $config = [] ) {
- // Parent constructor
parent::__construct( $config );
// Initialization