| 1 |
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Frameset//EN''http://www.w3.org/TR/REC-html40/frameset.dtd'> |
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN' 'http://www.w3.org/TR/REC-html40/loose.dtd'> |
| 2 |
<!--NewPage--> |
<!--NewPage--> |
| 3 |
<HTML> |
<HTML> |
| 4 |
<HEAD> |
<HEAD> |
| 5 |
<!-- Generated by PhpDoc date: 'Mon, 25 Nov 2002 09:21:29 -0800' --> |
<!-- Generated by PhpDoc date: 'Thu, 20 Feb 2003 16:22:33 -0800' --> |
| 6 |
<TITLE>Docs For Class CSSBuilder</TITLE> |
<TITLE>Docs For Class CSSBuilder</TITLE> |
| 7 |
<LINK REL ='stylesheet' TYPE='text/css' HREF='stylesheet.css' TITLE='Style'> |
<LINK REL ='stylesheet' TYPE='text/css' HREF='../media/stylesheet.css' TITLE='Style'> |
| 8 |
</HEAD> |
</HEAD> |
| 9 |
<BODY style="background-color: #eeeeee; font-family: arial; font-size: .9em;"> |
<BODY style="background-color: #eeeeee; font-family: arial; font-size: .9em;"> |
|
|
|
|
|
|
| 10 |
<!-- Links --> |
<!-- Links --> |
| 11 |
<a NAME="top"></A> |
<a NAME="top"></A> |
| 12 |
<table WIDTH="100%" class="links"> |
<table WIDTH="100%" class="links"> |
| 16 |
<A HREF="#children_summary" class="links" title="Classes extended from CSSBuilder">Child Classes</A> |
<A HREF="#children_summary" class="links" title="Classes extended from CSSBuilder">Child Classes</A> |
| 17 |
<A HREF="#var_summary" class="links" title="Class Variable Summary">Variables</A> |
<A HREF="#var_summary" class="links" title="Class Variable Summary">Variables</A> |
| 18 |
<A HREF="#var_inherited_summary" class="links" title="Inherited Class Variable Summary">Inherited Variables</A> |
<A HREF="#var_inherited_summary" class="links" title="Inherited Class Variable Summary">Inherited Variables</A> |
| 19 |
<A HREF="#functions_inherited" class="links" title="Inherited Method Summary">Inerited Methods</A> |
<A HREF="#functions_inherited" class="links" title="Inherited Method Summary">Inherited Methods</A> |
| 20 |
<A HREF="#functions_summary" class="links" title="Method Summary">Methods</A> |
<A HREF="#method_summary" class="links" title="Method Summary">Methods</A> |
| 21 |
<A HREF="#variable_detail" class="links" title="Variable Detail">Variable Detail</A> |
<A HREF="#variable_detail" class="links" title="Variable Detail">Variable Detail</A> |
| 22 |
<A HREF="#function_detail" class="links" title="Method Detail">Method Detail</A> |
<A HREF="#method_detail" class="links" title="Method Detail">Method Detail</A> |
| 23 |
</TD> |
</TD> |
| 24 |
</TR> |
</TR> |
| 25 |
</TABLE> |
</TABLE> |
| 26 |
<BR> |
<BR> |
|
|
|
| 27 |
<!-- Start of Class Data --> |
<!-- Start of Class Data --> |
| 28 |
<H2> |
<H2> |
| 29 |
Class CSSBuilder |
Class CSSBuilder |
| 30 |
</H2> |
</H2> (line <span class="linenumber">41</span>) |
|
|
|
| 31 |
<pre> |
<pre> |
|
CSSBuilder |
|
| 32 |
</pre> |
</pre> |
| 33 |
|
<SPAN class="type">Classes extended from CSSBuilder:</SPAN> |
| 34 |
<A NAME="children_summary"</A> |
<dl> |
| 35 |
<H3> |
<dt><a href="../phpHtmlLib/FooterNavCSS.html">FooterNavCSS</a></dt> |
| 36 |
Classes extended from CSSBuilder: <A HREF="#top" CLASS="links">^TOP</A> |
<dd>This class defines the css used by the FooterNav Object.</dd> |
| 37 |
</H3> |
</dl> |
| 38 |
<a href="../phpHtmlLib/FooterNavCSS.html">FooterNavCSS</a>, <a href="../phpHtmlLib/ActiveTabCSS.html">ActiveTabCSS</a>, <a href="../phpHtmlLib/InfoTableCSS.html">InfoTableCSS</a>, <a href="../phpHtmlLib/NavTableCSS.html">NavTableCSS</a>, <a href="../phpHtmlLib/TextNavCSS.html">TextNavCSS</a>, <a href="../phpHtmlLib/TextCSSNavCSS.html">TextCSSNavCSS</a>, <a href="../phpHtmlLib/VerticalCSSNavTableCSS.html">VerticalCSSNavTableCSS</a>, <a href="../phpHtmlLib/ImageThumbnailWidgetCSS.html">ImageThumbnailWidgetCSS</a>, <a href="../phpHtmlLib/DefaultGUIDataListCSS.html">DefaultGUIDataListCSS</a> |
<dl> |
| 39 |
|
<dt><a href="../phpHtmlLib/ActiveTabCSS.html">ActiveTabCSS</a></dt> |
| 40 |
|
<dd>The CSSBuilder object for the ActiveTab widget</dd> |
| 41 |
|
</dl> |
| 42 |
|
<dl> |
| 43 |
|
<dt><a href="../phpHtmlLib/InfoTableCSS.html">InfoTableCSS</a></dt> |
| 44 |
|
<dd>This class defines the css used by the FooterNav Object.</dd> |
| 45 |
|
</dl> |
| 46 |
|
<dl> |
| 47 |
|
<dt><a href="../phpHtmlLib/NavTableCSS.html">NavTableCSS</a></dt> |
| 48 |
|
<dd>This class defines the css used by the FooterNav Object.</dd> |
| 49 |
|
</dl> |
| 50 |
|
<dl> |
| 51 |
|
<dt><a href="../phpHtmlLib/TextNavCSS.html">TextNavCSS</a></dt> |
| 52 |
|
<dd>This class defines the css used by the TextNav Object.</dd> |
| 53 |
|
</dl> |
| 54 |
|
<dl> |
| 55 |
|
<dt><a href="../phpHtmlLib/TextCSSNavCSS.html">TextCSSNavCSS</a></dt> |
| 56 |
|
<dd>This class defines the css used by the FooterNav Object.</dd> |
| 57 |
|
</dl> |
| 58 |
|
<dl> |
| 59 |
|
<dt><a href="../phpHtmlLib/ImageThumbnailWidgetCSS.html">ImageThumbnailWidgetCSS</a></dt> |
| 60 |
|
<dd>This class defines the css used by the FooterNav Object.</dd> |
| 61 |
|
</dl> |
| 62 |
|
<dl> |
| 63 |
|
<dt><a href="../phpHtmlLib/RoundTitleTableCSS.html">RoundTitleTableCSS</a></dt> |
| 64 |
|
<dd>This class defines the css used by the RoundTitleTable Object.</dd> |
| 65 |
|
</dl> |
| 66 |
|
<dl> |
| 67 |
|
<dt><a href="../phpHtmlLib/DefaultGUIDataListCSS.html">DefaultGUIDataListCSS</a></dt> |
| 68 |
|
<dd>This class defines the css used by the FooterNav Object.</dd> |
| 69 |
|
</dl> |
| 70 |
|
<dl> |
| 71 |
|
<dt><a href="../phpHtmlLib/VerticalCSSNavTableCSS.html">VerticalCSSNavTableCSS</a></dt> |
| 72 |
|
<dd>This class defines the css used by the VerticalCSSNavTable Object.</dd> |
| 73 |
|
</dl> |
| 74 |
|
</p> |
| 75 |
<p> |
<p> |
| 76 |
<b><i>Located in File: Program_Root/widgets/CSSBuilder.inc</i></b><br> |
<b><i>Located in File: Program_Root/widgets/CSSBuilder.inc</i></b><br> |
| 77 |
</p> |
</p> |
| 78 |
<hr> |
<hr> |
| 79 |
<!-- ========== Info from phpDoc block ========= --> |
This class is a widget for constructing and rendering css. It exports API's for adding classes, ids and their attributes. |
| 80 |
This class is a widget for constructing and |
<br /> |
| 81 |
rendering css. |
<p>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.</p><p>This class lets you create classes in the format</p><p>name extends_list { property: value; }</p><p>ie. #foo div, span { font-family: arial, helvetica; font-size: 10pt; }</p> |
|
<BR> |
|
|
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; |
|
|
} |
|
|
|
|
| 82 |
<UL> |
<UL> |
| 83 |
|
<LI><b>author</b> - <CODE>Walter A. Boring IV <<a href="mailto:waboring@buildabetterweb.com">mailto:waboring@buildabetterweb.com</a>></CODE></LI> |
| 84 |
<LI><b>Package</b> - <CODE>phpHtmlLib</CODE></LI> |
</UL> |
|
|
|
|
<LI><b>Author</b> - <CODE>Walter A. Boring IV <<a href="mailto:waboring@buildabetterweb.com">waboring@buildabetterweb.com</a>></CODE></LI> |
|
|
|
|
|
</UL> |
|
|
|
|
| 85 |
<hr> |
<hr> |
| 86 |
<!-- =========== VAR SUMMARY =========== --> |
<!-- =========== VAR SUMMARY =========== --> |
| 87 |
<A NAME='var_summary'><!-- --></A> |
<A NAME='var_summary'><!-- --></A> |
| 93 |
</TD> |
</TD> |
| 94 |
</TR> |
</TR> |
| 95 |
|
|
| 96 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 97 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 98 |
<TD> |
<TD> |
| 99 |
<CODE><B><A HREF='CSSBuilder.html#$indent_flag'>$indent_flag</A></B></CODE> |
<CODE><B><A HREF="../phpHtmlLib/CSSBuilder.html#var$indent_flag">$indent_flag</A></B></CODE> |
| 100 |
<BR> |
<BR> |
| 101 |
<blockquote> Flag for pretty (indented) output </blockquote> |
<blockquote> Flag for pretty (indented) output </blockquote> |
| 102 |
<blockquote> Default Value: <CODE>->TRUE<-</CODE> </blockquote> |
<blockquote> Default Value: <CODE>-> TRUE<-</CODE> </blockquote> |
| 103 |
</TD> |
</TD> |
| 104 |
</TR> |
</TR> |
| 105 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 106 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 107 |
<TD> |
<TD> |
| 108 |
<CODE><B><A HREF='CSSBuilder.html#$_entries'>$_entries</A></B></CODE> |
<CODE><B><A HREF="../phpHtmlLib/CSSBuilder.html#var$_entries">$_entries</A></B></CODE> |
| 109 |
<BR> |
<BR> |
| 110 |
<blockquote> This holds the entries for the css </blockquote> |
<blockquote> This holds the entries for the css </blockquote> |
| 111 |
<blockquote> Default Value: <CODE>->array()<-</CODE> </blockquote> |
<blockquote> Default Value: <CODE>->array()<-</CODE> </blockquote> |
| 112 |
</TD> |
</TD> |
| 113 |
</TR> |
</TR> |
| 114 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 115 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 116 |
<TD> |
<TD> |
| 117 |
<CODE><B><A HREF='CSSBuilder.html#$_header_flag'>$_header_flag</A></B></CODE> |
<CODE><B><A HREF="../phpHtmlLib/CSSBuilder.html#var$_header_flag">$_header_flag</A></B></CODE> |
| 118 |
<BR> |
<BR> |
| 119 |
<blockquote> Flag to let us know if we should </blockquote> |
<blockquote> Flag to let us know if we should output a header content-type value header("Content-Type: text/css"); </blockquote> |
| 120 |
<blockquote> Default Value: <CODE>->FALSE<-</CODE> </blockquote> |
<blockquote> Default Value: <CODE>-> FALSE<-</CODE> </blockquote> |
| 121 |
</TD> |
</TD> |
| 122 |
</TR> |
</TR> |
| 123 |
|
</TABLE> |
|
</TABLE> |
|
|
|
|
| 124 |
<hr> |
<hr> |
| 125 |
<!-- =========== VAR INHERITED SUMMARY =========== --> |
<!-- =========== VAR INHERITED SUMMARY =========== --> |
| 126 |
<A NAME='var_inherited_summary'><!-- --></A> |
<A NAME='var_inherited_summary'><!-- --></A> |
| 127 |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
| 128 |
<TR CLASS='TableHeadingColor'> |
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
| 129 |
<TD> |
<TD> |
| 130 |
<span CLASS="font12bold">Inherited Class Variable Summary</span> |
<span CLASS="font12bold">Inherited Class Variable Summary</span> |
| 131 |
<A HREF="#top" CLASS="links">^TOP</A> |
<A HREF="#top" CLASS="links">^TOP</A> |
| 132 |
</TD> |
</TD> |
| 133 |
</TR> |
</TR> |
| 134 |
|
|
| 135 |
|
</TABLE> |
|
</TABLE> |
|
|
|
|
|
<hr> |
|
|
<!-- =========== INHERITED METHOD SUMMARY =========== --> |
|
|
<A NAME='functions_inherited'><!-- --></A> |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
|
|
<TR CLASS='TableHeadingColor'> |
|
|
<TD> |
|
|
<span CLASS="font12bold">Inherited Method Summary</span> |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
|
|
</TD> |
|
|
</TR> |
|
|
|
|
|
|
|
|
</TABLE> |
|
| 136 |
|
|
| 137 |
<hr> |
<hr> |
| 138 |
<!-- should have constructor at some point --> |
<!-- =========== METHOD SUMMARY =========== --> |
| 139 |
<!-- =========== Method SUMMARY =========== --> |
<A NAME='method_summary'><!-- --></A> |
|
<A NAME='Method_summary'><!-- --></A> |
|
| 140 |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' Class="border"> |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' Class="border"> |
| 141 |
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
| 142 |
<TD> |
<TD> |
| 145 |
</TD> |
</TD> |
| 146 |
</TR> |
</TR> |
| 147 |
|
|
| 148 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 149 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 150 |
<TD> |
<TD> |
| 151 |
<CODE><B><A HREF='CSSBuilder.html#constructor CSSBuilder'>void constructor CSSBuilder ( [$header_flag = FALSE] )</A></B></CODE> |
<CODE><B><A HREF='../phpHtmlLib/CSSBuilder.html#methodCSSBuilder'>void constructor CSSBuilder ( [$header_flag = FALSE] )</A></B></CODE> |
| 152 |
<BR> |
<BR> |
| 153 |
<blockquote> The CSSBuilder constructor </blockquote> |
<blockquote> The CSSBuilder constructor </blockquote> |
| 154 |
</TD> |
</TD> |
| 155 |
</TR> |
</TR> |
| 156 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 157 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 158 |
<TD> |
<TD> |
| 159 |
<CODE><B><A HREF='CSSBuilder.html#add_entry'>void add_entry ( $name, $extends, $attributes )</A></B></CODE> |
<CODE><B><A HREF='../phpHtmlLib/CSSBuilder.html#methodadd_entry'>void add_entry ( $name, $extends, $attributes )</A></B></CODE> |
| 160 |
<BR> |
<BR> |
| 161 |
<blockquote> This function adds a new class entry </blockquote> |
<blockquote> This function adds a new class entry </blockquote> |
| 162 |
</TD> |
</TD> |
| 163 |
</TR> |
</TR> |
| 164 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 165 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 166 |
<TD> |
<TD> |
| 167 |
<CODE><B><A HREF='CSSBuilder.html#render'>string render ( [$indent_level = 1], [$output_debug = 0] )</A></B></CODE> |
<CODE><B><A HREF='../phpHtmlLib/CSSBuilder.html#methodrender'>string render ( [$indent_level = 1], [$output_debug = 0] )</A></B></CODE> |
| 168 |
<BR> |
<BR> |
| 169 |
<blockquote> The render method for compatibility |
<blockquote> The render method for compatibility with the rest of the phphtmllib api </blockquote> |
|
with the rest of the phphtmllib api </blockquote> |
|
| 170 |
</TD> |
</TD> |
| 171 |
</TR> |
</TR> |
| 172 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 173 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 174 |
<TD> |
<TD> |
| 175 |
<CODE><B><A HREF='CSSBuilder.html#set_header_flag'>void set_header_flag ( $flag )</A></B></CODE> |
<CODE><B><A HREF='../phpHtmlLib/CSSBuilder.html#methodset_header_flag'>void set_header_flag ( $flag )</A></B></CODE> |
| 176 |
<BR> |
<BR> |
| 177 |
<blockquote> This is used to set/update the header |
<blockquote> This is used to set/update the header flag. </blockquote> |
|
flag. </blockquote> |
|
| 178 |
</TD> |
</TD> |
| 179 |
</TR> |
</TR> |
| 180 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 181 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 182 |
<TD> |
<TD> |
| 183 |
<CODE><B><A HREF='CSSBuilder.html#update_all_values'>void update_all_values ( $property, $search, $value )</A></B></CODE> |
<CODE><B><A HREF='../phpHtmlLib/CSSBuilder.html#methodupdate_all_values'>void update_all_values ( $property, $search, $value )</A></B></CODE> |
| 184 |
<BR> |
<BR> |
| 185 |
<blockquote> This function is a macro for walking the entire |
<blockquote> This function is a macro for walking the entire </blockquote> |
|
list of classes, looking for particular property |
|
|
in each class. </blockquote> |
|
| 186 |
</TD> |
</TD> |
| 187 |
</TR> |
</TR> |
| 188 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 189 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 190 |
<TD> |
<TD> |
| 191 |
<CODE><B><A HREF='CSSBuilder.html#update_properties'>void update_properties ( $name, $extends, $properties )</A></B></CODE> |
<CODE><B><A HREF='../phpHtmlLib/CSSBuilder.html#methodupdate_properties'>void update_properties ( $name, $extends, $properties )</A></B></CODE> |
| 192 |
<BR> |
<BR> |
| 193 |
<blockquote> This function updates a css property value |
<blockquote> This function updates a css property value for a specific class/id </blockquote> |
|
for a specific class/id </blockquote> |
|
| 194 |
</TD> |
</TD> |
| 195 |
</TR> |
</TR> |
| 196 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 197 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 198 |
<TD> |
<TD> |
| 199 |
<CODE><B><A HREF='CSSBuilder.html#update_property'>void update_property ( $name, $extends, $property, $value )</A></B></CODE> |
<CODE><B><A HREF='../phpHtmlLib/CSSBuilder.html#methodupdate_property'>void update_property ( $name, $extends, $property, $value )</A></B></CODE> |
| 200 |
<BR> |
<BR> |
| 201 |
<blockquote> This function updates a css property value |
<blockquote> This function updates a css property value for a specific class/id </blockquote> |
|
for a specific class/id </blockquote> |
|
| 202 |
</TD> |
</TD> |
| 203 |
</TR> |
</TR> |
| 204 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 205 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 206 |
<TD> |
<TD> |
| 207 |
<CODE><B><A HREF='CSSBuilder.html#user_setup'>void user_setup ( )</A></B></CODE> |
<CODE><B><A HREF='../phpHtmlLib/CSSBuilder.html#methoduser_setup'>void user_setup ( )</A></B></CODE> |
| 208 |
<BR> |
<BR> |
| 209 |
<blockquote> Call the child class' setup function </blockquote> |
<blockquote> Call the child class' setup function </blockquote> |
| 210 |
</TD> |
</TD> |
| 211 |
</TR> |
</TR> |
| 212 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 213 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 214 |
<TD> |
<TD> |
| 215 |
<CODE><B><A HREF='CSSBuilder.html#_build_name'>the _build_name ( $class )</A></B></CODE> |
<CODE><B><A HREF='../phpHtmlLib/CSSBuilder.html#method_build_name'>the _build_name ( $class )</A></B></CODE> |
| 216 |
<BR> |
<BR> |
| 217 |
<blockquote> This function is used to construct the css name |
<blockquote> This function is used to construct the css name declaration string. </blockquote> |
|
declaration string. </blockquote> |
|
| 218 |
</TD> |
</TD> |
| 219 |
</TR> |
</TR> |
| 220 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 221 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 222 |
<TD> |
<TD> |
| 223 |
<CODE><B><A HREF='CSSBuilder.html#_build_properties'>string _build_properties ( $properties, $indent_str )</A></B></CODE> |
<CODE><B><A HREF='../phpHtmlLib/CSSBuilder.html#method_build_properties'>string _build_properties ( $properties, $indent_str )</A></B></CODE> |
| 224 |
<BR> |
<BR> |
| 225 |
<blockquote> This function is used to construct the |
<blockquote> This function is used to construct the property: value strings for the class </blockquote> |
|
property: value strings for the class </blockquote> |
|
| 226 |
</TD> |
</TD> |
| 227 |
</TR> |
</TR> |
| 228 |
|
<!-- =========== Summary =========== --> |
|
<!-- =========== Summary =========== --> |
|
| 229 |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
<TR BGCOLOR='white' CLASS='TableRowColor'> |
| 230 |
<TD> |
<TD> |
| 231 |
<CODE><B><A HREF='CSSBuilder.html#_replace_value'>void _replace_value ( &$item, $key, $blah )</A></B></CODE> |
<CODE><B><A HREF='../phpHtmlLib/CSSBuilder.html#method_replace_value'>void _replace_value ( &$item, $key, $blah )</A></B></CODE> |
| 232 |
<BR> |
<BR> |
| 233 |
<blockquote> This function does the main work for update_all_values </blockquote> |
<blockquote> This function does the main work for update_all_values </blockquote> |
| 234 |
</TD> |
</TD> |
| 235 |
</TR> |
</TR> |
| 236 |
|
</TABLE> |
| 237 |
</TABLE> |
<!-- =========== INHERITED METHOD SUMMARY =========== --> |
| 238 |
|
<A NAME='functions_inherited'><!-- --></A> |
| 239 |
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
| 240 |
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
| 241 |
|
<TD> |
| 242 |
|
<span CLASS="font12bold">Inherited Method Summary</span> |
| 243 |
|
<A HREF="#top" CLASS="links">^TOP</A> |
| 244 |
|
</TD> |
| 245 |
|
</TR> |
| 246 |
|
|
| 247 |
|
</TABLE> |
| 248 |
<hr> |
<hr> |
| 249 |
<!-- ============ VARIABLE DETAIL =========== --> |
<!-- ============ VARIABLE DETAIL =========== --> |
| 250 |
|
|
| 258 |
</TR> |
</TR> |
| 259 |
</TABLE> |
</TABLE> |
| 260 |
|
|
| 261 |
|
<A NAME='var$indent_flag'><!-- --></A><H3>$indent_flag</H3> (line <span class="linenumber">75</span>)<br /> |
| 262 |
<A NAME='$indent_flag'><!-- --></A><H3>$indent_flag</H3> |
<b>Data type:</b> boolean<br>Flag for pretty (indented) output |
| 263 |
<b>Data type:</b> boolean<br> |
<br /> |
|
<!-- ========== Info from phpDoc block ========= --> |
|
|
Flag for pretty (indented) output |
|
|
<BR> |
|
|
|
|
| 264 |
|
|
| 265 |
<UL> |
<UL> |
| 266 |
|
<LI><b>access</b> - <CODE>public</CODE></LI> |
| 267 |
<LI><b>Access</b> - <CODE>public</CODE></LI> |
</UL> |
|
|
|
|
</UL> |
|
|
|
|
| 268 |
<HR> |
<HR> |
| 269 |
|
<A NAME='var$_entries'><!-- --></A><H3>$_entries</H3> (line <span class="linenumber">49</span>)<br /> |
| 270 |
<A NAME='$_entries'><!-- --></A><H3>$_entries</H3> |
<b>Data type:</b> array<br>This holds the entries for the css |
| 271 |
<b>Data type:</b> array<br> |
<br /> |
|
<!-- ========== Info from phpDoc block ========= --> |
|
|
This holds the entries for the css |
|
|
<BR> |
|
|
|
|
| 272 |
|
|
| 273 |
<UL> |
<UL> |
| 274 |
|
</UL> |
|
</UL> |
|
|
|
|
| 275 |
<HR> |
<HR> |
| 276 |
|
<A NAME='var$_header_flag'><!-- --></A><H3>$_header_flag</H3> (line <span class="linenumber">59</span>)<br /> |
| 277 |
<A NAME='$_header_flag'><!-- --></A><H3>$_header_flag</H3> |
<b>Data type:</b> boolean<br>Flag to let us know if we should output a header content-type value header("Content-Type: text/css"); |
| 278 |
<b>Data type:</b> boolean<br> |
<br /> |
|
<!-- ========== Info from phpDoc block ========= --> |
|
|
Flag to let us know if we should |
|
|
<BR> |
|
|
output a header content-type value |
|
|
header("Content-Type: text/css"); |
|
| 279 |
|
|
| 280 |
<UL> |
<UL> |
| 281 |
|
</UL> |
|
</UL> |
|
|
|
|
| 282 |
<HR> |
<HR> |
|
|
|
|
|
|
| 283 |
<hr> |
<hr> |
| 284 |
<!-- ============ FUNCTION DETAIL =========== --> |
<!-- ============ METHOD DETAIL =========== --> |
| 285 |
|
|
| 286 |
<A NAME='function_detail'></A> |
<A NAME='method_detail'></A> |
| 287 |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
| 288 |
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
| 289 |
<TD> |
<TD> |
| 293 |
</TR> |
</TR> |
| 294 |
</TABLE> |
</TABLE> |
| 295 |
<BR> |
<BR> |
|
|
|
| 296 |
<DIV CLASS="function"> |
<DIV CLASS="function"> |
| 297 |
<A NAME='constructor CSSBuilder'><!-- --></A> |
<A NAME='methodCSSBuilder'><!-- --></A> |
| 298 |
<SPAN CLASS="font12bold">constructor CSSBuilder</SPAN> |
<SPAN CLASS="font12bold">Constructor CSSBuilder</SPAN> (line <span class="linenumber">86</span>) |
| 299 |
<BR> |
<BR> |
| 300 |
<SPAN CLASS="font10bold">Useage : </SPAN> |
<SPAN CLASS="font10bold">Usage : </SPAN> |
| 301 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
| 302 |
<span class="font10bold" style="color: #0000FF">constructor CSSBuilder ( [$header_flag = FALSE] )</SPAN> |
<span class="font10bold" style="color: #0000FF">CSSBuilder( |
| 303 |
|
[boolean |
| 304 |
|
$header_flag = FALSE])</SPAN> |
| 305 |
<BR> |
<BR> |
| 306 |
|
|
| 307 |
<BR> |
<BR> |
| 308 |
<SPAN CLASS="font10bold">Description : </SPAN> |
<SPAN CLASS="font10bold">Description : </SPAN> |
|
<!-- ========== Info from phpDoc block ========= --> |
|
| 309 |
The CSSBuilder constructor |
The CSSBuilder constructor |
| 310 |
<BR> |
<br /> |
| 311 |
|
|
| 312 |
<DL> |
<DL> |
| 313 |
<DT class="font10bold">Function Parameters:</DT> |
<DT class="font10bold">Function Parameters:</DT> |
| 314 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">boolean</SPAN> <span style="color: #0000FF;font-weight:bold">$header_flag</SPAN></SPAN> - output the http header content type mime type or not.</DD> |
| 315 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">boolean</SPAN> <span style="color: #0000FF;font-weight:bold">$header_flag</SPAN></SPAN> - output the http header |
|
| 316 |
content type mime type |
<DT class="font10bold">Function Info:</DT> |
| 317 |
or not.</DD> |
</DL> |
|
|
|
|
|
|
|
<DT class="font10bold">Function Info:</DT> |
|
|
|
|
|
</DL> |
|
|
|
|
| 318 |
</DIV> |
</DIV> |
| 319 |
<BR> |
<BR> |
|
|
|
| 320 |
<DIV CLASS="function"> |
<DIV CLASS="function"> |
| 321 |
<A NAME='add_entry'><!-- --></A> |
<A NAME='methodadd_entry'><!-- --></A> |
| 322 |
<SPAN CLASS="font12bold">add_entry</SPAN> |
<SPAN CLASS="font12bold">add_entry</SPAN> (line <span class="linenumber">189</span>) |
| 323 |
<BR> |
<BR> |
| 324 |
<SPAN CLASS="font10bold">Useage : </SPAN> |
<SPAN CLASS="font10bold">Usage : </SPAN> |
| 325 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
| 326 |
<span class="font10bold" style="color: #0000FF">add_entry ( $name, $extends, $attributes )</SPAN> |
<span class="font10bold" style="color: #0000FF">add_entry( |
| 327 |
|
string |
| 328 |
|
$name, string |
| 329 |
|
$extends, array |
| 330 |
|
$attributes)</SPAN> |
| 331 |
<BR> |
<BR> |
| 332 |
|
|
| 333 |
<BR> |
<BR> |
| 334 |
<SPAN CLASS="font10bold">Description : </SPAN> |
<SPAN CLASS="font10bold">Description : </SPAN> |
|
<!-- ========== Info from phpDoc block ========= --> |
|
| 335 |
This function adds a new class entry |
This function adds a new class entry |
| 336 |
<BR> |
<br /> |
| 337 |
|
|
| 338 |
<DL> |
<DL> |
| 339 |
<DT class="font10bold">Function Parameters:</DT> |
<DT class="font10bold">Function Parameters:</DT> |
| 340 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - class/id name</DD> |
| 341 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - class/id name</DD> |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$extends</SPAN></SPAN> - the list of extends ie #foo div, a { } where "div, a" are the extends</DD> |
| 342 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">array</SPAN> <span style="color: #0000FF;font-weight:bold">$attributes</SPAN></SPAN> - the attributes</DD> |
| 343 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$extends</SPAN></SPAN> - the list of extends |
|
| 344 |
ie #foo div, a { } |
<DT class="font10bold">Function Info:</DT> |
| 345 |
where "div, a" are the extends</DD> |
</DL> |
|
|
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">array</SPAN> <span style="color: #0000FF;font-weight:bold">$attributes</SPAN></SPAN> - the attributes</DD> |
|
|
|
|
|
|
|
|
<DT class="font10bold">Function Info:</DT> |
|
|
|
|
|
</DL> |
|
|
|
|
| 346 |
</DIV> |
</DIV> |
| 347 |
<BR> |
<BR> |
|
|
|
| 348 |
<DIV CLASS="function"> |
<DIV CLASS="function"> |
| 349 |
<A NAME='render'><!-- --></A> |
<A NAME='methodrender'><!-- --></A> |
| 350 |
<SPAN CLASS="font12bold">render</SPAN> |
<SPAN CLASS="font12bold">render</SPAN> (line <span class="linenumber">103</span>) |
| 351 |
<BR> |
<BR> |
| 352 |
<SPAN CLASS="font10bold">Useage : </SPAN> |
<SPAN CLASS="font10bold">Usage : </SPAN> |
| 353 |
<span class="font10bold" style="color: #FF0000">string</SPAN> |
<span class="font10bold" style="color: #FF0000">string</SPAN> |
| 354 |
<span class="font10bold" style="color: #0000FF">render ( [$indent_level = 1], [$output_debug = 0] )</SPAN> |
<span class="font10bold" style="color: #0000FF">render( |
| 355 |
|
[int |
| 356 |
|
$indent_level = 1], int |
| 357 |
|
$output_debug)</SPAN> |
| 358 |
<BR> |
<BR> |
| 359 |
|
|
| 360 |
<BR> |
<BR> |
| 361 |
<SPAN CLASS="font10bold">Description : </SPAN> |
<SPAN CLASS="font10bold">Description : </SPAN> |
| 362 |
<!-- ========== Info from phpDoc block ========= --> |
The render method for compatibility with the rest of the phphtmllib api |
| 363 |
The render method for compatibility |
<br /> |
|
with the rest of the phphtmllib api |
|
|
<BR> |
|
| 364 |
|
|
| 365 |
<DL> |
<DL> |
| 366 |
<DT class="font10bold">Function Parameters:</DT> |
<DT class="font10bold">Function Parameters:</DT> |
| 367 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$indent_level</SPAN></SPAN> - the indentation level for the container.</DD> |
| 368 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$indent_level</SPAN></SPAN> - the indentation level for |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$output_debug</SPAN></SPAN> - the output debug flag to maintain compatibility w/ the API.</DD> |
| 369 |
the container.</DD> |
|
| 370 |
|
<DT class="font10bold">Function Info:</DT> |
| 371 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">int</SPAN> <span style="color: #0000FF;font-weight:bold">$output_debug</SPAN></SPAN> - the output debug flag to |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - the raw html output.</DD> |
| 372 |
maintain compatibility w/ the API.</DD> |
</DL> |
|
|
|
|
|
|
|
<DT class="font10bold">Function Info:</DT> |
|
|
|
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>Return</b> - the raw html output.</DD> |
|
|
|
|
|
</DL> |
|
|
|
|
| 373 |
</DIV> |
</DIV> |
| 374 |
<BR> |
<BR> |
|
|
|
| 375 |
<DIV CLASS="function"> |
<DIV CLASS="function"> |
| 376 |
<A NAME='set_header_flag'><!-- --></A> |
<A NAME='methodset_header_flag'><!-- --></A> |
| 377 |
<SPAN CLASS="font12bold">set_header_flag</SPAN> |
<SPAN CLASS="font12bold">set_header_flag</SPAN> (line <span class="linenumber">127</span>) |
| 378 |
<BR> |
<BR> |
| 379 |
<SPAN CLASS="font10bold">Useage : </SPAN> |
<SPAN CLASS="font10bold">Usage : </SPAN> |
| 380 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
| 381 |
<span class="font10bold" style="color: #0000FF">set_header_flag ( $flag )</SPAN> |
<span class="font10bold" style="color: #0000FF">set_header_flag( |
| 382 |
|
boolean |
| 383 |
|
$flag)</SPAN> |
| 384 |
<BR> |
<BR> |
| 385 |
|
|
| 386 |
<BR> |
<BR> |
| 387 |
<SPAN CLASS="font10bold">Description : </SPAN> |
<SPAN CLASS="font10bold">Description : </SPAN> |
| 388 |
<!-- ========== Info from phpDoc block ========= --> |
This is used to set/update the header flag. |
| 389 |
This is used to set/update the header |
<br /> |
|
flag. |
|
|
<BR> |
|
| 390 |
|
|
| 391 |
<DL> |
<DL> |
| 392 |
<DT class="font10bold">Function Parameters:</DT> |
<DT class="font10bold">Function Parameters:</DT> |
| 393 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">boolean</SPAN> <span style="color: #0000FF;font-weight:bold">$flag</SPAN></SPAN> </DD> |
| 394 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">boolean</SPAN> <span style="color: #0000FF;font-weight:bold">$flag</SPAN></SPAN> </DD> |
|
| 395 |
|
<DT class="font10bold">Function Info:</DT> |
| 396 |
|
</DL> |
|
<DT class="font10bold">Function Info:</DT> |
|
|
|
|
|
</DL> |
|
|
|
|
| 397 |
</DIV> |
</DIV> |
| 398 |
<BR> |
<BR> |
|
|
|
| 399 |
<DIV CLASS="function"> |
<DIV CLASS="function"> |
| 400 |
<A NAME='update_all_values'><!-- --></A> |
<A NAME='methodupdate_all_values'><!-- --></A> |
| 401 |
<SPAN CLASS="font12bold">update_all_values</SPAN> |
<SPAN CLASS="font12bold">update_all_values</SPAN> (line <span class="linenumber">244</span>) |
| 402 |
<BR> |
<BR> |
| 403 |
<SPAN CLASS="font10bold">Useage : </SPAN> |
<SPAN CLASS="font10bold">Usage : </SPAN> |
| 404 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
| 405 |
<span class="font10bold" style="color: #0000FF">update_all_values ( $property, $search, $value )</SPAN> |
<span class="font10bold" style="color: #0000FF">update_all_values( |
| 406 |
|
string |
| 407 |
|
$property, string |
| 408 |
|
$search, string |
| 409 |
|
$value)</SPAN> |
| 410 |
<BR> |
<BR> |
| 411 |
|
|
| 412 |
<BR> |
<BR> |
| 413 |
<SPAN CLASS="font10bold">Description : </SPAN> |
<SPAN CLASS="font10bold">Description : </SPAN> |
| 414 |
<!-- ========== Info from phpDoc block ========= --> |
This function is a macro for walking the entire |
| 415 |
This function is a macro for walking the entire |
<br /> |
| 416 |
list of classes, looking for particular property |
<p>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.</p><p>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</p> |
|
in each class. |
|
|
<BR> |
|
|
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 |
|
| 417 |
<DL> |
<DL> |
| 418 |
<DT class="font10bold">Function Parameters:</DT> |
<DT class="font10bold">Function Parameters:</DT> |
| 419 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$property</SPAN></SPAN> - the property that the search lives in</DD> |
| 420 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$property</SPAN></SPAN> - the property that the search lives in</DD> |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$search</SPAN></SPAN> - the original value to find</DD> |
| 421 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the new value</DD> |
| 422 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$search</SPAN></SPAN> - the original value to find</DD> |
|
| 423 |
|
<DT class="font10bold">Function Info:</DT> |
| 424 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the new value</DD> |
</DL> |
|
|
|
|
|
|
|
<DT class="font10bold">Function Info:</DT> |
|
|
|
|
|
</DL> |
|
|
|
|
| 425 |
</DIV> |
</DIV> |
| 426 |
<BR> |
<BR> |
|
|
|
| 427 |
<DIV CLASS="function"> |
<DIV CLASS="function"> |
| 428 |
<A NAME='update_properties'><!-- --></A> |
<A NAME='methodupdate_properties'><!-- --></A> |
| 429 |
<SPAN CLASS="font12bold">update_properties</SPAN> |
<SPAN CLASS="font12bold">update_properties</SPAN> (line <span class="linenumber">219</span>) |
| 430 |
<BR> |
<BR> |
| 431 |
<SPAN CLASS="font10bold">Useage : </SPAN> |
<SPAN CLASS="font10bold">Usage : </SPAN> |
| 432 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
| 433 |
<span class="font10bold" style="color: #0000FF">update_properties ( $name, $extends, $properties )</SPAN> |
<span class="font10bold" style="color: #0000FF">update_properties( |
| 434 |
|
string |
| 435 |
|
$name, string |
| 436 |
|
$extends, array |
| 437 |
|
$properties)</SPAN> |
| 438 |
<BR> |
<BR> |
| 439 |
|
|
| 440 |
<BR> |
<BR> |
| 441 |
<SPAN CLASS="font10bold">Description : </SPAN> |
<SPAN CLASS="font10bold">Description : </SPAN> |
| 442 |
<!-- ========== Info from phpDoc block ========= --> |
This function updates a css property value for a specific class/id |
| 443 |
This function updates a css property value |
<br /> |
|
for a specific class/id |
|
|
<BR> |
|
| 444 |
|
|
| 445 |
<DL> |
<DL> |
| 446 |
<DT class="font10bold">Function Parameters:</DT> |
<DT class="font10bold">Function Parameters:</DT> |
| 447 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the class/id name</DD> |
| 448 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the class/id name</DD> |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$extends</SPAN></SPAN> - the list of extends ie #foo div, a { } where "div, a" are the extends</DD> |
| 449 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">array</SPAN> <span style="color: #0000FF;font-weight:bold">$properties</SPAN></SPAN> - the array of array(property => value ) pairs.</DD> |
| 450 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$extends</SPAN></SPAN> - the list of extends |
|
| 451 |
ie #foo div, a { } |
<DT class="font10bold">Function Info:</DT> |
| 452 |
where "div, a" are the extends</DD> |
</DL> |
|
|
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">array</SPAN> <span style="color: #0000FF;font-weight:bold">$properties</SPAN></SPAN> - the array of array(property => value ) pairs.</DD> |
|
|
|
|
|
|
|
|
<DT class="font10bold">Function Info:</DT> |
|
|
|
|
|
</DL> |
|
|
|
|
| 453 |
</DIV> |
</DIV> |
| 454 |
<BR> |
<BR> |
|
|
|
| 455 |
<DIV CLASS="function"> |
<DIV CLASS="function"> |
| 456 |
<A NAME='update_property'><!-- --></A> |
<A NAME='methodupdate_property'><!-- --></A> |
| 457 |
<SPAN CLASS="font12bold">update_property</SPAN> |
<SPAN CLASS="font12bold">update_property</SPAN> (line <span class="linenumber">205</span>) |
| 458 |
<BR> |
<BR> |
| 459 |
<SPAN CLASS="font10bold">Useage : </SPAN> |
<SPAN CLASS="font10bold">Usage : </SPAN> |
| 460 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
| 461 |
<span class="font10bold" style="color: #0000FF">update_property ( $name, $extends, $property, $value )</SPAN> |
<span class="font10bold" style="color: #0000FF">update_property( |
| 462 |
|
string |
| 463 |
|
$name, string |
| 464 |
|
$extends, string |
| 465 |
|
$property, string |
| 466 |
|
$value)</SPAN> |
| 467 |
<BR> |
<BR> |
| 468 |
|
|
| 469 |
<BR> |
<BR> |
| 470 |
<SPAN CLASS="font10bold">Description : </SPAN> |
<SPAN CLASS="font10bold">Description : </SPAN> |
| 471 |
<!-- ========== Info from phpDoc block ========= --> |
This function updates a css property value for a specific class/id |
| 472 |
This function updates a css property value |
<br /> |
|
for a specific class/id |
|
|
<BR> |
|
| 473 |
|
|
| 474 |
<DL> |
<DL> |
| 475 |
<DT class="font10bold">Function Parameters:</DT> |
<DT class="font10bold">Function Parameters:</DT> |
| 476 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the class/id name</DD> |
| 477 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$name</SPAN></SPAN> - the class/id name</DD> |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$extends</SPAN></SPAN> - the list of extends ie #foo div, a { } where "div, a" are the extends</DD> |
| 478 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$property</SPAN></SPAN> - the property to adjust</DD> |
| 479 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$extends</SPAN></SPAN> - the list of extends |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the value for the property</DD> |
| 480 |
ie #foo div, a { } |
|
| 481 |
where "div, a" are the extends</DD> |
<DT class="font10bold">Function Info:</DT> |
| 482 |
|
</DL> |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$property</SPAN></SPAN> - the property to adjust</DD> |
|
|
|
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$value</SPAN></SPAN> - the value for the property</DD> |
|
|
|
|
|
|
|
|
<DT class="font10bold">Function Info:</DT> |
|
|
|
|
|
</DL> |
|
|
|
|
| 483 |
</DIV> |
</DIV> |
| 484 |
<BR> |
<BR> |
|
|
|
| 485 |
<DIV CLASS="function"> |
<DIV CLASS="function"> |
| 486 |
<A NAME='user_setup'><!-- --></A> |
<A NAME='methoduser_setup'><!-- --></A> |
| 487 |
<SPAN CLASS="font12bold">user_setup</SPAN> |
<SPAN CLASS="font12bold">user_setup</SPAN> (line <span class="linenumber">136</span>) |
| 488 |
<BR> |
<BR> |
| 489 |
<SPAN CLASS="font10bold">Useage : </SPAN> |
<SPAN CLASS="font10bold">Usage : </SPAN> |
| 490 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
| 491 |
<span class="font10bold" style="color: #0000FF">user_setup ( )</SPAN> |
<span class="font10bold" style="color: #0000FF">user_setup( |
| 492 |
|
)</SPAN> |
| 493 |
<BR> |
<BR> |
| 494 |
Overridden in child class(es) as: <a href="../phpHtmlLib/FooterNavCSS.html#user_setup">FooterNavCSS::user_setup()</a>, <a href="../phpHtmlLib/ActiveTabCSS.html#user_setup">ActiveTabCSS::user_setup()</a>, <a href="../phpHtmlLib/InfoTableCSS.html#user_setup">InfoTableCSS::user_setup()</a>, <a href="../phpHtmlLib/NavTableCSS.html#user_setup">NavTableCSS::user_setup()</a>, <a href="../phpHtmlLib/TextNavCSS.html#user_setup">TextNavCSS::user_setup()</a>, <a href="../phpHtmlLib/TextCSSNavCSS.html#user_setup">TextCSSNavCSS::user_setup()</a>, <a href="../phpHtmlLib/VerticalCSSNavTableCSS.html#user_setup">VerticalCSSNavTableCSS::user_setup()</a>, <a href="../phpHtmlLib/ImageThumbnailWidgetCSS.html#user_setup">ImageThumbnailWidgetCSS::user_setup()</a>, <a href="../phpHtmlLib/DefaultGUIDataListCSS.html#user_setup">DefaultGUIDataListCSS::user_setup()</a><br> |
<p>Overridden in child classes as:<br /> |
| 495 |
|
<dl> |
| 496 |
|
<dt><a href="../phpHtmlLib/FooterNavCSS.html#methoduser_setup">FooterNavCSS::user_setup()</a></dt> |
| 497 |
|
<dd></dd> |
| 498 |
|
</dl> |
| 499 |
|
<dl> |
| 500 |
|
<dt><a href="../phpHtmlLib/ActiveTabCSS.html#methoduser_setup">ActiveTabCSS::user_setup()</a></dt> |
| 501 |
|
<dd></dd> |
| 502 |
|
</dl> |
| 503 |
|
<dl> |
| 504 |
|
<dt><a href="../phpHtmlLib/InfoTableCSS.html#methoduser_setup">InfoTableCSS::user_setup()</a></dt> |
| 505 |
|
<dd></dd> |
| 506 |
|
</dl> |
| 507 |
|
<dl> |
| 508 |
|
<dt><a href="../phpHtmlLib/NavTableCSS.html#methoduser_setup">NavTableCSS::user_setup()</a></dt> |
| 509 |
|
<dd></dd> |
| 510 |
|
</dl> |
| 511 |
|
<dl> |
| 512 |
|
<dt><a href="../phpHtmlLib/TextNavCSS.html#methoduser_setup">TextNavCSS::user_setup()</a></dt> |
| 513 |
|
<dd></dd> |
| 514 |
|
</dl> |
| 515 |
|
<dl> |
| 516 |
|
<dt><a href="../phpHtmlLib/TextCSSNavCSS.html#methoduser_setup">TextCSSNavCSS::user_setup()</a></dt> |
| 517 |
|
<dd></dd> |
| 518 |
|
</dl> |
| 519 |
|
<dl> |
| 520 |
|
<dt><a href="../phpHtmlLib/ImageThumbnailWidgetCSS.html#methoduser_setup">ImageThumbnailWidgetCSS::user_setup()</a></dt> |
| 521 |
|
<dd></dd> |
| 522 |
|
</dl> |
| 523 |
|
<dl> |
| 524 |
|
<dt><a href="../phpHtmlLib/RoundTitleTableCSS.html#methoduser_setup">RoundTitleTableCSS::user_setup()</a></dt> |
| 525 |
|
<dd></dd> |
| 526 |
|
</dl> |
| 527 |
|
<dl> |
| 528 |
|
<dt><a href="../phpHtmlLib/DefaultGUIDataListCSS.html#methoduser_setup">DefaultGUIDataListCSS::user_setup()</a></dt> |
| 529 |
|
<dd></dd> |
| 530 |
|
</dl> |
| 531 |
|
<dl> |
| 532 |
|
<dt><a href="../phpHtmlLib/VerticalCSSNavTableCSS.html#methoduser_setup">VerticalCSSNavTableCSS::user_setup()</a></dt> |
| 533 |
|
<dd></dd> |
| 534 |
|
</dl> |
| 535 |
|
</p> |
| 536 |
|
|
| 537 |
<BR> |
<BR> |
| 538 |
<SPAN CLASS="font10bold">Description : </SPAN> |
<SPAN CLASS="font10bold">Description : </SPAN> |
|
<!-- ========== Info from phpDoc block ========= --> |
|
| 539 |
Call the child class' setup function |
Call the child class' setup function |
| 540 |
<BR> |
<br /> |
| 541 |
to build the actual css classes and their |
<p>to build the actual css classes and their attributes</p> |
|
attributes |
|
| 542 |
<DL> |
<DL> |
|
<DT class="font10bold">Function Parameters:</DT> |
|
|
|
|
|
|
|
|
<DT class="font10bold">Function Info:</DT> |
|
|
|
|
|
</DL> |
|
| 543 |
|
|
| 544 |
|
<DT class="font10bold">Function Info:</DT> |
| 545 |
|
</DL> |
| 546 |
</DIV> |
</DIV> |
| 547 |
<BR> |
<BR> |
|
|
|
| 548 |
<DIV CLASS="function"> |
<DIV CLASS="function"> |
| 549 |
<A NAME='_build_name'><!-- --></A> |
<A NAME='method_build_name'><!-- --></A> |
| 550 |
<SPAN CLASS="font12bold">_build_name</SPAN> |
<SPAN CLASS="font12bold">_build_name</SPAN> (line <span class="linenumber">154</span>) |
| 551 |
<BR> |
<BR> |
| 552 |
<SPAN CLASS="font10bold">Useage : </SPAN> |
<SPAN CLASS="font10bold">Usage : </SPAN> |
| 553 |
<span class="font10bold" style="color: #FF0000">the</SPAN> |
<span class="font10bold" style="color: #FF0000">the</SPAN> |
| 554 |
<span class="font10bold" style="color: #0000FF">_build_name ( $class )</SPAN> |
<span class="font10bold" style="color: #0000FF">_build_name( |
| 555 |
|
string |
| 556 |
|
$class)</SPAN> |
| 557 |
<BR> |
<BR> |
| 558 |
|
|
| 559 |
<BR> |
<BR> |
| 560 |
<SPAN CLASS="font10bold">Description : </SPAN> |
<SPAN CLASS="font10bold">Description : </SPAN> |
| 561 |
<!-- ========== Info from phpDoc block ========= --> |
This function is used to construct the css name declaration string. |
| 562 |
This function is used to construct the css name |
<br /> |
| 563 |
declaration string. |
<p>ie #foo div,span {</p> |
|
<BR> |
|
|
ie #foo div,span { |
|
| 564 |
<DL> |
<DL> |
| 565 |
<DT class="font10bold">Function Parameters:</DT> |
<DT class="font10bold">Function Parameters:</DT> |
| 566 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$class</SPAN></SPAN> the name-extends string</DD> |
| 567 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">string</SPAN> <span style="color: #0000FF;font-weight:bold">$class</SPAN></SPAN> the name-extends string</DD> |
|
| 568 |
|
<DT class="font10bold">Function Info:</DT> |
| 569 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>return</b> - css name declaration</DD> |
| 570 |
<DT class="font10bold">Function Info:</DT> |
</DL> |
|
|
|
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><b>Return</b> - css name declaration</DD> |
|
|
|
|
|
</DL> |
|
|
|
|
| 571 |
</DIV> |
</DIV> |
| 572 |
<BR> |
<BR> |
|
|
|
| 573 |
<DIV CLASS="function"> |
<DIV CLASS="function"> |
| 574 |
<A NAME='_build_properties'><!-- --></A> |
<A NAME='method_build_properties'><!-- --></A> |
| 575 |
<SPAN CLASS="font12bold">_build_properties</SPAN> |
<SPAN CLASS="font12bold">_build_properties</SPAN> (line <span class="linenumber">169</span>) |
| 576 |
<BR> |
<BR> |
| 577 |
<SPAN CLASS="font10bold">Useage : </SPAN> |
<SPAN CLASS="font10bold">Usage : </SPAN> |
| 578 |
<span class="font10bold" style="color: #FF0000">string</SPAN> |
<span class="font10bold" style="color: #FF0000">string</SPAN> |
| 579 |
<span class="font10bold" style="color: #0000FF">_build_properties ( $properties, $indent_str )</SPAN> |
<span class="font10bold" style="color: #0000FF">_build_properties( |
| 580 |
|
array |
| 581 |
|
$properties, array |
| 582 |
|
$indent_str)</SPAN> |
| 583 |
<BR> |
<BR> |
| 584 |
|
|
| 585 |
<BR> |
<BR> |
| 586 |
<SPAN CLASS="font10bold">Description : </SPAN> |
<SPAN CLASS="font10bold">Description : </SPAN> |
| 587 |
<!-- ========== Info from phpDoc block ========= --> |
This function is used to construct the property: value strings for the class |
| 588 |
This function is used to construct the |
<br /> |
|
property: value strings for the class |
|
|
<BR> |
|
| 589 |
|
|
| 590 |
<DL> |
<DL> |
| 591 |
<DT class="font10bold">Function Parameters:</DT> |
<DT class="font10bold">Function Parameters:</DT> |
| 592 |
|
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">array</SPAN> <span style="color: #0000FF;font-weight:bold">$properties</SPAN></SPAN> - the properties</DD> |
| 593 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">array</SPAN> <span style="color: #0000FF;font-weight:bold">$properties</SPAN></SPAN> - the properties</DD> |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">array</SPAN> <span style="color: #0000FF;font-weight:bold">$indent_str</SPAN></SPAN> - the indent string.</DD> |
| 594 |
|
|
| 595 |
<DD CLASS="font10" STYLE="padding-bottom:5px;"><span STYLE="font-style: italic;">- <span style="color: #FF0000;font-weight:bold;">array</SPAN> <span style="color: #0000FF;font-weight:bold">$indent_str</SPAN></SPAN> - the indent string.</DD> |
<DT class="font10bold">Function Info:</DT> |
| 596 |
|
</DL> |
|
|
|
|
<DT class="font10bold">Function Info:</DT> |
|
|
|
|
|
</DL> |
|
|
|
|
| 597 |
</DIV> |
</DIV> |
| 598 |
<BR> |
<BR> |
|
|
|
| 599 |
<DIV CLASS="function"> |
<DIV CLASS="function"> |
| 600 |
<A NAME='_replace_value'><!-- --></A> |
<A NAME='method_replace_value'><!-- --></A> |
| 601 |
<SPAN CLASS="font12bold">_replace_value</SPAN> |
<SPAN CLASS="font12bold">_replace_value</SPAN> (line <span class="linenumber">258</span>) |
| 602 |
<BR> |
<BR> |
| 603 |
<SPAN CLASS="font10bold">Useage : </SPAN> |
<SPAN CLASS="font10bold">Usage : </SPAN> |
| 604 |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
<span class="font10bold" style="color: #FF0000">void</SPAN> |
| 605 |
<span class="font10bold" style="color: #0000FF">_replace_value ( &$item, $key, $blah )</SPAN> |
<span class="font10bold" style="color: #0000FF">_replace_value( |
| 606 |
|
mixed |
| 607 |
|
&$item, mixed |
| 608 |
|
$key, mixed |
| 609 |
|
$blah)</SPAN> |
| 610 |
<BR> |
<BR> |
| 611 |
|
|
| 612 |
<BR> |
<BR> |
| 613 |
<SPAN CLASS="font10bold">Description : </SPAN> |
<SPAN CLASS="font10bold">Description : </SPAN> |
|
<!-- ========== Info from phpDoc block ========= --> |
|
| 614 |
This function does the main work for update_all_values |
This function does the main work for update_all_values |
| 615 |
<BR> |
<br /> |
| 616 |
|
|
| 617 |
<DL> |
<DL> |
|
<DT class="font10bold">Function Parameters:</DT> |
|
|
|
|
|
|
|
|
<DT class="font10bold">Function Info:</DT> |
|
|
|
|
|
</DL> |
|
| 618 |
|
|
| 619 |
|
<DT class="font10bold">Function Info:</DT> |
| 620 |
|
</DL> |
| 621 |
</DIV> |
</DIV> |
| 622 |
<BR> |
<BR> |
| 623 |
|
<div id="credit"> |
| 624 |
|
<hr> |
| 625 |
<hr> |
Documention generated on Thu, 20 Feb 2003 16:22:33 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.2.0rc1</a> |
| 626 |
</HTML> |
</div> |
| 627 |
|
</body> |
| 628 |
|
</html> |