Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | List of all members
core_minify Class Reference

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

Static Public Member Functions

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

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: