Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: