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
Mostra 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_oe property

public $assignSeparator

$break public_oe property

public $break

$breakSelectors public_oe property

public $breakSelectors

$close public_oe property

public $close

$closeSingle public_oe property

public $closeSingle

$compressColors public_oe property

public $compressColors

$disableSingle public_oe property

public $disableSingle

$indentChar public_oe property

public $indentChar

$open public_oe property

public $open

$openSingle public_oe property

public $openSingle

$selectorSeparator public_oe property

public $selectorSeparator