EasyBlogStylesheetBuilder
Table of Contents
Properties
-
$stylesheet
: mixed
-
$defaultOptions
: mixed
-
$presets
: mixed
Methods
-
__construct()
: mixed
-
buildGroup()
: mixed
-
compileGroup()
: mixed
-
generateIndex()
: mixed
-
joinFiles()
: mixed
-
minifyGroup()
: mixed
-
run()
: mixed
-
writeTarget()
: mixed
-
array_merge_recursive_distinct()
: mixed
$stylesheet
public
mixed
$stylesheet
= \null
$defaultOptions
protected
static mixed
$defaultOptions
= array('compile' => array('enabled' => \true, 'force' => \false), 'minify' => array('enabled' => \true), 'build' => array('enabled' => \true, 'target' => array('mode' => 'index'), 'minified_target' => array('mode' => 'join')))
$presets
protected
static mixed
$presets
= array(
// Generate index & join minified stylesheets.
// Ideal when you want to pick up CSS changes on page refresh.
// Suitable when running under static mode.
'fast' => array('compile' => array('enabled' => \false), 'minify' => array('enabled' => \false)),
// Cache compile, minify stylesheet, generate index and join minified stylesheet.
// Ideal when you want to pick up LESS changes on page refresh when loading minified stylesheets.
// Suitable for testing when running under static/optimized mode.
'cache' => array(),
// Cache compile & generate index.
// Ideal when you want to pick up LESS changes on page refresh.
// Suitable for development when running under development mode.
'development' => array('minify' => array('enabled' => \false), 'build' => array('minified_target' => array('mode' => 'skip'))),
// Full compile, minify stylesheet, generate index and join minified stylesheets.
// Ideal when packaging theme stylesheets.
// Suitable for building.
'full' => array('compile' => array('force' => \true)),
)
__construct()
public
__construct(mixed $stylesheet) : mixed
Parameters
-
$stylesheet
: mixed
-
buildGroup()
public
buildGroup(mixed $group[, mixed $options = array() ]) : mixed
Parameters
-
$group
: mixed
-
-
$options
: mixed
= array()
-
compileGroup()
public
compileGroup(mixed $group[, mixed $options = array() ]) : mixed
Parameters
-
$group
: mixed
-
-
$options
: mixed
= array()
-
generateIndex()
public
generateIndex([mixed $sections = array() ][, mixed $type = 'css' ]) : mixed
Parameters
-
$sections
: mixed
= array()
-
-
$type
: mixed
= 'css'
-
joinFiles()
public
joinFiles([mixed $sections = array() ][, mixed $type = 'css' ]) : mixed
Parameters
-
$sections
: mixed
= array()
-
-
$type
: mixed
= 'css'
-
minifyGroup()
public
minifyGroup(mixed $group[, mixed $options = array() ]) : mixed
Parameters
-
$group
: mixed
-
-
$options
: mixed
= array()
-
run()
public
run([mixed $preset = 'cache' ][, mixed $options = array() ]) : mixed
Parameters
-
$preset
: mixed
= 'cache'
-
-
$options
: mixed
= array()
-
writeTarget()
public
writeTarget(mixed $group, mixed $type, mixed $mode) : mixed
Parameters
-
$group
: mixed
-
-
$type
: mixed
-
-
$mode
: mixed
-
array_merge_recursive_distinct()
private
static array_merge_recursive_distinct(array<string|int, mixed> &$array1, array<string|int, mixed> &$array2) : mixed
Parameters
-
$array1
: array<string|int, mixed>
-
-
$array2
: array<string|int, mixed>
-