Documentation

CssHelper
in package

Helper functionality for CSS documents.

Table of Contents

Methods

applyLocationChangeSet()  : mixed
Apply URLs changes to document.
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.

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

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
see
https://git.io/JY5er

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 $value, Document $document) : mixed
Parameters
$value : 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


        
On this page

Search results