The master stylesheet class
The Stylesheet class is responsible for parsing stylesheets and style tags/attributes. It also acts as a registry of the individual Style objects generated by the current set of loaded CSS files and style elements.
Located in /include/stylesheet.cls.php (line 59)
The class constructor.
The base protocol, host & path are initialized to those of the current script.
add a new Style object to the stylesheet
add_style() adds a new Style object to the current stylesheet, or merges a new Style with an existing one.
applies all current styles to a particular document tree
apply_styles() applies all currently loaded styles to the provided Frame_Tree. Aside from parsing CSS, this is the main purpose of this class.
create a new Style object associated with this stylesheet
load and parse a CSS string
load and parse a CSS file
lookup a specifc Style object
lookup() returns the Style specified by $key, or null if the Style is not found.
dumps the entire stylesheet as a string
Generates a string of each selector and associated style in the Stylesheet. Useful for debugging.
Documentation generated on Fri, 04 Mar 2005 13:31:20 -0700 by phpDocumentor 1.3.0RC3