CssHelper
    
            
            in package
            
        
    
    
    
Helper functionality for CSS documents.
Table of Contents
Methods
- applyLocationChangeSet() : mixed
- Apply URLs changes to document.
- flatRuleValues() : mixed
- Get all values of a given rule.
- getCompactOutputFormat() : mixed
- Get the compact output format for our parser.
- removeBlanksFromCSSList() : mixed
- Remove blanks from a CSS List.
- removeNonBlockedRulesFromDocument() : mixed
- Remove all non-blocked rules depending on a "removal" list.
- removeValueFromDocument() : mixed
- Remove a given CSS value from a given document and return the removed elements.
- renderableString() : mixed
- Probably `render` a `Renderable`.
- strposValues() : mixed
- `strpos` two given values from our CSS Document.
- walkFlatValues() : mixed
- Walk through all values of a given document with a given callback.
Methods
applyLocationChangeSet()
Apply URLs changes to document.
    public
            static        applyLocationChangeSet(array<string|int, mixed> $setUrlChanges, Document $document) : mixed
    Parameters
- $setUrlChanges : array<string|int, mixed>
- 
                    Result of StyleInlineMatcher::generateLocationChangeSet
- $document : Document
flatRuleValues()
Get all values of a given rule.
    public
            static        flatRuleValues(Rule $rule) : mixed
    Parameters
- $rule : Rule
getCompactOutputFormat()
Get the compact output format for our parser.
    public
            static        getCompactOutputFormat() : mixed
    removeBlanksFromCSSList()
Remove blanks from a CSS List.
    public
            static        removeBlanksFromCSSList(CSSList $oList) : mixed
    Parameters
- $oList : CSSList
Tags
removeNonBlockedRulesFromDocument()
Remove all non-blocked rules depending on a "removal" list.
    public
            static        removeNonBlockedRulesFromDocument(Document $document, array<string|int, mixed> $removedFromOriginalDocument, array<string|int, RuleSet> $removedRuleSetsFromOriginalDocument) : mixed
    Parameters
- $document : Document
- $removedFromOriginalDocument : array<string|int, mixed>
- $removedRuleSetsFromOriginalDocument : array<string|int, RuleSet>
removeValueFromDocument()
Remove a given CSS value from a given document and return the removed elements.
    public
            static        removeValueFromDocument(mixed $removeValue, Document $document) : mixed
    Parameters
- $removeValue : mixed
- $document : Document
renderableString()
Probably `render` a `Renderable`.
    public
            static        renderableString(string|Renderable $renderable) : mixed
    Parameters
- $renderable : string|Renderable
strposValues()
`strpos` two given values from our CSS Document.
    public
            static        strposValues(string|Renderable $haystack, string|Renderable $needle) : mixed
    Parameters
- $haystack : string|Renderable
- 
                    The string to search in 
- $needle : string|Renderable
- 
                    The searched string 
walkFlatValues()
Walk through all values of a given document with a given callback.
    public
            static        walkFlatValues(Document $document, mixed $callback) : mixed
    Parameters
- $document : Document
- $callback : mixed