OutputFormat
in package
Class OutputFormat
Table of Contents
- $bIgnoreExceptions : mixed
- Output exceptions.
- $bRGBHashNotation : mixed
- $bSemicolonAfterLastRule : mixed
- Declaration format
- $sAfterAtRuleBlock : mixed
- $sAfterDeclarationBlock : mixed
- $sAfterDeclarationBlockSelectors : mixed
- $sBeforeAtRuleBlock : mixed
- $sBeforeDeclarationBlock : mixed
- $sIndentation : mixed
- Indentation
- $sSpaceAfterBlocks : mixed
- $sSpaceAfterListArgumentSeparator : mixed
- $sSpaceAfterRuleName : mixed
- 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.
- $sSpaceAfterRules : mixed
- $sSpaceAfterSelectorSeparator : mixed
- $sSpaceBeforeBlocks : mixed
- $sSpaceBeforeListArgumentSeparator : mixed
- $sSpaceBeforeOpeningBrace : mixed
- $sSpaceBeforeRules : mixed
- $sSpaceBeforeSelectorSeparator : mixed
- $sSpaceBetweenBlocks : mixed
- $sSpaceBetweenRules : mixed
- $sStringQuotingType : mixed
- Value format
- $iIndentationLevel : mixed
- $oFormatter : mixed
- $oNextLevelFormat : mixed
- __call() : mixed
- __construct() : mixed
- beLenient() : mixed
- create() : OutputFormat
- Create format.
- createCompact() : OutputFormat
- Create compact format.
- createPretty() : OutputFormat
- Create pretty format.
- get() : mixed
- getFormatter() : mixed
- indentWithSpaces() : mixed
- indentWithTabs() : mixed
- level() : mixed
- nextLevel() : mixed
- set() : mixed
- setSemicolonAfterLastRule() :
Properties
$bIgnoreExceptions
Output exceptions.
public
mixed
$bIgnoreExceptions
= false
$bRGBHashNotation
public
mixed
$bRGBHashNotation
= true
$bSemicolonAfterLastRule
Declaration format
public
mixed
$bSemicolonAfterLastRule
= true
$sAfterAtRuleBlock
public
mixed
$sAfterAtRuleBlock
= ''
$sAfterDeclarationBlock
public
mixed
$sAfterDeclarationBlock
= ''
$sAfterDeclarationBlockSelectors
public
mixed
$sAfterDeclarationBlockSelectors
= ''
$sBeforeAtRuleBlock
public
mixed
$sBeforeAtRuleBlock
= ''
$sBeforeDeclarationBlock
public
mixed
$sBeforeDeclarationBlock
= ''
$sIndentation
Indentation
public
mixed
$sIndentation
= " "
$sSpaceAfterBlocks
public
mixed
$sSpaceAfterBlocks
= ''
$sSpaceAfterListArgumentSeparator
public
mixed
$sSpaceAfterListArgumentSeparator
= ''
$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.
public
mixed
$sSpaceAfterRuleName
= ' '
The triples (After, Before, Between) can be set using a wildcard (e.g. $oFormat->set('Space*Rules', "\n");)
$sSpaceAfterRules
public
mixed
$sSpaceAfterRules
= ''
$sSpaceAfterSelectorSeparator
public
mixed
$sSpaceAfterSelectorSeparator
= ' '
$sSpaceBeforeBlocks
public
mixed
$sSpaceBeforeBlocks
= ''
$sSpaceBeforeListArgumentSeparator
public
mixed
$sSpaceBeforeListArgumentSeparator
= ''
$sSpaceBeforeOpeningBrace
public
mixed
$sSpaceBeforeOpeningBrace
= ' '
$sSpaceBeforeRules
public
mixed
$sSpaceBeforeRules
= ''
$sSpaceBeforeSelectorSeparator
public
mixed
$sSpaceBeforeSelectorSeparator
= ''
$sSpaceBetweenBlocks
public
mixed
$sSpaceBetweenBlocks
= "
"
$sSpaceBetweenRules
public
mixed
$sSpaceBetweenRules
= ''
$sStringQuotingType
Value format
public
mixed
$sStringQuotingType
= '"'
$iIndentationLevel
private
mixed
$iIndentationLevel
= 0
$oFormatter
private
mixed
$oFormatter
= null
$oNextLevelFormat
private
mixed
$oNextLevelFormat
= null
Methods
__call()
public
__call(mixed $sMethodName, mixed $aArguments) : mixed
Parameters
- $sMethodName : mixed
- $aArguments : mixed
Return values
mixed —__construct()
public
__construct() : mixed
Return values
mixed —beLenient()
public
beLenient() : mixed
Return values
mixed —create()
Create format.
public
static create() : OutputFormat
Return values
OutputFormat —Format.
createCompact()
Create compact format.
public
static createCompact() : OutputFormat
Return values
OutputFormat —Format.
createPretty()
Create pretty format.
public
static createPretty() : OutputFormat
Return values
OutputFormat —Format.
get()
public
get(mixed $sName) : mixed
Parameters
- $sName : mixed
Return values
mixed —getFormatter()
public
getFormatter() : mixed
Return values
mixed —indentWithSpaces()
public
indentWithSpaces([mixed $iNumber = 2 ]) : mixed
Parameters
- $iNumber : mixed = 2
Return values
mixed —indentWithTabs()
public
indentWithTabs([mixed $iNumber = 1 ]) : mixed
Parameters
- $iNumber : mixed = 1
Return values
mixed —level()
public
level() : mixed
Return values
mixed —nextLevel()
public
nextLevel() : mixed
Return values
mixed —set()
public
set(mixed $aNames, mixed $mValue) : mixed
Parameters
- $aNames : mixed
- $mValue : mixed
Return values
mixed —setSemicolonAfterLastRule()
public
setSemicolonAfterLastRule(bool $bSemicolonAfterLastRule) :
Set whether semicolons are added after last rule.
Parameters
- $bSemicolonAfterLastRule : bool