Class FOFLess
This class is taken near verbatim (changes marked with FOF comment markers) from:
lessphp v0.3.9 http://leafo.net/lessphp
LESS css compiler, adapted from http://lesscss.org
Copyright 2012, Leaf Corcoran <leafot@gmail.com> Licensed under MIT or GPLv3, see LICENSE
THIS IS THIRD PARTY CODE. Code comments are mostly useless placeholders to stop phpcs from complaining...
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Since: 2.0
Located at fof/less/less.php
Methods summary
protected
string|null
|
|
protected
boolean
|
|
public static
array
|
|
public static
string
|
|
protected
boolean
|
|
protected
|
#
compileImportedProps( array $props,
Compile Imported Props |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
type
|
|
protected
string
|
|
protected
type
|
|
protected
type
|
|
protected
array
|
|
protected
array
|
|
protected
array
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
type
|
|
protected
null
|
#
findBlocks( array $searchIn, string $path, array $args, array $seen = array() )
Attempt to find blocks matched by path and args |
protected
|
#
zipSetArgs( array $args, array $values )
Sets all argument names in $args to either the default value or the one passed in through $values |
protected
|
#
compileProp( array $prop,
Compile a prop and update $lines or $blocks appropriately |
protected
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
type
|
|
protected
string
|
|
protected
type
|
|
protected
array
|
|
protected
array
|
|
protected
array
|
|
protected
array
|
|
protected
array
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
#
lib_mix( array $args )
mixes two colors by weight mix(@color1, @color2, @weight); http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#mix-instance_method |
protected
string
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
#
funcToColor( type $func )
Convert the rgb, rgba, hsl color literals of function type as returned by the parser into values of color type. |
protected
type
|
|
protected
null
|
|
protected
null
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
protected
string
|
|
protected
integer
|
|
protected
type
|
|
protected
type
|
|
protected
type
|
|
public
type
|
|
public
type
|
|
public
type
|
|
protected
type
|
|
protected
stdclass
|
|
protected
stdclass
|
|
protected
type
|
|
protected
|
|
protected
type
|
|
protected
|
|
public
|
|
public
type
|
|
public
type
|
|
public
boolean
|
#
checkedCompile( type $in, type $out )
Compile only if changed input has changed or output doesn't exist |
public
array
|
#
cachedCompile( mixed $in, boolean $force = false )
Execute lessphp on a .less file or a lessphp cache structure |
public
type
|
|
protected
|
|
public
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
type
|
|
protected
|
|
protected
|
#
throwError( type $msg = null )
Uses the current value of $this->count to show line and line number |
public static
type
|
|
public static
type
|
Magic methods summary
Properties summary
public static
string
|
$VERSION | |
protected static
array
|
$TRUE | |
protected static
array
|
$FALSE | |
protected
array
|
$libFunctions | |
protected
array
|
$registeredVars | |
protected
boolean
|
$preserveComments | |
public
string
|
$vPrefix |
#
Prefix of abstract properties |
public
string
|
$mPrefix |
#
Prefix of abstract blocks |
public
string
|
$parentSelector | |
public
boolean
|
$importDisabled | |
public
string
|
$importDir | |
protected
mixed
|
$numberPrecision | |
protected
|
$sourceParser |
#
Set to the parser that generated the current line when compiling so we know how to create error messages |
protected
mixed
|
$sourceLoc | |
public static
array
|
$defaultValue | |
protected static
integer
|
$nextImportId |
#
Uniquely identify imports |
protected static
array
|
$cssColors |