Class FOFLess

Description

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...

  • since: 2.0

Located in /libraries/fof/less/less.php (line 28)


	
			
Variable Summary
 static mixed $cssColors
 static mixed $defaultValue
 static mixed $FALSE
 static integer $nextImportId
 static mixed $TRUE
 static mixed $VERSION
 mixed $importDir
 string $mPrefix
 mixed $sourceLoc
 string $vPrefix
Method Summary
 static type ccompile (type $in, type $out, [self $less = null])
 static type cexecute (type $in, [type $force = false], [self $less = null])
 static array compressList (array $items, string $delim)
 static string preg_quote (string $what)
 FOFLess __construct ([type $fname = null])
 void addImportDir (type $dir)
 void addParsedFile (type $file)
 type allParsedFiles ()
 type assertColor (type $value, [type $error = "expected color value"])
 type assertNumber (type $value, [type $error = "expecting number"])
 array cachedCompile (mixed $in, [bool $force = false])
 boolean checkedCompile (type $in, type $out)
 type clamp (type $v, [type $max = 1], [type $min = 0])
 null coerceColor (type $value)
 null coerceString (type $value)
 array colorArgs (array $args)
 type compile (type $string, [type $name = null])
 void compileBlock (stdClass $block)
 void compileCSSBlock (stdClass $block)
 type compileFile (type $fname, [type $outFname = null])
 void compileImportedProps (array $props, stdClass $block, string $out, FOFLessParser $sourceParser, string $importDir)
 void compileMedia (stdClass $media)
 string compileMediaQuery (type $queries)
 void compileNestedBlock (stdClass $block, array $selectors)
 void compileProp (array $prop, stdClass $block, string $out)
 void compileProps (type $block, type $out)
 void compileRoot (stdClass $root)
 array compileSelectors (array $selectors)
 void compileValue (array $value)
 boolean eq (mixed $left, mixed $right)
 type evaluate (type $exp)
 type expandParentSelectors (type &$tag, type $replace)
 boolean fileExists (string $name)
 null findBlocks (array $searchIn, string $path, array $args, [array $seen = array()])
 string|null findImport (string $url)
 int fixColor (type $c)
 type flattenList (type $value)
 type funcToColor (type $func)
 type get (type $name, [type $default = null])
 void injectVariables (type $args)
 string lib_alpha (string $value)
 type lib_argb (type $color)
 type lib_blue (type $color)
 array lib_ceil (type $arg)
 string lib_contrast ( $args, array $arg)
 type lib_darken (type $args)
 type lib_desaturate (type $args)
 string lib_e (string $arg)
 string lib_fade (array $args)
 type lib_fadein (type $args)
 type lib_fadeout (type $args)
 array lib_floor (type $arg)
 type lib_green (type $color)
 type lib_hue (type $color)
 boolean lib_iscolor (type $value)
 boolean lib_isem (type $value)
 boolean lib_iskeyword (type $value)
 boolean lib_isnumber (type $value)
 boolean lib_ispercentage (type $value)
 boolean lib_ispixel (type $value)
 boolean lib_isrem (type $value)
 boolean lib_isstring (type $value)
 type lib_lighten (type $args)
 type lib_lightness (type $color)
 string lib_mix (array $args)
 string lib_percentage (array $arg)
 type lib_red (type $color)
 boolean lib_rgbahex (type $color)
 array lib_round (type $arg)
 type lib_saturate (type $args)
 type lib_saturation (type $color)
 type lib_spin (type $args)
 array lib_unit (type $arg)
 type lib__sprintf (type $args)
 stdclass makeOutputBlock (type $type, [type $selectors = null])
 FOFLessParser makeParser (type $name)
 stdClass mediaParent (stdClass $scope)
 type multiplyMedia (type $env, [type $childQueries = null])
 array multiplySelectors (array $selectors)
 type op_color_color (type $op, type $left, type $right)
 type op_color_number (type $op, type $lft, int $rgt)
 type op_number_color (type $op, type $lft, type $rgt)
 type op_number_number (type $op, type $left, type $right)
 type parse ([null $str = null], [type $initialVariables = null])
 boolean patternMatch (type $block, type $callingArgs)
 type patternMatchAll (type $blocks, type $callingArgs)
 type popEnv ()
 stdclass pushEnv ([type $block = null])
 type reduce (type $value, [type $forExpression = false])
 void registerFunction (type $name, type $func)
 void set (type $name, type $value)
 void setFormatter (type $name)
 void setImportDir (type $dirs)
 void setPreserveComments (type $preserve)
 void setVariables (type $variables)
 type sortProps (type $props, [type $split = false])
 string stringConcatenate (type $left, string $right)
 void throwError ([type $msg = null])
 type toBool (type $a)
 type toHSL (type $color)
 type toRGB (type $color)
 type toRGB_helper (type $comp, type $temp1, type $temp2)
 boolean tryImport (string $importPath, stdObject $parentBlock, string $out)
 void unregisterFunction (type $name)
 void unsetVariable (type $name)
 void zipSetArgs (array $args, array $values)
