class StyleList (View source)

Properties

protected Set[] $sets

The list of the style sets.

Methods

static StyleList
loadFromXMLFile(string $file)

Get the list of style sets defined in an XML file.

static StyleList
loadFromXMLElement(SimpleXMLElement $sx)

Get the list of style sets defined in a SimpleXML element.

Set
addSet(string $name)

Add a new empty style set.

Set[]
getSets()

Get the list of the style sets.

Details

static StyleList loadFromXMLFile(string $file)

Get the list of style sets defined in an XML file.

Parameters

string $file

The full path of the XML file

Return Value

StyleList

static StyleList loadFromXMLElement(SimpleXMLElement $sx)

Get the list of style sets defined in a SimpleXML element.

Parameters

SimpleXMLElement $sx

Return Value

StyleList

Set addSet(string $name)

Add a new empty style set.

Parameters

string $name

the name of the style set

Return Value

Set

Set[] getSets()

Get the list of the style sets.

Return Value

Set[]