CSSParser

This class extracts and parse all the CSS content

package

Docxpresso

subpackage

Parser

Methods

Construct

__construct(\Docxpresso\Parser\HTML2ODF $obj) 
access

public

Arguments

Runs over all the "non text" childs of a node to set the "ancestor style" as inherited style

_inheritedProperties(\Docxpresso\Parser\DOMNode $node, string $id) : void
access

public

Arguments

$node

\Docxpresso\Parser\DOMNode

$id

string

Extracts the rules or directives from the CSS code and stores them into an array

_parseCSSRules() : void
access

public

Extracts the CSS associated with a single rule and prepares the CSS for further processing

_parseRule(string $rule) : void
access

public

Arguments

$rule

string

Extracts the rules or directives from the CSS code and stores them into an array

parse() : void
access

public

Properties

base URL

_baseURL : string
var
access

private

Type(s)

string

CSS string

_CSS : string
var
access

private

Type(s)

string

CSS properties

_CSSProps : array
var
access

private

Type(s)

array

document DOM

_dom : \Docxpresso\Parser\DOMDocument
var
access

private

Type(s)

\Docxpresso\Parser\DOMDocument

reference

_ref : array
var
access

private

Type(s)

array

document XPath

_docxpath : \Docxpresso\Parser\DOMXPath
var
access

private

Type(s)

\Docxpresso\Parser\DOMXPath