Skip to content

functions_modules_minify

Daniel Spors edited this page Nov 11, 2020 · 1 revision

Functions in file modules/minify.php

minify_init

Initializes the minify module. Note that this module can be used best from SysAdmin!

Definition: public function minify_init()

Returns: void

minify_pre_render_handler

Handler for HOOK_PRE_RENDER Checks if there are minified files present as sets up ScavixWDF to use them. Do not call this directly!

Definition: public function minify_pre_render_handler($args)

Returns: void

Parameters:

  • mixed $args Do not call!

minify_forbidden

Checks if minifying a classes resources is explicitely forbidden Uses NoMinify attribute to check that

Definition: public function minify_forbidden($classname)

Returns: bool true or false

Parameters:

  • string $classname Classname to check for

minify_all

Performs minifying. This is best called from SysAdmin.

Definition: public function minify_all($paths, $target_base_name, $nc_argument)

Returns: void

Parameters:

  • array $paths Array fo paths to scan for content

  • string $target_base_name Base name for the minify files

  • string $nc_argument NoCache argument to add to the filename

use_minified_file

INTERNAL Used from minify_pre_render_handler().

minify_js

INTERNAL Performs JavaScript minifying

minify_css

INTERNAL Performs CSS minifying

minify_css_translate_url

INTERNAL Translates an URL in a CSS file into something absolute

minify_collect_files

INTERNAL Collects files for minifying

minify_resolve_dependencies

INTERNAL Resolves dependencies

minify_collect_from_file

INTERNAL Collects dependencies from a file

Clone this wiki locally