Variables
static mixed $cssColors = array(
'aliceblue' => '240,248,255',
'antiquewhite' => '250,235,215',
'aqua' => '0,255,255',
'aquamarine' => '127,255,212',
'azure' => '240,255,255',
'beige' => '245,245,220',
'bisque' => '255,228,196',
'black' => '0,0,0',
'blanchedalmond' => '255,235,205',
'blue' => '0,0,255',
'blueviolet' => '138,43,226',
'brown' => '165,42,42',
'burlywood' => '222,184,135',
'cadetblue' => '95,158,160',
'chartreuse' => '127,255,0',
'chocolate' => '210,105,30',
'coral' => '255,127,80',
'cornflowerblue' => '100,149,237',
'cornsilk' => '255,248,220',
'crimson' => '220,20,60',
'cyan' => '0,255,255',
'darkblue' => '0,0,139',
'darkcyan' => '0,139,139',
'darkgoldenrod' => '184,134,11',
'darkgray' => '169,169,169',
'darkgreen' => '0,100,0',
'darkgrey' => '169,169,169',
'darkkhaki' => '189,183,107',
'darkmagenta' => '139,0,139',
'darkolivegreen' => '85,107,47',
'darkorange' => '255,140,0',
'darkorchid' => '153,50,204',
'darkred' => '139,0,0',
'darksalmon' => '233,150,122',
'darkseagreen' => '143,188,143',
'darkslateblue' => '72,61,139',
'darkslategray' => '47,79,79',
'darkslategrey' => '47,79,79',
'darkturquoise' => '0,206,209',
'darkviolet' => '148,0,211',
'deeppink' => '255,20,147',
'deepskyblue' => '0,191,255',
'dimgray' => '105,105,105',
'dimgrey' => '105,105,105',
'dodgerblue' => '30,144,255',
'firebrick' => '178,34,34',
'floralwhite' => '255,250,240',
'forestgreen' => '34,139,34',
'fuchsia' => '255,0,255',
'gainsboro' => '220,220,220',
'ghostwhite' => '248,248,255',
'gold' => '255,215,0',
'goldenrod' => '218,165,32',
'gray' => '128,128,128',
'green' => '0,128,0',
'greenyellow' => '173,255,47',
'grey' => '128,128,128',
'honeydew' => '240,255,240',
'hotpink' => '255,105,180',
'indianred' => '205,92,92',
'indigo' => '75,0,130',
'ivory' => '255,255,240',
'khaki' => '240,230,140',
'lavender' => '230,230,250',
'lavenderblush' => '255,240,245',
'lawngreen' => '124,252,0',
'lemonchiffon' => '255,250,205',
'lightblue' => '173,216,230',
'lightcoral' => '240,128,128',
'lightcyan' => '224,255,255',
'lightgoldenrodyellow' => '250,250,210',
'lightgray' => '211,211,211',
'lightgreen' => '144,238,144',
'lightgrey' => '211,211,211',
'lightpink' => '255,182,193',
'lightsalmon' => '255,160,122',
'lightseagreen' => '32,178,170',
'lightskyblue' => '135,206,250',
'lightslategray' => '119,136,153',
'lightslategrey' => '119,136,153',
'lightsteelblue' => '176,196,222',
'lightyellow' => '255,255,224',
'lime' => '0,255,0',
'limegreen' => '50,205,50',
'linen' => '250,240,230',
'magenta' => '255,0,255',
'maroon' => '128,0,0',
'mediumaquamarine' => '102,205,170',
'mediumblue' => '0,0,205',
'mediumorchid' => '186,85,211',
'mediumpurple' => '147,112,219',
'mediumseagreen' => '60,179,113',
'mediumslateblue' => '123,104,238',
'mediumspringgreen' => '0,250,154',
'mediumturquoise' => '72,209,204',
'mediumvioletred' => '199,21,133',
'midnightblue' => '25,25,112',
'mintcream' => '245,255,250',
'mistyrose' => '255,228,225',
'moccasin' => '255,228,181',
'navajowhite' => '255,222,173',
'navy' => '0,0,128',
'oldlace' => '253,245,230',
'olive' => '128,128,0',
'olivedrab' => '107,142,35',
'orange' => '255,165,0',
'orangered' => '255,69,0',
'orchid' => '218,112,214',
'palegoldenrod' => '238,232,170',
'palegreen' => '152,251,152',
'paleturquoise' => '175,238,238',
'palevioletred' => '219,112,147',
'papayawhip' => '255,239,213',
'peachpuff' => '255,218,185',
'peru' => '205,133,63',
'pink' => '255,192,203',
'plum' => '221,160,221',
'powderblue' => '176,224,230',
'purple' => '128,0,128',
'red' => '255,0,0',
'rosybrown' => '188,143,143',
'royalblue' => '65,105,225',
'saddlebrown' => '139,69,19',
'salmon' => '250,128,114',
'sandybrown' => '244,164,96',
'seagreen' => '46,139,87',
'seashell' => '255,245,238',
'sienna' => '160,82,45',
'silver' => '192,192,192',
'skyblue' => '135,206,235',
'slateblue' => '106,90,205',
'slategray' => '112,128,144',
'slategrey' => '112,128,144',
'snow' => '255,250,250',
'springgreen' => '0,255,127',
'steelblue' => '70,130,180',
'tan' => '210,180,140',
'teal' => '0,128,128',
'thistle' => '216,191,216',
'tomato' => '255,99,71',
'transparent' => '0,0,0,0',
'turquoise' => '64,224,208',
'violet' => '238,130,238',
'wheat' => '245,222,179',
'white' => '255,255,255',
'whitesmoke' => '245,245,245',
'yellow' => '255,255,0',
'yellowgreen' => '154,205,50'
)
(line 3304)
  • access: protected
static mixed $defaultValue = array("keyword", "") (line 74)
  • access: public
static mixed $FALSE = array("keyword", "false") (line 34)
  • access: protected
static integer $nextImportId = 0 (line 81)

Uniquely identify imports

  • access: protected
static mixed $TRUE = array("keyword", "true") (line 32)
  • access: protected
static mixed $VERSION = "v0.3.9" (line 30)
  • access: public
mixed $importDir = '' (line 60)
  • access: public
mixed $importDisabled = false (line 58)
  • access: public
mixed $libFunctions = array() (line 36)
  • access: protected
string $mPrefix = '$' (line 54)

Prefix of abstract blocks

  • access: public
mixed $numberPrecision = null (line 62)
  • access: protected
mixed $parentSelector = '&' (line 56)
  • access: public
mixed $preserveComments = false (line 40)
  • access: protected
mixed $registeredVars = array() (line 38)
  • access: protected
mixed $sourceLoc = null (line 72)
  • access: protected
FOFLessParser $sourceParser = null (line 70)

Set to the parser that generated the current line when compiling so we know how to create error messages

  • access: protected
string $vPrefix = '@' (line 47)

Prefix of abstract properties

  • access: public
Methods
static ccompile (line 3275)

Compile file $in to file $out if $in is newer than $out Returns true when it compiles, false otherwise

  • access: public
static type ccompile (type $in, type $out, [self $less = null])
  • type $in: X
  • type $out: X
  • self $less: X
static cexecute (line 3294)

Compile execute

  • access: public
static type cexecute (type $in, [type $force = false], [self $less = null])
  • type $in: X
  • type $force: X
  • self $less: X
static compressList (line 129)

Compresslist

  • access: public
static array compressList (array $items, string $delim)
  • array $items: Items
  • string $delim: Delimiter
static preg_quote (line 148)

Quote for regular expression

  • return: Quoted string
  • access: public
static string preg_quote (string $what)
  • string $what: What to quote
Constructor __construct (line 2846)

Initialize any static state, can initialize parser for a file

  • access: public
FOFLess __construct ([type $fname = null])
  • type $fname: X
addImportDir (line 3220)

Add import dir

  • access: public
void addImportDir (type $dir)
  • type $dir: X
addParsedFile (line 3243)

Add parsed file

  • access: protected
void addParsedFile (type $file)
  • type $file: X
allParsedFiles (line 3231)

All parsed files

  • access: public
type allParsedFiles ()
assertColor (line 1818)

Assert color

  • access: protected
type assertColor (type $value, [type $error = "expected color value"])
  • type $value: X
  • type $error: X
assertNumber (line 1838)

Assert number

  • access: protected
type assertNumber (type $value, [type $error = "expecting number"])
  • type $value: X
  • type $error: X
cachedCompile (line 2977)

Execute lessphp on a .less file or a lessphp cache structure

The lessphp cache structure contains information about a specific less file having been parsed. It can be used as a hint for future calls to determine whether or not a rebuild is required.

The cache structure contains two important keys that may be used externally:

compiled: The final compiled CSS updated: The time (in seconds) the CSS was last compiled

The cache structure is a plain-ol' PHP associative array and can be serialized and unserialized without a hitch.

  • return: lessphp cache structure
  • access: public
array cachedCompile (mixed $in, [bool $force = false])
  • mixed $in: Input
  • bool $force: Force rebuild?
checkedCompile (line 2944)

Compile only if changed input has changed or output doesn't exist

  • access: public
boolean checkedCompile (type $in, type $out)
  • type $in: X
  • type $out: X
clamp (line 2010)

Clamp

  • access: protected
type clamp (type $v, [type $max = 1], [type $min = 0])
  • type $v: X
  • type $max: X
  • type $min: X
coerceColor (line 2289)

Coerce a value for use in color operation

  • access: protected
null coerceColor (type $value)
  • type $value: X
coerceString (line 2337)

Make something string like into a string

  • access: protected
null coerceString (type $value)
  • type $value: X
colorArgs (line 1515)

Helper function to get arguments for color manipulation functions.

takes a list that contains a color like thing and a percentage

  • access: protected
array colorArgs (array $args)
  • array $args: Args
compile (line 2863)

Compile

  • access: public
type compile (type $string, [type $name = null])
  • type $string: X
  • type $name: X
compileBlock (line 291)

Recursively compiles a block.

A block is analogous to a CSS block in most cases. A single LESS document is encapsulated in a block when parsed, but it does not have parent tags so all of it's children appear on the root level when compiled.

Blocks are made up of props and children.

Props are property instructions, array tuples which describe an action to be taken, eg. write a property, set a variable, mixin a block.

The children of a block are just all the blocks that are defined within. This is used to look up mixins when performing a mixin.

Compiling the block involves pushing a fresh environment on the stack, and iterating through the props, compiling each one.

void compileBlock (stdClass $block)
  • stdClass $block: Block
compileCSSBlock (line 326)

Compile CSS block

  • access: protected
void compileCSSBlock (stdClass $block)
  • stdClass $block: Block to compile
compileFile (line 2903)

Compile file

  • throws: Exception
  • access: public
type compileFile (type $fname, [type $outFname = null])
  • type $fname: X
  • type $outFname: X
compileImportedProps (line 248)

Compile Imported Props

  • access: protected
void compileImportedProps (array $props, stdClass $block, string $out, FOFLessParser $sourceParser, string $importDir)
  • array $props: Props
  • stdClass $block: Block
  • string $out: Out
  • FOFLessParser $sourceParser: Source parser
  • string $importDir: Import dir
compileMedia (line 349)

Compile media

  • access: protected
void compileMedia (stdClass $media)
  • stdClass $media: Media
compileMediaQuery (line 507)

Compile media query

  • access: protected
string compileMediaQuery (type $queries)
  • type $queries: Queries
compileNestedBlock (line 408)

Compile nested block

  • access: protected
void compileNestedBlock (stdClass $block, array $selectors)
  • stdClass $block: Block
  • array $selectors: Selectors
compileProp (line 1002)

Compile a prop and update $lines or $blocks appropriately

  • access: protected
void compileProp (array $prop, stdClass $block, string $out)
  • array $prop: Prop
  • stdClass $block: Block
  • string $out: Out
compileProps (line 443)

Compile props

  • access: protected
void compileProps (type $block, type $out)
  • type $block: Something
  • type $out: Something
compileRoot (line 427)

Compile root

  • access: protected
void compileRoot (stdClass $root)
  • stdClass $root: Root
compileSelectors (line 702)

Reduces selector expressions

  • access: protected
array compileSelectors (array $selectors)
  • array $selectors: The selector expressions
compileValue (line 1155)

Compiles a primitive value into a CSS property value.

Values in lessphp are typed by being wrapped in arrays, their format is typically:

array(type, contents [, additional_contents]*)

The input is expected to be reduced. This function will not work on things like expressions and variables.

  • access: protected
void compileValue (array $value)
  • array $value: Value
eq (line 730)

Equality check

  • return: True if equal
  • access: protected
boolean eq (mixed $left, mixed $right)
  • mixed $left: Left operand
  • mixed $right: Right operand
evaluate (line 2393)

Evaluate an expression

  • access: protected
type evaluate (type $exp)
  • type $exp: X
expandParentSelectors (line 608)

Expand parent selectors

  • access: protected
type expandParentSelectors (type &$tag, type $replace)
  • type &$tag: Tag
  • type $replace: Replace
fileExists (line 112)

Does file $name exists? It's a simple proxy to JFile for now

  • access: protected
boolean fileExists (string $name)
  • string $name: The file we check for existence
findBlocks (line 882)

Attempt to find blocks matched by path and args

  • access: protected
null findBlocks (array $searchIn, string $path, array $args, [array $seen = array()])
  • array $searchIn: Block to search in
  • string $path: The path to search for
  • array $args: Arguments
  • array $seen: Your guess is as good as mine; that's third party code
findClosestSelectors (line 629)

Find closest selectors

  • access: protected
array findClosestSelectors ()
findImport (line 90)

Attempts to find the path of an import url, returns null for css files

  • access: protected
string|null findImport (string $url)
  • string $url: The URL of the import
fixColor (line 2495)

Make sure a color's components don't go out of bounds

  • access: protected
int fixColor (type $c)
  • type $c: X
flattenList (line 2357)

Turn list of length 1 into value type

  • access: protected
type flattenList (type $value)
  • type $value: X
funcToColor (line 2023)

Convert the rgb, rgba, hsl color literals of function type as returned by the parser into values of color type.

  • access: protected
type funcToColor (type $func)
  • type $func: X
get (line 2780)

Get the highest occurrence entry for a name

  • access: protected
type get (type $name, [type $default = null])
  • type $name: X
  • type $default: X
injectVariables (line 2816)

Inject array of unparsed strings into environment as variables

  • throws: Exception
  • access: protected
void injectVariables (type $args)
  • type $args: X
lib_alpha (line 1700)

Get the alpha of a color Defaults to 1 for non-colors or colors without an alpha

  • access: protected
string lib_alpha (string $value)
  • string $value: Value
lib_argb (line 1362)

Lib argb

  • access: protected
type lib_argb (type $color)
  • type $color: X
lib_blue (line 2643)

Lib blue

  • access: public
type lib_blue (type $color)
  • type $color: X
lib_ceil (line 1466)

Lib ceil

  • access: protected
array lib_ceil (type $arg)
  • type $arg: X
lib_contrast (line 1788)

Third party code; your guess is as good as mine

  • access: protected
string lib_contrast ( $args, array $arg)
  • array $arg: Arg
  • $args
lib_darken (line 1536)

Lib darken

  • access: protected
type lib_darken (type $args)
  • type $args: X
lib_desaturate (line 1587)

Lib desaturate

  • access: protected
type lib_desaturate (type $args)
  • type $args: X
lib_e (line 1374)

Utility func to unquote a string

  • access: protected
string lib_e (string $arg)
  • string $arg: Arg
lib_fade (line 1715)

