Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
core_minify Class Reference

Collection of JS and CSS compression methods. More...

Static Public Member Functions

static css ($content)
 Minify CSS code.
 
static css_files (array $files)
 Minify CSS files.
 
static js ($content)
 Minify JS code.
 
static js_files (array $files)
 Minify JS files.
 

Detailed Description

Collection of JS and CSS compression methods.

Member Function Documentation

◆ css()

static core_minify::css ( $content)
static

Minify CSS code.

Parameters
string$content
Return values
stringminified CSS

◆ css_files()

static core_minify::css_files ( array $files)
static

Minify CSS files.

Parameters
array$files
Return values
stringminified CSS code

◆ js()

static core_minify::js ( $content)
static

Minify JS code.

Parameters
string$content
Return values
stringminified JS code

◆ js_files()

static core_minify::js_files ( array $files)
static

Minify JS files.

Parameters
array$files
Return values
stringminified JS code

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