MediaWiki REL1_28
CSSMinTestable Class Reference
Inheritance diagram for CSSMinTestable:
Collaboration diagram for CSSMinTestable:

Static Public Member Functions

static isLocalUrl ( $maybeUrl)
 Is this CSS rule referencing a local URL?
 
static isRemoteUrl ( $maybeUrl)
 Is this CSS rule referencing a remote URL?
 
- Static Public Member Functions inherited from CSSMin
static buildUrlValue ( $url)
 Build a CSS 'url()' value for the given URL, quoting parentheses (and other funny characters) and escaping quotes as necessary.
 
static encodeImageAsDataURI ( $file, $type=null, $ie8Compat=true)
 Encode an image file as a data URI.
 
static encodeStringAsDataURI ( $contents, $type, $ie8Compat=true)
 Encode file contents as a data URI with chosen MIME type.
 
static getLocalFileReferences ( $source, $path)
 Get a list of local files referenced in a stylesheet (includes non-existent files).
 
static getMimeType ( $file)
 
static minify ( $css)
 Removes whitespace from CSS data.
 
static remap ( $source, $local, $remote, $embedData=true)
 Remaps CSS URL paths and automatically embeds data URIs for CSS rules or url() values preceded by an / * @embed * / comment.
 
static remapOne ( $file, $query, $local, $remote, $embed)
 Remap or embed a CSS URL path.
 
static serializeStringValue ( $value)
 Serialize a string (escape and quote) for use as a CSS string value.
 

Additional Inherited Members

- Public Attributes inherited from CSSMin
const COMMENT_REGEX = '\/\*.*?\*\/'
 
const DATA_URI_SIZE_LIMIT = 32768
 Internet Explorer data URI length limit.
 
const EMBED_REGEX = '\/\*\s*\@embed\s*\*\/'
 
const URL_REGEX = 'url\(\s*[\'"]?(?P<file>[^\?\‍)\'"]*?)(?P<query>\?[^\‍)\'"]*?|)[\'"]?\s*\‍)'
 
- Static Protected Attributes inherited from CSSMin
static array $mimeTypes
 List of common image files extensions and MIME-types.
 

Detailed Description

Definition at line 447 of file CSSMinTest.php.

Member Function Documentation

◆ isLocalUrl()

static CSSMinTestable::isLocalUrl (   $maybeUrl)
static

Is this CSS rule referencing a local URL?

Parameters
string$maybeUrl
Returns
bool

Reimplemented from CSSMin.

Definition at line 452 of file CSSMinTest.php.

Referenced by CSSMinTest\testIsLocalUrl().

◆ isRemoteUrl()

static CSSMinTestable::isRemoteUrl (   $maybeUrl)
static

Is this CSS rule referencing a remote URL?

Parameters
string$maybeUrl
Returns
bool

Reimplemented from CSSMin.

Definition at line 449 of file CSSMinTest.php.

Referenced by CSSMinTest\testIsRemoteUrl().


The documentation for this class was generated from the following file: