Class FOFLessFormatterClassic

Description

This class is taken verbatim from:

lessphp v0.3.8 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

  • since: 2.0

Located in /libraries/fof/less/formatter/classic.php (line 25)


	
			
Direct descendents
Class Description
 class FOFLessFormatterCompressed This class is taken verbatim from:
 class FOFLessFormatterJoomla This class is taken verbatim from:
 class FOFLessFormatterLessjs This class is taken verbatim from:
Variable Summary
Method Summary
 FOFLessFormatterClassic __construct ()
 void block (stdClass $block)
 string indentStr ([integer $n = 0])
 boolean isEmpty (stdClass $block)
 string property (string $name, string $value)
Variables
mixed $assignSeparator = ":" (line 37)
  • access: public

Redefined in descendants as:
mixed $break = "\n" (line 29)
  • access: public

Redefined in descendants as:
mixed $breakSelectors = false (line 45)
  • access: public

Redefined in descendants as:
mixed $close = "}" (line 33)
  • access: public
mixed $closeSingle = " }" (line 41)
  • access: public
mixed $compressColors = false (line 47)
  • access: public

Redefined in descendants as:
mixed $disableSingle = false (line 43)
  • access: public

Redefined in descendants as:
mixed $indentChar = " " (line 27)
  • access: public

Redefined in descendants as:
mixed $open = " {" (line 31)
  • access: public

Redefined in descendants as:
mixed $openSingle = " { " (line 39)
  • access: public
mixed $selectorSeparator = ", " (line 35)
  • access: public

Redefined in descendants as:
Methods
Constructor __construct (line 52)

Public constructor

  • access: public
FOFLessFormatterClassic __construct ()
block (line 114)

Output a CSS block

  • access: public
void block (stdClass $block)
  • stdClass $block: The block definition to output
indentStr (line 64)

Indent a string by $n positions

  • return: The indented string
  • access: public
string indentStr ([integer $n = 0])
  • integer $n: How many positions to indent

Redefined in descendants as:
isEmpty (line 89)

Is a block empty?

  • return: True if the block has no lines or children
  • access: protected
boolean isEmpty (stdClass $block)
  • stdClass $block: The block to check
property (line 77)

Return the code for a property

  • return: The CSS code
  • access: public
string property (string $name, string $value)
  • string $name: The name of the porperty
  • string $value: The value of the porperty

Documentation generated on Tue, 19 Nov 2013 14:55:44 +0100 by phpDocumentor 1.4.3