Set the alpha of the color

  • access: protected
string lib_fade (array $args)
  • array $args: Args
lib_fadein (line 1642)

Lib fadein

  • access: protected
type lib_fadein (type $args)
  • type $args: X
lib_fadeout (line 1627)

Lib fadeout

  • access: protected
type lib_fadeout (type $args)
  • type $args: X
lib_floor (line 1452)

Lib floor

  • access: protected
array lib_floor (type $arg)
  • type $arg: X
lib_green (line 2624)

Lib green

  • access: public
type lib_green (type $color)
  • type $color: X
lib_hue (line 1657)

Lib hue

  • access: protected
type lib_hue (type $color)
  • type $color: X
lib_iscolor (line 1271)

Lib is color

  • access: protected
boolean lib_iscolor (type $value)
  • type $value: X
lib_isem (line 1319)

Lib is em

  • access: protected
boolean lib_isem (type $value)
  • type $value: X
lib_iskeyword (line 1283)

Lib is keyword

  • access: protected
boolean lib_iskeyword (type $value)
  • type $value: X
lib_isnumber (line 1247)

Lib is number

  • access: protected
boolean lib_isnumber (type $value)
  • type $value: X
lib_ispercentage (line 1307)

Lib is percentage

  • access: protected
boolean lib_ispercentage (type $value)
  • type $value: X
lib_ispixel (line 1295)

Lib is pixel

  • access: protected
boolean lib_ispixel (type $value)
  • type $value: X
lib_isrem (line 1331)

Lib is rem

  • access: protected
boolean lib_isrem (type $value)
  • type $value: X
lib_isstring (line 1259)

Lib is string

  • access: protected
boolean lib_isstring (type $value)
  • type $value: X
lib_lighten (line 1553)

Lib lighten

  • access: protected
type lib_lighten (type $args)
  • type $args: X
lib_lightness (line 1685)

Lib lightness

  • access: protected
type lib_lightness (type $color)
  • type $color: X
lib_mix (line 1746)

mixes two colors by weight mix(@color1, @color2, @weight); http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#mix-instance_method

  • access: protected
string lib_mix (array $args)
  • array $args: Args
lib_percentage (line 1730)

Third party code; your guess is as good as mine

  • access: protected
string lib_percentage (array $arg)
  • array $arg: Arg
lib_red (line 2605)

Lib red

  • access: public
type lib_red (type $color)
  • type $color: X
lib_rgbahex (line 1343)

LIb rgba hex

  • access: protected
boolean lib_rgbahex (type $color)
  • type $color: X
lib_round (line 1480)

Lib round

  • access: protected
array lib_round (type $arg)
  • type $arg: X
lib_saturate (line 1570)

Lib saturate

  • access: protected
type lib_saturate (type $args)
  • type $args: X
lib_saturation (line 1671)

Lib saturation

  • access: protected
type lib_saturation (type $color)
  • type $color: X
lib_spin (line 1604)

Lib spin

  • access: protected
type lib_spin (type $args)
  • type $args: X
lib_unit (line 1494)

Lib unit

  • access: protected
array lib_unit (type $arg)
  • type $arg: X
lib__sprintf (line 1408)

Lib sprintf

  • access: protected
type lib__sprintf (type $args)
  • type $args: X
makeOutputBlock (line 2715)

Make output block

  • access: protected
stdclass makeOutputBlock (type $type, [type $selectors = null])
  • type $type: X
  • type $selectors: X
makeParser (line 3096)

Make parser

  • access: protected
FOFLessParser makeParser (type $name)
  • type $name: X
mediaParent (line 385)

Media parent

  • access: protected
stdClass mediaParent (stdClass $scope)
  • stdClass $scope: Scope
multiplyMedia (line 564)

Multiply media

  • access: protected
type multiplyMedia (type $env, [type $childQueries = null])
  • type $env: X
  • type $childQueries: X
multiplySelectors (line 655)

Multiply $selectors against the nearest selectors in env

  • access: protected
array multiplySelectors (array $selectors)
  • array $selectors: The selectors
newFormatter (line 3123)

New formatter

  • access: protected
FOFLessFormatterLessjs newFormatter ()
op_color_color (line 2558)

Op color color

  • access: protected
