Sabberworm/PHP-CSS-Parser  8.1.0
A Parser for CSS Files written in PHP. Allows extraction of CSS files into a data structure, manipulation of said structure and output as (optimized) CSS
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OutputFormat Class Reference

Public Member Functions

 get ($sName)
 
 set ($aNames, $mValue)
 
 __call ($sMethodName, $aArguments)
 
 indentWithTabs ($iNumber=1)
 
 indentWithSpaces ($iNumber=2)
 
 nextLevel ()
 
 beLenient ()
 
 getFormatter ()
 
 level ()
 

Static Public Member Functions

static create ()
 
static createCompact ()
 
static createPretty ()
 

Public Attributes

 $sStringQuotingType = '"'
 Value format.
 
 $bRGBHashNotation = true
 
 $bSemicolonAfterLastRule = true
 Declaration format.
 
 $sSpaceAfterRuleName = ' '
 Spacing Note that these strings are not sanity-checked: the value should only consist of whitespace Any newline character will be indented according to the current level. More...
 
 $sSpaceBeforeRules = ''
 
 $sSpaceAfterRules = ''
 
 $sSpaceBetweenRules = ''
 
 $sSpaceBeforeBlocks = ''
 
 $sSpaceAfterBlocks = ''
 
 $sSpaceBetweenBlocks = "\n"
 
 $sSpaceBeforeSelectorSeparator = ''
 
 $sSpaceAfterSelectorSeparator = ' '
 
 $sSpaceBeforeListArgumentSeparator = ''
 
 $sSpaceAfterListArgumentSeparator = ''
 
 $sSpaceBeforeOpeningBrace = ' '
 
 $sIndentation = "\t"
 Indentation.
 
 $bIgnoreExceptions = false
 Output exceptions.
 

Member Data Documentation

$sSpaceAfterRuleName = ' '

Spacing Note that these strings are not sanity-checked: the value should only consist of whitespace Any newline character will be indented according to the current level.

The triples (After, Before, Between) can be set using a wildcard (e.g. `$oFormat->set('Space*Rules', "\n");`)


The documentation for this class was generated from the following file: