$default_options
$default_options :
Default parser options
Fuman specific CSS-LESS class
Implemented functions by lessc.inc.php v1.7.0.2 http://lessphp.gpeasy.com/
rgbahex($color) quote($arg) unquote($arg) e($arg) floor($arg) round($arg) darken($args) lighten($args) saturate($args) desaturate($args) spin($args) fadeout($args) fadein($args) hue($color) saturation($color) lightness($color) color doc: http://lesscss.org/#-color-functions
$_hook : array
its possible to define in the less file some hooks, there you can import other less&css files
None found |
None found |
None found |
None found |
None found |
$env : \Less_Environment
None found |
None found |
None found |
None found |
None found |
SetOptions( $options)
Set one or more compiler options options: import_dirs, cache_dir, cache_method
$options |
None found |
None found |
registerFunction(string $name, callable $callback)
Registers a new custom function
string | $name | function name |
callable | $callback | callback |
None found |
unregisterFunction(string $name)
Removed an already registered function
string | $name | function name |
None found |
parse(null|string $str = null, null|mixed $initialVariables = null) : mixed
Parse
null|string | $str | |
null|mixed | $initialVariables | @ishacky |
@ishacky
None found |
parseFile(string $filename, string $uri_root = '', boolean $returnRoot = false) : \Less_Tree_Ruleset|\Less_Parser
Parse a Less string from a given file
string | $filename | The file to parse |
string | $uri_root | The url of the file |
boolean | $returnRoot | Indicates whether the return value should be a css string a root node |
None found |
ModifyVars(array $vars) : \Less_Parser
Allows a user to set variables values
array | $vars |
None found |
None found |
None found |
SetImportDirs(array $dirs)
Set a list of directories or callbacks the parser should use for determining import paths
array | $dirs |
None found |
SetInput(string|null $file_path)
Set up the input buffer
string|null | $file_path |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
PeekReg(string $tok) : integer
Same as match(), but don't change the state of the parser, just return the match.
string | $tok |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
parseMultiplication() : \Less_Tree_Operation|null
Parses multiplication operation
None found |
None found |
is_method( $a, string $b)
Some versions of php have trouble with method_exists($a,$b) if $a is not an object
$a | ||
string | $b |
None found |
round( $i, $precision)
Round numbers similarly to javascript eg: 1.499999 to 1 instead of 2
$i | ||
$precision |
None found |
NewObj0( $class) : mixed
Create Less_Tree_* objects and optionally generate a cache string
$class |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
ArgString( $arg) : string
Convert an argument to a string for use in the parser cache
$arg |
None found |
None found |
None found |
None found |
getInstance(\Fuman_Config $config = null) : \Fuman_Util_Less
\Fuman_Config | $config |
None found |
lib_pointsToDegree( $x, $y) : float
Converts points to degree
$x | ||
$y |
None found |
lib_prependFumanWebRoot(array $args) : string
Prepend Fuman web root
array | $args |
None found |
lib_setOutputSplitKey(string $key)
Sets ouput split key
string | $key |
None found |
registerHook(string $hookName, string $file)
Registers hook
string | $hookName | |
string | $file |
None found |
importFromConfig(array $args) : string
Import from config
array | $args |
None found |
None found |
None found |
None found |
GetRules(string|null $file_path)
Return the results of parsePrimary for $file_path Use cache and save cached results if possible
string|null | $file_path |
None found |
None found |
None found |
None found |
match(array $toks) : array
Parse from a token, regexp or string, and move forward if match
array | $toks |
None found |
MatchFuncs(array<mixed,string> $toks) : string
array<mixed,string> | $toks |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
parseNameValue()
Custom less.php parse function for finding simple name-value css pairs ex: width:100px;
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
None found |
parseAddition() : \Less_Tree_Operation|null
Parses an addition operation
None found |
parseConditions() : \Less_Tree_Condition|null
Parses the conditions
None found |
None found |
parseOperand()
An operand is anything that can be part of an operation, such as a Color, or a Variable
None found |
parseExpression() : \Less_Tree_Expression|null
Expressions either represent mathematical operations, or white-space delimited Entities.
1px solid black
var |
2 |
---|
parseProperty() : string
Parse a property eg: 'min-width', 'orientation', etc
None found |
parseRuleProperty() : string
Parse a rule property eg: 'color', 'width', 'height', etc
None found |
rulePropertyMatch( $re, $offset, $length, $index, $name)
$re | ||
$offset | ||
$length | ||
$index | ||
$name |
None found |