type op_color_color (type $op, type $left, type $right)
  • type $op: X
  • type $left: X
  • type $right: X
op_color_number (line 2539)

Op color number

  • access: protected
type op_color_number (type $op, type $lft, int $rgt)
  • type $op: X
  • type $lft: X
  • int $rgt: X
op_number_color (line 2522)

Op number color

  • access: protected
type op_number_color (type $op, type $lft, type $rgt)
  • type $op: X
  • type $lft: X
  • type $rgt: X
op_number_number (line 2664)

Operator on two numbers

  • access: protected
type op_number_number (type $op, type $left, type $right)
  • type $op: X
  • type $left: X
  • type $right: X
parse (line 3055)

Parse and compile buffer

  • deprecated: 2.0
  • throws: Exception
  • access: public
type parse ([null $str = null], [type $initialVariables = null])
  • null $str: X
  • type $initialVariables: X
patternMatch (line 743)

Pattern match

  • access: protected
boolean patternMatch (type $block, type $callingArgs)
  • type $block: X
  • type $callingArgs: X
patternMatchAll (line 857)

Pattern match all

  • access: protected
type patternMatchAll (type $blocks, type $callingArgs)
  • type $blocks: X
  • type $callingArgs: X
popEnv (line 2751)

Pop something off the stack

  • access: protected
type popEnv ()
pushEnv (line 2734)

The state of execution

  • access: protected
stdclass pushEnv ([type $block = null])
  • type $block: X
reduce (line 2129)

Reduce

  • access: protected
type reduce (type $value, [type $forExpression = false])
  • type $value: X
  • type $forExpression: X
registerFunction (line 3160)

Register function

  • access: public
void registerFunction (type $name, type $func)
  • type $name: X
  • type $func: X
set (line 2767)

Set something in the current env

  • access: protected
void set (type $name, type $value)
  • type $name: X
  • type $value: X
setFormatter (line 3113)

Set Formatter

  • access: public
void setFormatter (type $name)
  • type $name: X
setImportDir (line 3208)

Set import dir

  • access: public
void setImportDir (type $dirs)
  • type $dirs: X
setPreserveComments (line 3147)

Set preserve comments

  • access: public
void setPreserveComments (type $preserve)
  • type $preserve: X
setVariables (line 3184)

Set variables

  • access: public
void setVariables (type $variables)
  • type $variables: X
sortProps (line 459)

Sort props

  • access: protected
type sortProps (type $props, [type $split = false])
  • type $props: X
  • type $split: X
stringConcatenate (line 2466)

String concatenate

  • access: protected
string stringConcatenate (type $left, string $right)
  • type $left: X
  • string $right: X
throwError (line 3255)

Uses the current value of $this->count to show line and line number

  • access: protected
void throwError ([type $msg = null])
  • type $msg: X
toBool (line 2374)

To bool

  • access: protected
type toBool (type $a)
  • type $a: X
toHSL (line 1855)

To HSL

  • access: protected
type toHSL (type $color)
  • type $color: X
toRGB (line 1961)

Converts a hsl array into a color value in rgb.

Expects H to be in range of 0 to 360, S and L in 0 to 100

  • access: protected
type toRGB (type $color)
  • type $color: X
toRGB_helper (line 1924)

To RGB helper

  • access: protected
type toRGB_helper (type $comp, type $temp1, type $temp2)
  • type $comp: X
  • type $temp1: X
  • type $temp2: X
tryImport (line 162)

Try import

  • access: protected
boolean tryImport (string $importPath, stdObject $parentBlock, string $out)
  • string $importPath: Import path
  • stdObject $parentBlock: Parent block
  • string $out: Out
unregisterFunction (line 3172)

Unregister function

  • access: public
void unregisterFunction (type $name)
  • type $name: X
unsetVariable (line 3196)

Unset variable

  • access: public
void unsetVariable (type $name)
  • type $name: X
zipSetArgs (line 951)

Sets all argument names in $args to either the default value or the one passed in through $values

  • access: protected
void zipSetArgs (array $args, array $values)
  • array $args: Arguments
  • array $values: Values

Documentation generated on Tue, 19 Nov 2013 15:06:58 +0100 by phpDocumentor 1.4.3