This class is a widget for constructing and rendering css. It exports API's for adding classes, ids and their attributes.
It can render as either a stand alone foo.css type of file, with the appropriate httpd header, or as part of a <style> tag's content that lives as part of an html document.
This class lets you create classes in the format
name extends_list { property: value; }
ie. #foo div, span { font-family: arial, helvetica; font-size: 10pt; }
Located in Program_Root/widgets/CSSBuilder.inc (line 41)
Class | Description |
---|---|
ActiveTabCSS | The CSSBuilder object for the ActiveTab widget |
FooterNavCSS | This class defines the css used by the FooterNav Object. |
ImageThumbnailWidgetCSS | This class defines the css used by the FooterNav Object. |
InfoTableCSS | This class defines the css used by the FooterNav Object. |
NavTableCSS | This class defines the css used by the FooterNav Object. |
TextCSSNavCSS | This class defines the css used by the FooterNav Object. |
RoundTitleTableCSS | This class defines the css used by the RoundTitleTable Object. |
TextNavCSS | This class defines the css used by the TextNav Object. |
VerticalCSSNavTableCSS | This class defines the css used by the VerticalCSSNavTable Object. |
DefaultGUIDataListCSS | This class defines the css used by the FooterNav Object. |
The CSSBuilder constructor
- output the http header content type mime type or not.
This function adds a new class entry
- class/id name
- the list of extends ie #foo div, a { } where "div, a" are the extends
- the attributes
The render method for compatibility with the rest of the phphtmllib api
- the indentation level for the container.
- the output debug flag to maintain compatibility w/ the API.
This is used to set/update the header flag.
This function is a macro for walking the entire
list of classes, looking for particular property in each class. It then tries to match the current value of that property and then replaces the value with the new value.
NOTE: this is a way of templating themes. you create the original css w/ a value of something like _DARK_COLOR_ and use this function to replace all occurrences with #dbdbdb
- the property that the search lives in
- the original value to find
- the new value
This function updates a css property value for a specific class/id
- the class/id name
- the list of extends ie #foo div, a { } where "div, a" are the extends
- the array of array(property => value ) pairs.
This function updates a css property value for a specific class/id
- the class/id name
- the list of extends ie #foo div, a { } where "div, a" are the extends
- the property to adjust
- the value for the property
Call the child class' setup function
to build the actual css classes and their attributes
This function is used to construct the css name declaration string.
ie #foo div,span {
the name-extends string
This function is used to construct the property: value strings for the class
- the properties
- the indent string.
This function does the main work for update_all_values
Documention generated on Thu, 31 Jul 2003 18:32:20 -0700 by phpDocumentor 1.2.0