PHP Class FOF30\Less\Formatter\Classic

lessphp v0.3.9 http://leafo.net/lessphp LESS css compiler, adapted from http://lesscss.org Copyright 2012, Leaf Corcoran Licensed under MIT or GPLv3, see LICENSE
Since: 2.0
Show file Open project: akeeba/fof

Public Properties

Property Type Description
$assignSeparator
$break
$breakSelectors
$close
$closeSingle
$compressColors
$disableSingle
$indentChar
$open
$openSingle
$selectorSeparator

Public Methods

Method Description
__construct ( ) Public constructor
block ( stdClass $block ) : void Output a CSS block
indentStr ( integer $n ) : string Indent a string by $n positions
property ( string $name, string $value ) : string Return the code for a property

Protected Methods

Method Description
isEmpty ( stdClass $block ) : boolean Is a block empty?

Method Details

__construct() public method

Public constructor
public __construct ( )

block() public method

Output a CSS block
public block ( stdClass $block ) : void
$block stdClass The block definition to output
return void

indentStr() public method

Indent a string by $n positions
public indentStr ( integer $n ) : string
$n integer How many positions to indent
return string The indented string

isEmpty() protected method

Is a block empty?
protected isEmpty ( stdClass $block ) : boolean
$block stdClass The block to check
return boolean True if the block has no lines or children

property() public method

Return the code for a property
public property ( string $name, string $value ) : string
$name string The name of the porperty
$value string The value of the porperty
return string The CSS code

Property Details

$assignSeparator public property

public $assignSeparator

$break public property

public $break

$breakSelectors public property

public $breakSelectors

$close public property

public $close

$closeSingle public property

public $closeSingle

$compressColors public property

public $compressColors

$disableSingle public property

public $disableSingle

$indentChar public property

public $indentChar

$open public property

public $open

$openSingle public property

public $openSingle

$selectorSeparator public property

public $selectorSeparator