cvs: pear /HTML_CSS/docs/TDG book.css ch01.html ch01s02.html ch01s03.html ch02.html ch03.html ch03s02.html ch04.html ch04s02.html ch04s03.html
ch05.html ch05s02.html ch05s03.html ch05s04.html ch05s05.html ch06.html ch06s02.html ch06s03.html ch06s04.html ch06s05.html ch06s06.html ch07.html
ch07s02.html ch07s03.html ch07s04.html ch08.html ch08s02.html ch08s03.html ch08s04.html ch08s05.html index.html pr01.html pr01s02.html pt01.html
pt02.html pt03.html re01.html re02.html re03.html re04.html re05.html re06.html re07.html re08.html re09.html re10.html re11.html re12.html re13.html
re14.html re15.html re16.html re17.html re18.html re19.html re20.html re21.html re22.html re23.html
| From: | Laurent Laville | Date: | Sat, 24 Jun 2006 09:17:50 +0000 |
| Subject: | cvs: pear /HTML_CSS/docs/TDG book.css ch01.html ch01s02.html ch01s03.html ch02.html ch03.html ch03s02.html ch04.html ch04s02.html ch04s03.html ch05.html ch05s02.html ch05s03.html ch05s04.html ch05s05.html ch06.html ch06s02.html ch06s03.html ch06s04.html ch06s05.html ch06s06.html ch07.html ch07s02.html ch07s03.html ch07s04.html ch08.html ch08s02.html ch08s03.html ch08s04.html ch08s05.html index.html pr01.html pr01s02.html pt01.html pt02.html pt03.html re01.html re02.html re03.html re04.html re05.html re06.html re07.html re08.html re09.html re10.html re11.html re12.html re13.html re14.html re15.html re16.html re17.html re18.html re19.html re20.html re21.html re22.html re23.html |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40888@lists.php.net to get a copy of this message | ||
farell Sat Jun 24 09:17:50 2006 UTC
Added files:
/pear/HTML_CSS/docs/TDG book.css ch01.html ch01s02.html
ch01s03.html ch02.html ch03.html
ch03s02.html ch04.html ch04s02.html
ch04s03.html ch05.html ch05s02.html
ch05s03.html ch05s04.html ch05s05.html
ch06.html ch06s02.html ch06s03.html
ch06s04.html ch06s05.html ch06s06.html
ch07.html ch07s02.html ch07s03.html
ch07s04.html ch08.html ch08s02.html
ch08s03.html ch08s04.html ch08s05.html
index.html pr01.html pr01s02.html pt01.html
pt02.html pt03.html re01.html re02.html
re03.html re04.html re05.html re06.html
re07.html re08.html re09.html re10.html
re11.html re12.html re13.html re14.html
re15.html re16.html re17.html re18.html
re19.html re20.html re21.html re22.html
re23.html
Log:
The CSS TDG (The Definitive Guide) written with DockBook that cover stable release 1.0.0
http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/book.css?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/book.css +++ pear/HTML_CSS/docs/TDG/book.css /* ======================================================== ================================================================ Stylesheet for DocBook HTML_CSS Manual ================================================================ ======================================================== $Id: book.css,v 1.1 2006/06/24 09:17:49 farell Exp $ author - Laurent Laville <pear@laurent-laville.org> aka farell */ body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } div.authorgroup { background-image: url(img/created-with-docbook.png); background-repeat: no-repeat; background-position: top right; } div.revhistory table, div.revhistory td { border: none; } div.revhistory table { background-color: #339900; } div.revhistory th { color: #FFF; } div.revhistory td { background-color: #EEE; } div.funcsynopsisinfo { background-color: #EEE; } div.example { background-image: url('img/example.png'); background-repeat: no-repeat; background-position: top left; padding-left: 55px; } pre.programlisting { background-color: #EEE; padding: 1em; border-left: 10px solid darkgray; } div.note, div.tip, div.warning, div.caution, div.important { background-color: lightyellow; border: 2px solid silver; } pre.screen { border: 1px solid darkgray; padding: 1em; } div.screenshot { border: 1px solid darkgray; padding: 1em; text-align: center; } /* Give size to all admonition graphics to allow to fix the PNG behavior for IE 5+ (alpha channel) See also: pngbehavior.htc http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html */ div.note img, div.tip img, div.warning img, div.caution img, div.important img { width: 48px; height: 48px; behavior: url("pngbehavior.htc"); } h1.title { display: none; } h3.editor { font-weight: normal; font-size: 0.8em; } p.copyright { color: #006600; } /* callout graphic text-alternative rendering */ pre.programlisting img { color: white; background-color: black; } table.htmlcssHeader, table.htmlcssFooter { width: 100%; border: 0; padding: 0; spacing: 0; background-color: lightgreen; } table.htmlcssHeader td { vertical-align: bottom; } table.htmlcssHeader td h1 { text-align: right; } table.htmlcssHeader td img { text-align: left; } table.htmlcssHeader h1 { color: #006600; } table.htmlcssFooter { font-size: 0.7em; font-style: italic; } /* external link */ a.external { background: transparent url(img/external-link.gif) 4px 4px no-repeat; padding: 1px 0 1px 16px; } /* FAQ list */ tr.toc dl { font-size: 12px; } tr.question td { padding-top: 1em; font-weight: bold; font-size: 12px; } tr.answer { font-size: 12px; } http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch01.html +++ pear/HTML_CSS/docs/TDG/ch01.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 1. About HTML_CSS</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt01.html" rel="up" title="Part I. Introduction"> <link href="pt01.html" rel="prev" title="Part I. Introduction"> <link href="ch01s02.html" rel="next" title="Intended Audience"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 1. About HTML_CSS</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="pt01.html">Prev</a> </td> <th align="center" width="60%">Part I. Introduction</th><td align="right" width="20%"> <a accesskey="n" href="ch01s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="introduction"></a>Chapter 1. About HTML_CSS</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch01.html#intro.qfams">What is HTML_CSS ?</a></span></dt><dt><span class="sect1"><a href="ch01s02.html">Intended Audience</a></span></dt><dt><span class="sect1"><a href="ch01s03.html">Why use HTML_CSS ?</a></span></dt> <dd> <dl><dt><span class="sect2"><a href="ch01s03.html#intro.use.features">Features</a></span></dt><dt><span class="sect2"><a href="ch01s03.html#intro.use.requires">System Requirements</a></span></dt> </dl></dd> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="intro.qfams"></a>What is HTML_CSS ?</h2></div> </div> </div> <p>The HTML_CSS package provides a simple interface for handling and generating style sheet declarations. </p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="pt01.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt01.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch01s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Part I. Introduction </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Intended Audience</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch01s02.html +++ pear/HTML_CSS/docs/TDG/ch01s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Intended Audience</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch01.html" rel="up" title="Chapter 1. About HTML_CSS"> <link href="ch01.html" rel="prev" title="Chapter 1. About HTML_CSS"> <link href="ch01s03.html" rel="next" title="Why use HTML_CSS ?"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Intended Audience</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch01.html">Prev</a> </td> <th align="center" width="60%">Chapter 1. About HTML_CSS</th><td align="right" width="20%"> <a accesskey="n" href="ch01s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="intro.audience"></a>Intended Audience</h2></div> </div> </div> <p>This document is written as a guide to and reference for the HTML_CSS package, for both beginner and expert users. </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch01.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch01.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch01s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 1. About HTML_CSS </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Why use HTML_CSS ?</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch01s03.html +++ pear/HTML_CSS/docs/TDG/ch01s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Why use HTML_CSS ?</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch01.html" rel="up" title="Chapter 1. About HTML_CSS"> <link href="ch01s02.html" rel="prev" title="Intended Audience"> <link href="ch02.html" rel="next" title="Chapter 2. FAQ - Frequently Asked Questions"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Why use HTML_CSS ?</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch01s02.html">Prev</a> </td> <th align="center" width="60%">Chapter 1. About HTML_CSS</th><td align="right" width="20%"> <a accesskey="n" href="ch02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="intro.use"></a>Why use HTML_CSS ?</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="sect2"><a href="ch01s03.html#intro.use.features">Features</a></span></dt><dt><span class="sect2"><a href="ch01s03.html#intro.use.requires">System Requirements</a></span></dt> </dl> </div> <p>Even if a CSS file is easy to modify (text format), there is no PHP interface that provides such degree of handling style sheet declarations. Create from scratch or parsing single or multi data sources begin really so easy with HTML_CSS. </p> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="intro.use.features"></a>Features</h3></div> </div> </div> <p></p> <div class="itemizedlist"> <ul type="disc"> <li>parse css string.</li> <li>parse css file.</li> <li>parse multi-target css data sources at once.</li> <li>output to inline stylesheet declarations.</li> <li>output to document internal stylesheet declarations.</li> <li>output to standalone stylesheet declarations.</li> <li>output to Array of definitions.</li> <li>output to string.</li> <li>output to file.</li> </ul> </div> <p></p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="intro.use.requires"></a>System Requirements</h3></div> </div> </div> <p></p> <div class="itemizedlist"> <ul type="disc"> <li>Webserver IIS or Apache (recommanded 1.3.x). </li> <li> <a class="external" href="http://www.php.net/" title="http://www.php.net/">PHP</a> 4.0.6 or newer (recommended: 4.3.0 or better). </li> <li> <a class="external" href="http://pear.php.net/" title="http://pear.php.net/">PEAR</a> 1.0 or newer (recommended: 1.4.3 or better). </li> <li> <a class="external" href="http://pear.php.net/package/HTML_Common" title="http://pear.php.net/package/HTML_Common">PEAR::HTML_Common</a> 1.2.1 or newer. </li> </ul> </div> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch01s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch01.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Intended Audience </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 2. FAQ - Frequently Asked Questions</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch02.html +++ pear/HTML_CSS/docs/TDG/ch02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 2. FAQ - Frequently Asked Questions</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt01.html" rel="up" title="Part I. Introduction"> <link href="ch01s03.html" rel="prev" title="Why use HTML_CSS ?"> <link href="pt02.html" rel="next" title="Part II. Getting Started"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 2. FAQ - Frequently Asked Questions</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch01s03.html">Prev</a> </td> <th align="center" width="60%">Part I. Introduction</th><td align="right" width="20%"> <a accesskey="n" href="pt02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="faq"></a>Chapter 2. FAQ - Frequently Asked Questions</h2></div> </div> </div> <div class="qandaset"> <dl><dt>2.1. <a href="ch02.html#id4722278">General questions</a></dt> <dd> <dl><dt>2.1.1. <a href="ch02.html#id4722283">What does it cost ?</a></dt><dt>2.1.2. <a href="ch02.html#id4722313">Do you offer support ?</a></dt><dt>2.1.3. <a href="ch02.html#id4722330">I found a bug, what shall i do ?</a></dt><dt>2.1.4. <a href="ch02.html#id4722352">What is CSS ?</a></dt><dt>2.1.5. <a href="ch02.html#id4722407">What is PEAR ?</a></dt> </dl></dd> </dl> <table border="0" summary="Q and A Set"> <col align="left" width="1%"> <tbody> <tr class="qandadiv"> <td align="left" colspan="2" valign="top"><a name="id4722278"></a> <h3 class="title"><a name="id4722278"></a>2.1. General questions</h3></td> </tr> <tr class="toc" colspan="2"> <td align="left" colspan="2" valign="top"> <dl><dt>2.1.1. <a href="ch02.html#id4722283">What does it cost ?</a></dt><dt>2.1.2. <a href="ch02.html#id4722313">Do you offer support ?</a></dt><dt>2.1.3. <a href="ch02.html#id4722330">I found a bug, what shall i do ?</a></dt><dt>2.1.4. <a href="ch02.html#id4722352">What is CSS ?</a></dt><dt>2.1.5. <a href="ch02.html#id4722407">What is PEAR ?</a></dt> </dl> </td> </tr> <tr class="question"> <td align="left" valign="top"><a name="id4722283"></a><a name="id4722285"></a><b>2.1.1.</b></td> <td align="left" valign="top"> <p>What does it cost ?</p></td> </tr> <tr class="answer"> <td align="left" valign="top"><b></b></td> <td align="left" valign="top"> <p>You can download and use it for free. But don't delete the copyright notice. You can read terms of the <a class="external" href="http://www.laurent-laville.org/index.php?mod=pear&des=css&act=license" title="http://www.laurent-laville.org/index.php?mod=pear&des=css&act=license"> license </a> </p> </td> </tr> <tr class="question"> <td align="left" valign="top"><a name="id4722313"></a><a name="id4722315"></a><b>2.1.2.</b></td> <td align="left" valign="top"> <p>Do you offer support ?</p></td> </tr> <tr class="answer"> <td align="left" valign="top"><b></b></td> <td align="left" valign="top"> <p>YES if there is no answer in this Guide and if you are ready to share some informations such as : your configuration (platform Win *nix mac, PHP version, PEAR packages installed) and perharps your script. </p> </td> </tr> <tr class="question"> <td align="left" valign="top"><a name="id4722330"></a><a name="id4722332"></a><b>2.1.3.</b></td> <td align="left" valign="top"> <p>I found a bug, what shall i do ?</p></td> </tr> <tr class="answer"> <td align="left" valign="top"><b></b></td> <td align="left" valign="top"> <p>You can report it with the bug tracker at <a class="external" href="http://pear.php.net/package/HTML_CSS/bugs" title="http://pear.php.net/package/HTML_CSS/bugs">PEAR</a>. </p> </td> </tr> <tr class="question"> <td align="left" valign="top"><a name="id4722352"></a><a name="id4722355"></a><b>2.1.4.</b></td> <td align="left" valign="top"> <p>What is CSS ?</p></td> </tr> <tr class="answer"> <td align="left" valign="top"><b></b></td> <td align="left" valign="top"> <p>CSS (an acronym for <span class="bold"><strong>C</strong></span>ascading <span class="bold"><strong>S</strong></span>tyle <span class="bold"><strong>S</strong></span>heets) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents. </p> <p><span class="bold"><strong>HTML_CSS</strong></span> is a PEAR package that provides methods for handling stylesheet declarations. </p> <p>Version 1.0.0 does not offers yet methods to validate a style sheet. </p> </td> </tr> <tr class="question"> <td align="left" valign="top"><a name="id4722407"></a><a name="id4722409"></a><b>2.1.5.</b></td> <td align="left" valign="top"> <p>What is PEAR ?</p></td> </tr> <tr class="answer"> <td align="left" valign="top"><b></b></td> <td align="left" valign="top"> <p>PEAR (an acronym for <span class="bold"><strong>P</strong></span>HP <span class="bold"><strong>E</strong></span>xtension and <span class="bold"><strong>A</strong></span>pplication <span class="bold"><strong>R</strong></span>epository) is a framework and distribution system for reusable PHP components. </p> <p>Don't forget to read also the <a class="external" href="http://pear.php.net/manual/en" title="http://pear.php.net/manual/en">PEAR Manual</a> and <a class="external" href="http://pear.php.net/manual/en/faq.php" title="http://pear.php.net/manual/en/faq.php">PEAR FAQ</a>. </p> </td> </tr> </tbody> </table> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch01s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt01.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="pt02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Why use HTML_CSS ? </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Part II. Getting Started</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch03.html +++ pear/HTML_CSS/docs/TDG/ch03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 3. Overview</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt02.html" rel="up" title="Part II. Getting Started"> <link href="pt02.html" rel="prev" title="Part II. Getting Started"> <link href="ch03s02.html" rel="next" title="Basic concepts"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 3. Overview</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="pt02.html">Prev</a> </td> <th align="center" width="60%">Part II. Getting Started</th><td align="right" width="20%"> <a accesskey="n" href="ch03s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="developers.intro"></a>Chapter 3. Overview</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch03.html#developers.intro.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch03s02.html">Basic concepts</a></span></dt> <dd> <dl><dt><span class="sect2"><a href="ch03s02.html#id4722837">What is a rule or "rule set" ?</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769736">Rule structure</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769769">Declaration block </a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769815">Grouping declarations</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769878">Grouping selectors</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769977">CSS comments</a></span></dt> </dl></dd> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.intro.purpose"></a>In brief</h2></div> </div> </div> <p>The purpose of this tutorial is to give the new users of HTML_CSS an overview of its features and usage patterns. It describes a small subset of available functionality, but points to the parts of the documentation that give a more in-depth overview. </p> <p>Selectors are one of the most important aspects of CSS as they are used to "select" elements on an HTML page so that they can be styled. We will try to explain basic concepts, and how to do the same with HTML_CSS. </p> <p>A complete tutorial about CSS selectors can be find at <a class="external" href="http://css.maxdesign.com.au/index.htm" title="http://css.maxdesign.com.au/index.htm">maxDesign</a>. </p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="pt02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch03s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Part II. Getting Started </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Basic concepts</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch03s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch03s02.html +++ pear/HTML_CSS/docs/TDG/ch03s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Basic concepts</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch03.html" rel="up" title="Chapter 3. Overview"> <link href="ch03.html" rel="prev" title="Chapter 3. Overview"> <link href="ch04.html" rel="next" title="Chapter 4. Grouping selectors"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Basic concepts</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch03.html">Prev</a> </td> <th align="center" width="60%">Chapter 3. Overview</th><td align="right" width="20%"> <a accesskey="n" href="ch04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.intro.concepts"></a>Basic concepts</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="sect2"><a href="ch03s02.html#id4722837">What is a rule or "rule set" ?</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769736">Rule structure</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769769">Declaration block </a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769815">Grouping declarations</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769878">Grouping selectors</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769977">CSS comments</a></span></dt> </dl> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4722837"></a>What is a rule or "rule set" ?</h3></div> </div> </div> <p>A rule or "rule set" is a statement that tells browsers how to render particular elements on an HTML page. A rule set consists of a selector followed by a declaration block. </p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4769736"></a>Rule structure</h3></div> </div> </div> <p></p> <div class="figure"><a name="id4769744"></a> <p class="title"><b>Figure 3.1. Rule structure </b></p><div class="screenshot"><div><img alt="Rule structure" src="img/rule.gif"></div> </div> </div> <p></p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4769769"></a>Declaration block </h3> </div> </div> </div> <p>The <code class="methodname">HTML_CSS::setStyle()</code> method is the only one to handle a declaration block. </p> <p>For example, to declare a such rule : </p> <pre class="programlisting"> p { padding: 5px; } </pre> <p></p>Here is the php code to create the same sentence with HTML_CSS : <p></p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $css->setStyle('p', 'padding', '5px'); $css->display(); ?> </pre> <p></p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4769815"></a>Grouping declarations</h3></div> </div> </div> <p>You can use more than one declaration within a declaration block. Each declaration must be separated with a semicolon ";". </p> <p>For example, to declare a such rule : </p> <pre class="programlisting"> p { padding: 5px; margin: 1px; } </pre> <p>Or, with whitespace added to aid readability : </p> <pre class="programlisting"> p { padding: 5px; margin: 1px; } </pre> <p></p>Here is the php code to create the same sentence with HTML_CSS : <p></p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $css->setStyle('p', 'padding', '5px'); $css->setStyle('p', 'margin', '1px'); $css->display(); ?> </pre> <p></p>Notice that we use twice <code class="methodname">HTML_CSS::setStyle()</code> method call to declare each declaration block for the same selector. </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4769878"></a>Grouping selectors</h3></div> </div> </div> <p>When several selectors share the same declarations, they may be grouped together to save writing the same rule more than once. Each selector must be separated by a comma. For example : </p> <p></p> <pre class="programlisting"> h1, h2, h3, h4 { padding: 1em; }..highlight p, .highlight ul { margin-left: .5em; } #main p, #main ul { padding-top: 1em; } </pre> <p></p>To produce such result, we will need help of 3 new methods : <code class="methodname">HTML_CSS::setSameStyle()</code>, <code class="methodname">HTML_CSS::createGroup()</code> and <code class="methodname">HTML_CSS::setGroupStyle()</code>. <p></p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); // two selector groups only $css->setStyle('.highlight p', 'margin-left', '.5em'); $css->setSameStyle('.highlight ul', '.highlight p'); // or even this way $g2 = $css->createGroup('#main p, #main ul'); $css->setGroupStyle($g2, 'padding-top', '2em'); // more than two selector groups $g1 = $css->createGroup('h1, h2, h3, h4'); $css->setGroupStyle($g1, 'padding', '1em'); $css->display(); ?> </pre> <p></p> <p>We should take care than grouping two selectors may be write either with <code class="methodname">HTML_CSS::setSameStyle()</code> or with couple <code class="methodname">HTML_CSS::createGroup()</code> and <code class="methodname">HTML_CSS::setGroupStyle()</code>. When we have to group three or more selectors, there is only one possibility: couple <code class="methodname">HTML_CSS::createGroup()</code> and <code class="methodname">HTML_CSS::setGroupStyle()</code>. </p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4769977"></a>CSS comments</h3></div> </div> </div> <p>You can insert comments in CSS to explain your code. Like HTML comments, CSS comments will be ignored by the browser. A CSS comment begins with "/*", and ends with "*/". Comments can appear before or within rule sets as well as across multiple lines. </p> <p>HTML_CSS 1.0.0 has not yet ability to handle comment such as : </p> <p></p> <pre class="programlisting"> /* Comment here */ p { margin: 1em; /* Comment here */ padding: 2em; /* color: white; */ background-color: blue; } /* multi-line comment here */ </pre> <p></p> <p></p> <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Warning"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Warning]" src="img/admons/warning.png"></td> <th align="left">Warning</th> </tr> <tr> <td align="left" valign="top"> The common mistake that people make when writing comments is to expect getting all comments describe with such code below : it's an error. </td> </tr> </table> </div> <p></p> <p></p> <pre class="programlisting"> $css->setComment('comment here'); $css->setStyle('p', 'margin', '1em'); $css->setStyle('p', 'padding', '2em'); $css->setComment('color: white;'); $css->setStyle('p', 'background-color', 'blue'); $css->setComment(' multi-line comment here '); </pre> <p></p> <p>You will only get such result: </p> <pre class="programlisting"> /* multi-line comment here */ p { margin: 1em; padding: 2em; background-color: blue; } </pre> <p></p>Only one comment is allowed due to usage of parent class method <code class="methodname">HTML_Common::setComment()</code>. </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 3. Overview </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 4. Grouping selectors</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch04.html +++ pear/HTML_CSS/docs/TDG/ch04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 4. Grouping selectors</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt02.html" rel="up" title="Part II. Getting Started"> <link href="ch03s02.html" rel="prev" title="Basic concepts"> <link href="ch04s02.html" rel="next" title="Create group"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 4. Grouping selectors</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch03s02.html">Prev</a> </td> <th align="center" width="60%">Part II. Getting Started</th><td align="right" width="20%"> <a accesskey="n" href="ch04s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="developers.group"></a>Chapter 4. Grouping selectors</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch04.html#developers.group.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch04s02.html">Create group</a></span></dt> <dd> <dl><dt><span class="sect2"><a href="ch04s02.html#id4770542">Identify the group yourself</a></span></dt><dt><span class="sect2"><a href="ch04s02.html#id4770567">Let HTML_CSS do it itself</a></span></dt> </dl></dd><dt><span class="sect1"><a href="ch04s03.html">Handle group selector</a></span></dt> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.group.purpose"></a>In brief</h2></div> </div> </div> <p>Remember, when several selectors share the same declarations, they may be grouped together to save writing the same rule more than once. Each selector must be separated by a comma. </p> <p>Two cases exists to handle group of selector. The quick and limited solution (accept only two selectors in a same group) with : <code class="methodname">HTML_CSS::setSameStyle()</code>. And the extended/common solution with : <code class="methodname">HTML_CSS::createGroup()</code>, <code class="methodname">HTML_CSS::setGroupStyle()</code>, <code class="methodname">HTML_CSS::addGroupSelector()</code> and <code class="methodname">HTML_CSS::removeGroupSelector()</code>. </p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch03s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch04s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Basic concepts </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Create group</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch04s02.html +++ pear/HTML_CSS/docs/TDG/ch04s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Create group</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch04.html" rel="up" title="Chapter 4. Grouping selectors"> <link href="ch04.html" rel="prev" title="Chapter 4. Grouping selectors"> <link href="ch04s03.html" rel="next" title="Handle group selector"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Create group</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch04.html">Prev</a> </td> <th align="center" width="60%">Chapter 4. Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="ch04s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.group.create"></a>Create group</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="sect2"><a href="ch04s02.html#id4770542">Identify the group yourself</a></span></dt><dt><span class="sect2"><a href="ch04s02.html#id4770567">Let HTML_CSS do it itself</a></span></dt> </dl> </div> <p><code class="methodname">HTML_CSS::createGroup()</code> creates basically a group for selectors given as first argument. You can identify this group by an identifier (alphanumeric) or let HTML_CSS manage an internal numeric identifier itself. </p> <p>Let creates this group of selectors : </p> <pre class="programlisting"> #main p, #main ul { padding-top: 1em; color: red; } </pre> <p></p> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4770542"></a>Identify the group yourself</h3></div> </div> </div> <p>Identifier is named <span class="bold"><strong>myGroupID</strong></span> in this example: </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $g1 = $css->createGroup('#main p, #main ul', 'myGroupID'); $css->setGroupStyle($g1, 'padding-top', '1em'); $css->setGroupStyle($g1, 'color', 'red'); $css->display(); ?> </pre> <p></p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4770567"></a>Let HTML_CSS do it itself</h3></div> </div> </div> <p></p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Note]" src="img/admons/note.png"></td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> This is the default behavior. </td> </tr> </table> </div> <p></p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $g1 = $css->createGroup('#main p, #main ul'); $css->setGroupStyle($g1, 'padding-top', '1em'); $css->setGroupStyle($g1, 'color', 'red'); $css->display(); ?> </pre> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch04s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 4. Grouping selectors </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Handle group selector</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch04s03.html +++ pear/HTML_CSS/docs/TDG/ch04s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Handle group selector</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch04.html" rel="up" title="Chapter 4. Grouping selectors"> <link href="ch04s02.html" rel="prev" title="Create group"> <link href="ch05.html" rel="next" title="Chapter 5. Parsing data sources"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Handle group selector</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch04s02.html">Prev</a> </td> <th align="center" width="60%">Chapter 4. Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="ch05.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.group.selectors"></a>Handle group selector</h2></div> </div> </div> <p>With <code class="methodname">HTML_CSS::addGroupSelector()</code> and <code class="methodname">HTML_CSS::removeGroupSelector()</code>, we have ability to add or remove one selector from a selectors list (of a group). </p> <p>Suppose we have these selectors : </p> <pre class="programlisting"> html, body { margin: 2px; padding: 0; border: 0; } </pre> <p>and we want to apply same share properties to new class 'large' and do not anymore apply it to 'body'. </p> <p>Here are how to do : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); // 1. create the pre-requires data $g1 = $css->createGroup('html, body'); $css->setGroupStyle($g1, 'margin', '2px'); $css->setGroupStyle($g1, 'padding', '0'); $css->setGroupStyle($g1, 'border', '0'); // 2. remove the body selector $css->removeGroupSelector(1, 'body'); // 3. add the new 'large' class $css->addGroupSelector(1, '.large'); $css->display(); ?> </pre> <p></p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Note]" src="img/admons/note.png"></td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> Remember that HTML_CSS handle group (numeric) identifier itself (begin at 1, and go to 2, 3, and more). </td> </tr> </table> </div> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch04s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch05.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Create group </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 5. Parsing data sources</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch05.html +++ pear/HTML_CSS/docs/TDG/ch05.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 5. Parsing data sources</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt02.html" rel="up" title="Part II. Getting Started"> <link href="ch04s03.html" rel="prev" title="Handle group selector"> <link href="ch05s02.html" rel="next" title="Parse a simple string"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 5. Parsing data sources</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch04s03.html">Prev</a> </td> <th align="center" width="60%">Part II. Getting Started</th><td align="right" width="20%"> <a accesskey="n" href="ch05s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="developers.parse"></a>Chapter 5. Parsing data sources</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch05.html#developers.parse.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch05s02.html">Parse a simple string</a></span></dt><dt><span class="sect1"><a href="ch05s03.html">Parse a file contents</a></span></dt><dt><span class="sect1"><a href="ch05s04.html">Parse multi data sources </a></span></dt><dt><span class="sect1"><a href="ch05s05.html">Allow duplicate definitions</a></span></dt> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.parse.purpose"></a>In brief</h2></div> </div> </div> <p>One of the great features of HTML_CSS is to parse and load existing style sheet from different data sources : (simple string, css file, combine). We will see in detail all these possibilities with 3 methods : <code class="methodname">HTML_CSS::parseString()</code>, <code class="methodname">HTML_CSS::parseFile()</code> and <code class="methodname">HTML_CSS::parseData()</code>. </p> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch04s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch05s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Handle group selector </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Parse a simple string</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch05s02.html +++ pear/HTML_CSS/docs/TDG/ch05s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Parse a simple string</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch05.html" rel="up" title="Chapter 5. Parsing data sources"> <link href="ch05.html" rel="prev" title="Chapter 5. Parsing data sources"> <link href="ch05s03.html" rel="next" title="Parse a file contents"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Parse a simple string</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch05.html">Prev</a> </td> <th align="center" width="60%">Chapter 5. Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="ch05s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.parse.string"></a>Parse a simple string</h2></div> </div> </div> <p>A quick way to create multiple selector definitions in one step is to use the <code class="methodname">HTML_CSS::parseString()</code> function. </p> <p>Let creates these definitions : </p> <pre class="programlisting"> html, body { margin: 2px; padding: 0px; border: 0px; } p, body { margin: 4px; } </pre> <p></p> <p>Very easy with such script : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $strcss = ' html, body { margin: 2px; padding: 0px; border: 0px; } p, body { margin: 4px; } '; $css->parseString($strcss); $css->display(); ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch05.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch05.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch05s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 5. Parsing data sources </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Parse a file contents</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch05s03.html +++ pear/HTML_CSS/docs/TDG/ch05s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Parse a file contents</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch05.html" rel="up" title="Chapter 5. Parsing data sources"> <link href="ch05s02.html" rel="prev" title="Parse a simple string"> <link href="ch05s04.html" rel="next" title="Parse multi data sources "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Parse a file contents</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch05s02.html">Prev</a> </td> <th align="center" width="60%">Chapter 5. Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="ch05s04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.parse.file"></a>Parse a file contents</h2></div> </div> </div> <p>Another quick way to create multiple selector definitions in one step is to use the <code class="methodname">HTML_CSS::parseFile()</code> function. CSS file to load is supposed to be W3C/CSS compliant. </p> <p>If previous selector definitions was into a file named 'styles.css', then to parse and load contents will be done with such script : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $css->parseFile('styles.css'); $css->display(); ?> </pre> <p></p> <p></p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Tip]" src="img/admons/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> If there are duplicate definitions into file contents, you should parse file with call : <p>$css->parseFile('styles.css', true); </p>We will see next why we may find such duplicate definitions. </td> </tr> </table> </div> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch05s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch05.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch05s04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Parse a simple string </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Parse multi data sources </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch05s04.html +++ pear/HTML_CSS/docs/TDG/ch05s04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Parse multi data sources </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch05.html" rel="up" title="Chapter 5. Parsing data sources"> <link href="ch05s03.html" rel="prev" title="Parse a file contents"> <link href="ch05s05.html" rel="next" title="Allow duplicate definitions"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Parse multi data sources </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch05s03.html">Prev</a> </td> <th align="center" width="60%">Chapter 5. Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="ch05s05.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.parse.data"></a>Parse multi data sources </h2> </div> </div> </div> <p>We have already seen two single sources where CSS data could come from. The last one allow to parse data from multiple sources at once. <code class="methodname">HTML_CSS::parseData()</code> function take an array as first argument. Each item is either a filename (with .css extension) or a string. Each source is merge to produce at end a unique style sheet. </p> <p>In script below we load selector definitions from two independent sources: a string and a css file which contents duplicate definitions (parseFile() 2nd argument to set to true to catch this situation; see next section for explains). Internet Explorer). </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); // 1. a string to parse $strcss = ' body, p { background-color: white; font: 1.2em Arial; } p, div#black { color: black; } div{ color: green; } p { margin-left: 3em; } '; $css->parseString($strcss); // 2. a css file with duplicate definitions $css->parseFile('iehack.css', true); $css->display(); ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch05s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch05.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch05s05.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Parse a file contents </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Allow duplicate definitions</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s05.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch05s05.html +++ pear/HTML_CSS/docs/TDG/ch05s05.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Allow duplicate definitions</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch05.html" rel="up" title="Chapter 5. Parsing data sources"> <link href="ch05s04.html" rel="prev" title="Parse multi data sources "> <link href="ch06.html" rel="next" title="Chapter 6. Output"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Allow duplicate definitions</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch05s04.html">Prev</a> </td> <th align="center" width="60%">Chapter 5. Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="ch06.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.parse.duplicate"></a>Allow duplicate definitions</h2></div> </div> </div> <p>Internet Explorer <= 6 does not handle box model in same way as others browsers that are better W3C compliant. For this reason, we need to fix boxes size with a hack such as this one you can find in example that follow. You can notice the duplicate 'voice-family' and 'height' properties. </p> <p>To parse these definitions we need to activate the <span class="bold"><strong>duplicate</strong></span> option of HTML_CSS. </p> <pre class="programlisting"> #header { background-color: ivory; font-family: "Times New Roman", Times, serif; font-size: 5mm; text-align: center; /* IE 5.5 */ height:81px; border-top:1px solid #000; border-right:1px solid #000; border-left:1px solid #000; voice-family: "\"}\""; voice-family: inherit; /* IE 6 */ height: 99px; } </pre> <p></p> <p>There are two ways : </p> <div class="itemizedlist"> <ul type="disc"> <li>global to all functions: set option <span class="bold"><strong>allowduplicates</strong></span> on class constructor </li> <li>local to a function: set argument <span class="bold"><strong>duplicates</strong></span> to TRUE </li> </ul> </div> <p></p> <p>For example here, we could wrote either (allow global duplicate) : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $attr = array('allowduplicates' => true); $css = new HTML_CSS($attr); $strcss = ' #header { background-color: ivory; font-family: "Times New Roman", Times, serif; font-size: 5mm; text-align: center; /* IE 5.5 */ height:81px; border-top:1px solid #000; border-right:1px solid #000; border-left:1px solid #000; voice-family: "\"}\""; voice-family: inherit; /* IE 6 */ height: 99px; } '; $css->parseString($strcss); $css->display(); ?> </pre> <p>or also (duplicate on local call) : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $strcss = ' #header { background-color: ivory; font-family: "Times New Roman", Times, serif; font-size: 5mm; text-align: center; /* IE 5.5 */ height:81px; border-top:1px solid #000; border-right:1px solid #000; border-left:1px solid #000; voice-family: "\"}\""; voice-family: inherit; /* IE 6 */ height: 99px; } '; $css->parseString($strcss, true); $css->display(); ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch05s04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch05.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Parse multi data sources </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 6. Output</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06.html +++ pear/HTML_CSS/docs/TDG/ch06.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 6. Output</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt02.html" rel="up" title="Part II. Getting Started"> <link href="ch05s05.html" rel="prev" title="Allow duplicate definitions"> <link href="ch06s02.html" rel="next" title="To Array"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 6. Output</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch05s05.html">Prev</a> </td> <th align="center" width="60%">Part II. Getting Started</th><td align="right" width="20%"> <a accesskey="n" href="ch06s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="developers.output"></a>Chapter 6. Output</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch06.html#developers.output.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch06s02.html">To Array</a></span></dt><dt><span class="sect1"><a href="ch06s03.html">To Inline</a></span></dt><dt><span class="sect1"><a href="ch06s04.html">To File</a></span></dt><dt><span class="sect1"><a href="ch06s05.html">To String</a></span></dt><dt><span class="sect1"><a href="ch06s06.html">Display</a></span></dt> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.purpose"></a>In brief</h2></div> </div> </div> <p>Handle selectors, groups, properties are some basic features of HTML_CSS but getting results in different format should be the final step of your process. We have four/five different functions (depending or render you want to get) : <code class="methodname">HTML_CSS::toArray()</code>, <code class="methodname">HTML_CSS::toInline()</code>, <code class="methodname">HTML_CSS::toFile()</code>, <code class="methodname">HTML_CSS::toString()</code> and <code class="methodname">HTML_CSS::display()</code>. </p> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch05s05.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Allow duplicate definitions </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> To Array</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06s02.html +++ pear/HTML_CSS/docs/TDG/ch06s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>To Array</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch06.html" rel="up" title="Chapter 6. Output"> <link href="ch06.html" rel="prev" title="Chapter 6. Output"> <link href="ch06s03.html" rel="next" title="To Inline"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">To Array</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06.html">Prev</a> </td> <th align="center" width="60%">Chapter 6. Output</th><td align="right" width="20%"> <a accesskey="n" href="ch06s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.array"></a>To Array</h2></div> </div> </div> <p><code class="methodname">HTML_CSS::toArray()</code> must be considered as a debug/help function. An easy way to explore HTML_CSS data structures. </p> <p>For example, explore these definitions : </p> <pre class="programlisting"> html, body { margin: 2px; padding: 0px; border: 0px; } p, body { margin: 4px; } div#header { text-align: center; color: red; } </pre> <p></p> <p>With script : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $strcss = ' html, body { margin: 2px; padding: 0px; border: 0px; } p, body { margin: 4px; } div#header { text-align: center; color: red; } '; $css->parseString($strcss); $arr = $css->toArray(); echo '<pre>'; var_dump($arr); echo '</pre>'; ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch06.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 6. Output </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> To Inline</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06s03.html +++ pear/HTML_CSS/docs/TDG/ch06s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>To Inline</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch06.html" rel="up" title="Chapter 6. Output"> <link href="ch06s02.html" rel="prev" title="To Array"> <link href="ch06s04.html" rel="next" title="To File"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">To Inline</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06s02.html">Prev</a> </td> <th align="center" width="60%">Chapter 6. Output</th><td align="right" width="20%"> <a accesskey="n" href="ch06s04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.inline"></a>To Inline</h2></div> </div> </div> <p><code class="methodname">HTML_CSS::toInline()</code> allow to integrate html tags with styles. </p> <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Warning"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Warning]" src="img/admons/warning.png"></td> <th align="left">Warning</th> </tr> <tr> <td align="left" valign="top"> Dissociate html code and presentation layout (CSS) is more than recommanded </td> </tr> </table> </div> <p></p> <p>Here is a basic example that show a white 'Hello World' on a black background : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $css->setStyle('body', 'background-color', '#0c0c0c'); $css->setStyle('body', 'color', '#ffffff'); echo '<body style="' . $css->toInline('body') . '">'; echo '<p>Hello World</p>'; echo '</body>'; ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch06.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06s04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">To Array </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> To File</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06s04.html +++ pear/HTML_CSS/docs/TDG/ch06s04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>To File</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch06.html" rel="up" title="Chapter 6. Output"> <link href="ch06s03.html" rel="prev" title="To Inline"> <link href="ch06s05.html" rel="next" title="To String"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">To File</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06s03.html">Prev</a> </td> <th align="center" width="60%">Chapter 6. Output</th><td align="right" width="20%"> <a accesskey="n" href="ch06s05.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.file"></a>To File</h2></div> </div> </div> <p><code class="methodname">HTML_CSS::toFile()</code> is probably the most interresting solution. You can create a pure CSS file on the fly. </p> <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Warning"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Warning]" src="img/admons/warning.png"></td> <th align="left">Warning</th> </tr> <tr> <td align="left" valign="top"> If file already exists, it will be replace without warning ! </td> </tr> </table> </div> <p></p> <p>This script will load an existing style sheet and replace the body definition : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $css->parseFile('example.css'); $css->setStyle('body', 'background-color', '#0c0c0c'); $css->setStyle('body', 'color', '#ffffff'); $css->toFile('example.css'); ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch06.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06s05.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">To Inline </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> To String</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s05.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06s05.html +++ pear/HTML_CSS/docs/TDG/ch06s05.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>To String</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch06.html" rel="up" title="Chapter 6. Output"> <link href="ch06s04.html" rel="prev" title="To File"> <link href="ch06s06.html" rel="next" title="Display"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">To String</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06s04.html">Prev</a> </td> <th align="center" width="60%">Chapter 6. Output</th><td align="right" width="20%"> <a accesskey="n" href="ch06s06.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.string"></a>To String</h2></div> </div> </div> <p><code class="methodname">HTML_CSS::toString()</code> is analogous to <code class="methodname">HTML_CSS::toFile()</code> except that result is capture to a PHP variable rather than to a text/css file. </p> <p></p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $strcss = ' ul, body { padding: 1em 2em; } '; $css->parseString($strcss); $css->setGroupStyle(1, 'color', 'red'); $str = $css->toString(); echo $str; // will display // ul, body { padding: 1em 2em; color: red; } ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06s04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch06.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06s06.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">To File </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Display</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s06.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06s06.html +++ pear/HTML_CSS/docs/TDG/ch06s06.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Display</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch06.html" rel="up" title="Chapter 6. Output"> <link href="ch06s05.html" rel="prev" title="To String"> <link href="pt03.html" rel="next" title="Part III. Reference Guide"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Display</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06s05.html">Prev</a> </td> <th align="center" width="60%">Chapter 6. Output</th><td align="right" width="20%"> <a accesskey="n" href="pt03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.display"></a>Display</h2></div> </div> </div> <p><code class="methodname">HTML_CSS::display()</code> is no more no less than just a </p> <pre class="programlisting"> echo $css->toString(); </pre> <p>with cache and charset management for browser output. </p> <p>See also : <code class="methodname">HTML_CSS::setCharset()</code> and <code class="methodname">HTML_CSS::setCache()</code> functions. </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06s05.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch06.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="pt03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">To String </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Part III. Reference Guide</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch07.html +++ pear/HTML_CSS/docs/TDG/ch07.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 7. API - Application Programming Interface</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt03.html" rel="up" title="Part III. Reference Guide"> <link href="pt03.html" rel="prev" title="Part III. Reference Guide"> <link href="re01.html" rel="next" title="HTML_CSS::setXhtmlCompliance"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 7. API - Application Programming Interface</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="pt03.html">Prev</a> </td> <th align="center" width="60%">Part III. Reference Guide</th><td align="right" width="20%"> <a accesskey="n" href="re01.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="reference.api"></a>Chapter 7. API - Application Programming Interface</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch07.html#reference.api.basic">Handle selector and property values</a></span></dt><dt><span class="sect1"><a href="ch07s02.html">Grouping selectors</a></span></dt><dt><span class="sect1"><a href="ch07s03.html">Parsing data sources</a></span></dt><dt><span class="sect1"><a href="ch07s04.html">Output </a></span></dt> </dl> </div> <p>With the class constructor, you have ability to set many options : </p> <div class="itemizedlist"> <ul type="disc"> <li><span class="bold"><strong>xhtml</strong></span> option defines whether element selectors should be automatically lowercased. </li> <li><span class="bold"><strong>tab</strong></span> option defines the string used to indent CSS text. See also: <code class="methodname">HTML_Common::setTab()</code>. </li> <li><span class="bold"><strong>filename</strong></span> option allow to parse an external css file. </li> <li><span class="bold"><strong>cache</strong></span> option controls caching of the page. </li> <li><span class="bold"><strong>online</strong></span> option defines whether to output all properties on one line. </li> <li><span class="bold"><strong>groupsfirst</strong></span> option determines whether to output groups before elements. </li> <li><span class="bold"><strong>allowduplicates</strong></span> option allow to have duplicate rules in selector. </li> </ul> </div> <p></p> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="reference.api.basic"></a>Handle selector and property values</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="refentrytitle"><a href="re07.html"><code class="function">HTML_CSS::getStyle</code></a></span><span class="refpurpose"> - Retrieves the value of a CSS property</span></dt><dt><span class="refentrytitle"><a href="re08.html"><code class="function">HTML_CSS::setStyle</code></a></span><span class="refpurpose"> - Sets or adds a CSS definition</span></dt> </dl> </div> <p>Read and write single selector or even descendant selector is made easy with : </p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="pt03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re01.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Part III. Reference Guide </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setXhtmlCompliance</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch07s02.html +++ pear/HTML_CSS/docs/TDG/ch07s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Grouping selectors</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html" rel="up" title="Chapter 7. API - Application Programming Interface"> <link href="re08.html" rel="prev" title="HTML_CSS::setStyle"> <link href="re09.html" rel="next" title="HTML_CSS::createGroup"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Grouping selectors</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re08.html">Prev</a> </td> <th align="center" width="60%">Chapter 7. API - Application Programming Interface</th><td align="right" width="20%"> <a accesskey="n" href="re09.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="reference.api.group"></a>Grouping selectors</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="refentrytitle"><a href="re09.html"><code class="function">HTML_CSS::createGroup</code></a></span><span class="refpurpose"> - Creates a new CSS definition group. Returns an integer identifying the group.</span></dt><dt><span class="refentrytitle"><a href="re10.html"><code class="function">HTML_CSS::unsetGroup</code></a></span><span class="refpurpose"> - Sets or adds a CSS definition for a CSS definition group</span></dt><dt><span class="refentrytitle"><a href="re11.html"><code class="function">HTML_CSS::getGroupStyle</code></a></span><span class="refpurpose"> - Returns a CSS definition for a CSS definition group</span></dt><dt><span class="refentrytitle"><a href="re12.html"><code class="function">HTML_CSS::setGroupStyle</code></a></span><span class="refpurpose"> - Sets or adds a CSS definition for a CSS definition group</span></dt><dt><span class="refentrytitle"><a href="re13.html"><code class="function">HTML_CSS::addGroupSelector</code></a></span><! span class="refpurpose"> - Adds a selector to a CSS definition group.</span></dt><dt><span class="refentrytitle"><a href="re14.html"><code class="function">HTML_CSS::removeGroupSelector</code></a></span><span class="refpurpose"> - Removes a selector from a group.</span></dt><dt><span class="refentrytitle"><a href="re15.html"><code class="function">HTML_CSS::setSameStyle</code></a></span><span class="refpurpose"> - Sets or changes the properties of new selectors to the values of an existing selector</span></dt> </dl> </div> <p>The most advanced/complex functions are those which handle group of selectors </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re08.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re09.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setStyle</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::createGroup</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch07s03.html +++ pear/HTML_CSS/docs/TDG/ch07s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Parsing data sources</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html" rel="up" title="Chapter 7. API - Application Programming Interface"> <link href="re15.html" rel="prev" title="HTML_CSS::setSameStyle"> <link href="re16.html" rel="next" title="HTML_CSS::parseString"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Parsing data sources</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re15.html">Prev</a> </td> <th align="center" width="60%">Chapter 7. API - Application Programming Interface</th><td align="right" width="20%"> <a accesskey="n" href="re16.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="reference.api.parse"></a>Parsing data sources</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="refentrytitle"><a href="re16.html"><code class="function">HTML_CSS::parseString</code></a></span><span class="refpurpose"> - Parse a textstring that contains css information</span></dt><dt><span class="refentrytitle"><a href="re17.html"><code class="function">HTML_CSS::parseFile</code></a></span><span class="refpurpose"> - Parse a file that contains CSS information</span></dt><dt><span class="refentrytitle"><a href="re18.html"><code class="function">HTML_CSS::parseData</code></a></span><span class="refpurpose"> - Parse data sources, file(s) or string(s), that contains CSS information</span></dt> </dl> </div> <p>Handle data sources are so easy than just one call of these three methods : </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re15.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re16.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setSameStyle</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::parseString</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07s04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch07s04.html +++ pear/HTML_CSS/docs/TDG/ch07s04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Output </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html" rel="up" title="Chapter 7. API - Application Programming Interface"> <link href="re18.html" rel="prev" title="HTML_CSS::parseData"> <link href="re19.html" rel="next" title="HTML_CSS::toArray"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Output </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re18.html">Prev</a> </td> <th align="center" width="60%">Chapter 7. API - Application Programming Interface</th><td align="right" width="20%"> <a accesskey="n" href="re19.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="reference.api.output"></a>Output </h2> </div> </div> </div> <div class="toc"> <dl><dt><span class="refentrytitle"><a href="re19.html"><code class="function">HTML_CSS::toArray</code></a></span><span class="refpurpose"> - Returns the array of CSS properties</span></dt><dt><span class="refentrytitle"><a href="re20.html"><code class="function">HTML_CSS::toInline</code></a></span><span class="refpurpose"> - Generates and returns the CSS properties of an element or class as a string for inline use.</span></dt><dt><span class="refentrytitle"><a href="re21.html"><code class="function">HTML_CSS::toFile</code></a></span><span class="refpurpose"> - Generates CSS and stores it in a file.</span></dt><dt><span class="refentrytitle"><a href="re22.html"><code class="function">HTML_CSS::toString</code></a></span><span class="refpurpose"> - Generates and returns the complete CSS as a string.</span></dt><dt><span class="refentrytitle"><a href="re23.html"><code class="function">HTML_CSS::display</code></a></span><span class="refpurpose"> - Outputs the stylesheet to! the browser.</span></dt> </dl> </div> <p>Send result directly to browser, send it to file or capture to a PHP variable, you will certainly use one of them. </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re18.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re19.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::parseData</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::toArray</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch08.html +++ pear/HTML_CSS/docs/TDG/ch08.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 8. Error Handler</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt03.html" rel="up" title="Part III. Reference Guide"> <link href="re23.html" rel="prev" title="HTML_CSS::display"> <link href="ch08s02.html" rel="next" title="Configuring a Handler "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 8. Error Handler</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re23.html">Prev</a> </td> <th align="center" width="60%">Part III. Reference Guide</th><td align="right" width="20%"> <a accesskey="n" href="ch08s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="reference.errorhandler"></a>Chapter 8. Error Handler</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch08.html#id4786957">Introduction</a></span></dt><dt><span class="sect1"><a href="ch08s02.html">Configuring a Handler </a></span></dt><dt><span class="sect1"><a href="ch08s03.html">Controlling error generation </a></span></dt><dt><span class="sect1"><a href="ch08s04.html">Error Context Display </a></span></dt><dt><span class="sect1"><a href="ch08s05.html">Custom Error Message Generation </a></span></dt> <dd> <dl><dt><span class="sect2"><a href="ch08s05.html#id4788994">Option: message_callback </a></span></dt><dt><span class="sect2"><a href="ch08s05.html#id4789035">Option: context_callback </a></span></dt> </dl></dd> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="id4786957"></a>Introduction</h2></div> </div> </div> <p>The HTML_CSS package is implemented with a flexible error handler plug-in system. You may use any error handler that you want. Using <code class="classname">PEAR_Error</code> object (default), but also the <code class="classname">PEAR_ErrorStack</code> package, or any other error handler you might want to plug in. </p> <p>Without any configuration, each HTML_CSS API error (basic or exception) will raise a <code class="classname">HTML_CSS_Error</code> object that will be return to call script (user script). </p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Tip]" src="img/admons/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> Easy to distinct basic PEAR_Error from other PEAR packages to HTML_CSS errors, even if there is a better and more robust solution: <code class="methodname">HTML_CSS::isError()</code>. But also provide a unique way to retrieve the level of error (warning, error, exception) with the <code class="methodname">HTML_CSS_Error::getLevel() </code> method. </td> </tr> </table> </div> <p></p> <p>As usual you can use the PEAR error API as well. </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $result = $css->setStyle('div', 'color', 5); if (PEAR::isError($result)) { // do something when an error is raised } ?> </pre> <p>and output to screen will give something like : </p> <div class="informalexample"><div class="screenco"> <pre class="screen"> Exception<a name="error.1.level"></a><img alt="1" border="0" src="img/callouts/1.gif">: invalid input, parameter #3 "$value" was expecting "string", instead got "integer"<a name="error.1.message"></a><img alt="2" border="0" src="img/callouts/2.gif"> in html_css->setstyle (file [path_to]\[filename] on line 6)<a name="error.1.context"></a><img alt="3" border="0" src="img/callouts/3.gif"> </pre> <div class="calloutlist"> <table border="0" summary="Callout list"> <tr> <td align="left" valign="top" width="5%"><a href="#error.1.level"><img alt="1" border="0" src="img/callouts/1.gif"></a> </td> <td align="left" valign="top"> <p>error level </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.1.message"><img alt="2" border="0" src="img/callouts/2.gif"></a> </td> <td align="left" valign="top"> <p>message body with context informations </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.1.context"><img alt="3" border="0" src="img/callouts/3.gif"></a> </td> <td align="left" valign="top"> <p>call context </p> </td> </tr> </table> </div> </div> </div> <p>Perhaps this standard behavior is not what you want. Don't worry, you can change everything : </p> <div class="itemizedlist"> <ul type="disc"> <li>display or ignore the error </li> <li>display or hide part of message (error level, body, context) </li> </ul> </div> <p></p> <p></p> <div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Important"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Important]" src="img/admons/important.png"></td> <th align="left">Important</th> </tr> <tr> <td align="left" valign="top"> HTML_CSS obey at <a class="external" href="http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors" title="http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors">display_errors</a> and <a class="external" href="http://www.php.net/manual/en/ref.errorfunc.php#ini.log-errors" title="http://www.php.net/manual/en/ref.errorfunc.php#ini.log-errors">log_errors</a> protocol </td> </tr> </table> </div> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re23.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch08s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::display</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Configuring a Handler </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch08s02.html +++ pear/HTML_CSS/docs/TDG/ch08s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Configuring a Handler </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch08.html" rel="up" title="Chapter 8. Error Handler"> <link href="ch08.html" rel="prev" title="Chapter 8. Error Handler"> <link href="ch08s03.html" rel="next" title="Controlling error generation "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Configuring a Handler </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch08.html">Prev</a> </td> <th align="center" width="60%">Chapter 8. Error Handler</th><td align="right" width="20%"> <a accesskey="n" href="ch08s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="id4787773"></a>Configuring a Handler </h2> </div> </div> </div> <p>A error handler's configuration is determined by the arguments used in its construction. Here's an overview of these parameters. </p> <pre class="programlisting"> require_once 'HTML/CSS.php'; $errorConf = array('error_handler' => 'myErrorHandler', 'push_callback' => 'myError', // ... more options ); $css = new HTML_CSS(null, $errorConf); </pre> <p></p> <div class="table"><a name="id4787802"></a> <p class="title"><b>Table 8.1. Error Handler configuration parameters </b></p> <table border="1" summary="Error Handler configuration parameters "> <colgroup><col><col><col></colgroup> <thead> <tr> <th>Option</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>error_handler</td> <td>callback</td> <td> A valid callback (function) to manage errors raised by the <code class="methodname">HTML_CSS::raiseError()</code> method. Default is: <code class="methodname">HTML_CSS::_errorHandler</code> </td> </tr> <tr> <td>push_callback</td> <td>callback</td> <td> A valid callback (function) that decides to following action. Default return: <code class="constant">PEAR_ERROR_DIE</code> if exception, <code class="constant">NULL</code> otherwise. </td> </tr> <tr> <td>message_callback</td> <td>callback</td> <td> A valid callback (function) to control message generation. Default is: <code class="methodname">HTML_CSS_Error::_msgCallback</code> </td> </tr> <tr> <td>context_callback</td> <td>callback</td> <td> A valid callback (function) to control error context generation. Default is: <code class="methodname">HTML_CSS_Error::getBacktrace</code> </td> </tr> <tr> <td>handler</td> <td>mixed</td> <td> any handler-specific settings </td> </tr> </tbody> </table> </div> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch08.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch08.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch08s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 8. Error Handler </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Controlling error generation </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch08s03.html +++ pear/HTML_CSS/docs/TDG/ch08s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Controlling error generation </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch08.html" rel="up" title="Chapter 8. Error Handler"> <link href="ch08s02.html" rel="prev" title="Configuring a Handler "> <link href="ch08s04.html" rel="next" title="Error Context Display "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Controlling error generation </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch08s02.html">Prev</a> </td> <th align="center" width="60%">Chapter 8. Error Handler</th><td align="right" width="20%"> <a accesskey="n" href="ch08s04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="id4787943"></a>Controlling error generation </h2> </div> </div> </div> <p>There are many scenarios in which fine-grained control over error raising is absolutely necessary. </p> <p>The first level to control error generation is the <code class="filename">php.ini</code> directives <span class="emphasis"><em>display_errors</em></span> and <span class="emphasis"><em>log_errors</em></span>. When these directives are set to <code class="constant">TRUE</code>, then browser and file outputs are effective. </p> <p></p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Tip]" src="img/admons/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> If you want to ignore all errors raised (no display, no logs) and avoid to include PEAR core class, then you should have something like : <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; function myErrorHandler() { return null; } $errorConf = array('error_handler' => 'myErrorHandler'); $css = new HTML_CSS(null, $errorConf); // ... ?> </pre> </td> </tr> </table> </div> <p></p> <p>With <span class="bold"><strong>push_callback</strong></span> option, you can decides to stop script execution (as done with exceptions by default: returns <code class="constant">PEAR_ERROR_DIE</code> constant), or continue without filtering (returns <code class="constant">NULL</code>). </p> <p>If you want to write your own callback function for the <span class="emphasis"><em>push_callback</em></span> option, this one should have two arguments: first one will get the error code, and second will get error level. These are all the necessary informations to do a filtering. Example that follow show how to be aware that a script use wrong argument data type. </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; function myErrorFilter($code, $level) { if ($code === HTML_CSS_ERROR_INVALID_INPUT) { error_log('script: '.__FILE__.' used wrong argument data type', 1, 'admin@yoursite.com'); } return null; } $errorConf = array('push_callback' => 'myErrorFilter'); $css = new HTML_CSS(null, $errorConf); // ... ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch08s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch08.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch08s04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Configuring a Handler </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Error Context Display </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch08s04.html +++ pear/HTML_CSS/docs/TDG/ch08s04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Error Context Display </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch08.html" rel="up" title="Chapter 8. Error Handler"> <link href="ch08s03.html" rel="prev" title="Controlling error generation "> <link href="ch08s05.html" rel="next" title="Custom Error Message Generation "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Error Context Display </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch08s03.html">Prev</a> </td> <th align="center" width="60%">Chapter 8. Error Handler</th><td align="right" width="20%"> <a accesskey="n" href="ch08s05.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="id4788055"></a>Error Context Display </h2> </div> </div> </div> <p>In some cases, you may want to customize error generation. For instance, for each error (basic/exception), it is useful to include file, line number, and class/function context information in order to trace it. The default option will be sufficient for most cases but you want perhaps customize the output format (render) of context information. </p> <p>With this example we will change display and log renders. </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $displayConfig = array( 'lineFormat' => '<b>%1$s</b>: %2$s<br />%3$s', 'contextFormat' => '<b>File:</b> %1$s <br />' . '<b>Line:</b> %2$s <br />' . '<b>Function:</b> %3$s ' ); $logConfig = array( 'lineFormat' => '%1$s %2$s [%3$s] %4$s', 'timeFormat' => '%b' ); $prefs = array( 'handler' => array('display' => $displayConfig, 'log' => $logConfig )); $css = new HTML_CSS(null, $prefs); // ... $result = $css->setStyle('div', 'color', 5); ?> </pre> <p></p> <p>Display render will give something like: </p> <div class="informalexample"><div class="screenco"> <pre class="screen"> Exception<a name="error.2.level"></a><img alt="1" border="0" src="img/callouts/1.gif">: invalid input, parameter #3 "$value" was expecting "string", instead got "integer"<a name="error.2.message"></a><img alt="2" border="0" src="img/callouts/2.gif"> File: [path_to]\[filename] <a name="error.2.context"></a><img alt="3" border="0" src="img/callouts/3.gif"> Line: 22 <a name="error.2.context"></a><img alt="3" border="0" src="img/callouts/3.gif"> Function: html_css->setstyle <a name="error.2.context"></a><img alt="3" border="0" src="img/callouts/3.gif"> </pre> <div class="calloutlist"> <table border="0" summary="Callout list"> <tr> <td align="left" valign="top" width="5%"><a href="#error.2.level"><img alt="1" border="0" src="img/callouts/1.gif"></a> </td> <td align="left" valign="top"> <p>error level </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.2.message"><img alt="2" border="0" src="img/callouts/2.gif"></a> </td> <td align="left" valign="top"> <p>message body with context informations </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.2.context"><img alt="3" border="0" src="img/callouts/3.gif"></a> </td> <td align="left" valign="top"> <p>call context (file, line, function) </p> </td> </tr> </table> </div> </div> </div> <p>Log render will give something like: </p> <div class="informalexample"><div class="screenco"> <pre class="screen"> Jun 127.0.0.1<a name="error.3.context"></a><img alt="1" border="0" src="img/callouts/1.gif"> [exception<a name="error.3.level"></a><img alt="2" border="0" src="img/callouts/2.gif">] invalid input, parameter #3 "$value" was expecting "string", instead got "integer"<a name="error.3.message"></a><img alt="3" border="0" src="img/callouts/3.gif"> </pre> <div class="calloutlist"> <table border="0" summary="Callout list"> <tr> <td align="left" valign="top" width="5%"><a href="#error.3.context"><img alt="1" border="0" src="img/callouts/1.gif"></a> </td> <td align="left" valign="top"> <p>client ip address and execution date </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.3.level"><img alt="2" border="0" src="img/callouts/2.gif"></a> </td> <td align="left" valign="top"> <p>error level </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.3.message"><img alt="3" border="0" src="img/callouts/3.gif"></a> </td> <td align="left" valign="top"> <p>message body with context informations </p> </td> </tr> </table> </div> </div> </div> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Note]" src="img/admons/note.png"></td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> To have both display and log output, check the <code class="filename">php.ini</code><span class="emphasis"><em>display_errors</em></span> and <span class="emphasis"><em>log_errors</em></span> values : must be set to <code class="constant">TRUE</code>. </td> </tr> </table> </div> <p>Let review, step by step, how to get such results. </p> <p>Remember that with default classes, there are two drivers : <span class="emphasis"><em>display</em></span> and <span class="emphasis"><em>log</em></span> that have both their own configuration parameters. You can override these parameters values with the <span class="bold"><strong>handler</strong></span> entry in the hash of second argument of the HTML_CSS class constructor. </p> <p>We did it here with the <em class="parameter"><code>$prefs</code></em> variable; its a two keys associative array. First key <span class="emphasis"><em>display</em></span> defines the display driver values, and the second key <span class="emphasis"><em>log</em></span> defines the log driver values. </p> <p>Review the <span class="emphasis"><em>display</em></span> driver custom values. Only two keys: <span class="simplelist">lineFormat, contextFormat</span> are redefined, thats means remains key <span class="simplelist">eol</span> keep its default value. See table below. </p> <p></p> <div class="table"><a name="id4788534"></a> <p class="title"><b>Table 8.2. Display driver configuration parameters </b></p> <table border="1" summary="Display driver configuration parameters "> <colgroup><col><col><col><col></colgroup> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Default</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>eol</td> <td>string</td> <td><br />\n</td> <td>The end-on-line character sequence </td> </tr> <tr> <td>lineFormat</td> <td>string</td> <td><b>%1$s</b>: %2$s %3$s</td> <td>Log line format specification: <div class="itemizedlist"> <ul type="disc"> <li>1$ = error level</li> <li>2$ = error message (body)</li> <li>3$ = error context</li> </ul> </div> </td> </tr> <tr> <td>contextFormat</td> <td>string</td> <td> in <b>%3$s</b> (file <b>%1$s</b> on line <b>%2$s</b>) </td> <td>Context format (class, file, line) specification: <div class="itemizedlist"> <ul type="disc"> <li>1$ = script file name </li> <li>2$ = line in script file </li> <li>3$ = class/method names </li> </ul> </div> </td> </tr> </tbody> </table> </div> <p></p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Tip]" src="img/admons/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> If you don't wish to see context information in the error message, then remove the parameter %3$ in the <span class="emphasis"><em>lineFormat</em></span> option even if <span class="emphasis"><em>contextFormat</em></span> is set. </td> </tr> </table> </div> <p></p> <p>Review now the <span class="emphasis"><em>log</em></span> driver custom values. Only two keys <span class="simplelist">lineFormat, timeFormat</span> are redefined, thats means six remains keys <span class="simplelist">eol, contextFormat, ident, message_type, destination, extra_headers</span> keep their default values. See table below. </p> <p></p> <div class="table"><a name="id4788725"></a> <p class="title"><b>Table 8.3. Log driver configuration parameters </b></p> <table border="1" summary="Log driver configuration parameters "> <colgroup><col><col><col><col></colgroup> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Default</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>eol</td> <td>string</td> <td>\n</td> <td>The end-on-line character sequence </td> </tr> <tr> <td>lineFormat</td> <td>string</td> <td>%1$s %2$s [%3$s] %4$s %5$s </td> <td>Log line format specification: <div class="itemizedlist"> <ul type="disc"> <li>$1 = time error</li> <li>2$ = ident (client ip)</li> <li>3$ = error level </li> <li>4$ = error message (body) </li> <li>5$ = error context </li> </ul> </div> </td> </tr> <tr> <td>contextFormat</td> <td>string</td> <td>in %3$s (file %1$s on line %2$s) </td> <td>Context format (class, file, line) specification: <div class="itemizedlist"> <ul type="disc"> <li>1$ = script file name </li> <li>2$ = line in script file </li> <li>3$ = class/method names </li> </ul> </div> </td> </tr> <tr> <td>timeFormat</td> <td>string</td> <td>%b %d %H:%M:%S </td> <td>Time stamp format used by <a class="external" href="http://www.php.net/manual-lookup.php?pattern=strftime" title="http://www.php.net/manual-lookup.php?pattern=strftime">strftime</a> </td> </tr> <tr> <td>ident</td> <td>string</td> <td>REMOTE_ADDR </td> <td>Client IP </td> </tr> <tr> <td>message_type</td> <td>string</td> <td>3 </td> <td>Destination type used by <a class="external" href="http://www.php.net/manual-lookup.php?pattern=error_log" title="http://www.php.net/manual-lookup.php?pattern=error_log">error_log</a> </td> </tr> <tr> <td>destination</td> <td>string</td> <td>html_css_error.log </td> <td>Destination name used by <a class="external" href="http://www.php.net/manual-lookup.php?pattern=error_log" title="http://www.php.net/manual-lookup.php?pattern=error_log">error_log</a> </td> </tr> <tr> <td>extra_headers</td> <td>string</td> <td><code class="constant">NULL</code> </td> <td>Extra headers depending of destination type </td> </tr> </tbody> </table> </div> <p></p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Tip]" src="img/admons/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> If you don't wish to see context information in the error message, then remove the parameter %5$ in the <span class="emphasis"><em>lineFormat</em></span> option even if <span class="emphasis"><em>contextFormat</em></span> is set. </td> </tr> </table> </div> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch08s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch08.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch08s05.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Controlling error generation </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Custom Error Message Generation </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s05.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch08s05.html +++ pear/HTML_CSS/docs/TDG/ch08s05.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Custom Error Message Generation </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch08.html" rel="up" title="Chapter 8. Error Handler"> <link href="ch08s04.html" rel="prev" title="Error Context Display "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Custom Error Message Generation </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch08s04.html">Prev</a> </td> <th align="center" width="60%">Chapter 8. Error Handler</th><td align="right" width="20%"> </td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="id4788981"></a>Custom Error Message Generation </h2> </div> </div> </div> <div class="toc"> <dl><dt><span class="sect2"><a href="ch08s05.html#id4788994">Option: message_callback </a></span></dt><dt><span class="sect2"><a href="ch08s05.html#id4789035">Option: context_callback </a></span></dt> </dl> </div> <p>There are two methods of <code class="classname">HTML_CSS_Error</code> designed for use with generating error messages efficiently. To use them, you must set the options below in the HTML_CSS class constructor (argument #2): </p> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4788994"></a>Option: message_callback </h3> </div> </div> </div> <p>The default message handling callback (<code class="methodname">HTML_CSS_Error::_getErrorMessage</code>) get an array mapping error codes to error message templates, like so: </p> <pre class="programlisting"> $messages = array( HTML_CSS_ERROR_UNKNOWN => 'unknown error', HTML_CSS_ERROR_INVALID_INPUT => 'invalid input, parameter #%paramnum% ' . '"%var%" was expecting ' . '"%expected%", instead got "%was%"' ); </pre> <p>Basically, if a variable name is enclosed in percent signs (%), it will be replaced with the value passed in the associative array. </p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4789035"></a>Option: context_callback </h3> </div> </div> </div> <p>The default context handling callback (<code class="methodname">HTML_CSS_Error::getBackTrace</code>) gets an array of execution functions and discovers where the error was generated. </p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch08s04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch08.html">Up</a></td> <td align="right" width="40%"> </td> </tr> <tr> <td align="left" valign="top" width="40%">Error Context Display </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/index.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/index.html +++ pear/HTML_CSS/docs/TDG/index.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS Manual</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pr01.html" rel="next" title="Preface"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">HTML_CSS Manual</th> </tr> <tr> <td align="left" width="20%"> </td> <th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="pr01.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="book" lang="en"><div class="titlepage"><div><div> <h1 class="title"><a name="cssdoc"></a>HTML_CSS Manual</h1></div> <div> <h2 class="subtitle">First Edition</h2></div> <div><div class="authorgroup"> <h4 class="editedby">Edited by</h4> <h3 class="editor"><span class="firstname">Laurent</span> <span class="surname">Laville</span></h3></div> </div> <div> <p class="copyright">Copyright © 2006 Laurent Laville</p></div> <div><div class="legalnotice"><a name="copyright"></a> <p>This work is licensed under the Creative Commons Attribution License. To view a copy of this license, visit <a class="external" href="http://creativecommons.org/licenses/by/2.0/" title="http://creativecommons.org/licenses/by/2.0/">http://creativecommons.org/licenses/by/2.0/</a>. </p> </div> </div> <div><div class="revhistory"> <table border="1" summary="Revision history" width="100%"> <tr> <th align="left" colspan="2" valign="top"><b>Revision History</b></th> </tr> <tr> <td align="left">Revision 1.0.0</td> <td align="left">June 24, 2006</td> </tr> <tr> <td align="left" colspan="2">The first edition of this Guide is now completed. It cover version 1.0.0 (stable) of HTML_CSS. </td> </tr> </table> </div> </div> </div> <hr></div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="preface"><a href="pr01.html">Preface</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="pr01.html#preface.structure">Organization of This Book</a></span></dt><dt><span class="sect1"><a href="pr01s02.html">Pre-requisites</a></span></dt> </dl></dd><dt><span class="part"><a href="pt01.html">I. Introduction</a></span></dt> <dd> <dl><dt><span class="chapter"><a href="ch01.html">1. About HTML_CSS</a></span></dt><dt><span class="chapter"><a href="ch02.html">2. FAQ - Frequently Asked Questions</a></span></dt> </dl></dd><dt><span class="part"><a href="pt02.html">II. Getting Started</a></span></dt> <dd> <dl><dt><span class="chapter"><a href="ch03.html">3. Overview</a></span></dt><dt><span class="chapter"><a href="ch04.html">4. Grouping selectors</a></span></dt><dt><span class="chapter"><a href="ch05.html">5. Parsing data sources</a></span></dt><dt><span class="chapter"><a href="ch06.html">6. Output</a></span></dt> </dl></dd><dt><span class="part"><a href="pt03.html">III. Reference Guide</a></span></dt> <dd> <dl><dt><span class="chapter"><a href="ch07.html">7. API - Application Programming Interface</a></span></dt><dt><span class="chapter"><a href="ch08.html">8. Error Handler</a></span></dt> </dl></dd> </dl> </div> <div class="list-of-figures"> <p><b>List of Figures</b></p> <dl><dt>3.1. <a href="ch03s02.html#id4769744">Rule structure </a></dt> </dl> </div> <div class="list-of-tables"> <p><b>List of Tables</b></p> <dl><dt>8.1. <a href="ch08s02.html#id4787802">Error Handler configuration parameters </a></dt><dt>8.2. <a href="ch08s04.html#id4788534">Display driver configuration parameters </a></dt><dt>8.3. <a href="ch08s04.html#id4788725">Log driver configuration parameters </a></dt> </dl> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"> </td> <td align="center" width="20%"> </td> <td align="right" width="40%"> <a accesskey="n" href="pr01.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"> </td> <td align="center" width="20%"> </td> <td align="right" valign="top" width="40%"> Preface</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pr01.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/pr01.html +++ pear/HTML_CSS/docs/TDG/pr01.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Preface</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="index.html" rel="up" title="HTML_CSS Manual"> <link href="index.html" rel="prev" title="HTML_CSS Manual"> <link href="pr01s02.html" rel="next" title="Pre-requisites"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Preface</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="index.html">Prev</a> </td> <th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="pr01s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="preface" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="preface"></a>Preface</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="pr01.html#preface.structure">Organization of This Book</a></span></dt><dt><span class="sect1"><a href="pr01s02.html">Pre-requisites</a></span></dt> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="preface.structure"></a>Organization of This Book</h2></div> </div> </div> <p>This book is divided into three main parts, they are: </p> <p></p> <div class="itemizedlist"> <ul type="disc"> <li> <p><a href="pt01.html" title="Part I. Introduction">Introduction</a> </p> <p>This section contains a gentle introduction to what HTML_CSS is and has to offer. Included is general information about installing and using this PEAR package, and answers to frequently asked questions. </p></li> <li> <p><a href="pt02.html" title="Part II. Getting Started">Getting Started</a> </p> <p>This section is intended to provide a quick introduction to get started understanding, installing, and running the bundle examples. </p></li> <li> <p><a href="pt03.html" title="Part III. Reference Guide">Reference Guide</a> </p> <p>This section describes every API in the HTML_CSS package. The description of each function may contain some or all of the following parts: </p> <div class="itemizedlist"> <ul type="circle"> <li> <p>Synopsis</p> <p>Shows the structure and prototype of the function. </p></li> <li> <p>Description</p> <p>Gives a description about what the function does. </p></li> <li> <p>Parameter</p> <p>Describes each parameter for the function along with the paramater types and names. Both required and optional parameters are listed. </p></li> <li> <p>Returns</p> <p>Describes the returned value, if the function doesn't fail. </p></li> <li> <p>Throws</p> <p>Describes the returned <code class="classname">PEAR_Error</code> objects, if the function fails. </p></li> <li> <p>Note</p> <p>Additional notes and information about the function. An example note would be if the function can be called statically. </p></li> <li> <p>See</p> <p>Links to other related functions or manual entries. </p></li> <li> <p>Example</p> <p>An example use of the function or class. </p></li> </ul> </div> <p></p></li> </ul> </div> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="index.html">Prev</a> </td> <td align="center" width="20%"> </td> <td align="right" width="40%"> <a accesskey="n" href="pr01s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">HTML_CSS Manual </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Pre-requisites</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pr01s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/pr01s02.html +++ pear/HTML_CSS/docs/TDG/pr01s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Pre-requisites</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pr01.html" rel="up" title="Preface"> <link href="pr01.html" rel="prev" title="Preface"> <link href="pt01.html" rel="next" title="Part I. Introduction"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Pre-requisites</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="pr01.html">Prev</a> </td> <th align="center" width="60%">Preface</th><td align="right" width="20%"> <a accesskey="n" href="pt01.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="preface.requires"></a>Pre-requisites</h2></div> </div> </div> <p>It is assumed that you have installed both <a class="external" href="http://www.php.net/" title="http://www.php.net/">PHP</a> and <a class="external" href="http://pear.php.net/" title="http://pear.php.net/">PEAR</a>, and that you have rudimentary knowledge of PHP, HTML and CSS. </p> <p>It is also assumed that your PHP scripts are correctly interpreted by your web server. In most case it will be probably Apache, but you may also have IIS. HTML_CSS runs both on Windows and *nix. </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="pr01.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pr01.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="pt01.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Preface </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Part I. Introduction</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt01.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/pt01.html +++ pear/HTML_CSS/docs/TDG/pt01.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Part I. Introduction</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="index.html" rel="up" title="HTML_CSS Manual"> <link href="pr01s02.html" rel="prev" title="Pre-requisites"> <link href="ch01.html" rel="next" title="Chapter 1. About HTML_CSS"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Part I. Introduction</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="pr01s02.html">Prev</a> </td> <th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch01.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="part" lang="en"><div class="titlepage"><div><div> <h1 class="title"><a name="about"></a>Part I. Introduction</h1></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="chapter"><a href="ch01.html">1. About HTML_CSS</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch01.html#intro.qfams">What is HTML_CSS ?</a></span></dt><dt><span class="sect1"><a href="ch01s02.html">Intended Audience</a></span></dt><dt><span class="sect1"><a href="ch01s03.html">Why use HTML_CSS ?</a></span></dt> </dl></dd><dt><span class="chapter"><a href="ch02.html">2. FAQ - Frequently Asked Questions</a></span></dt> </dl> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="pr01s02.html">Prev</a> </td> <td align="center" width="20%"> </td> <td align="right" width="40%"> <a accesskey="n" href="ch01.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Pre-requisites </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 1. About HTML_CSS</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/pt02.html +++ pear/HTML_CSS/docs/TDG/pt02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Part II. Getting Started</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="index.html" rel="up" title="HTML_CSS Manual"> <link href="ch02.html" rel="prev" title="Chapter 2. FAQ - Frequently Asked Questions"> <link href="ch03.html" rel="next" title="Chapter 3. Overview"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Part II. Getting Started</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch02.html">Prev</a> </td> <th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="part" lang="en"><div class="titlepage"><div><div> <h1 class="title"><a name="guide.developers"></a>Part II. Getting Started</h1></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="chapter"><a href="ch03.html">3. Overview</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch03.html#developers.intro.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch03s02.html">Basic concepts</a></span></dt> </dl></dd><dt><span class="chapter"><a href="ch04.html">4. Grouping selectors</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch04.html#developers.group.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch04s02.html">Create group</a></span></dt><dt><span class="sect1"><a href="ch04s03.html">Handle group selector</a></span></dt> </dl></dd><dt><span class="chapter"><a href="ch05.html">5. Parsing data sources</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch05.html#developers.parse.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch05s02.html">Parse a simple string</a></span></dt><dt><span class="sect1"><a href="ch05s03.html">Parse a file contents</a></span></dt><dt><span class="sect1"><a href="ch05s04.html">Parse multi data sources </a></span></dt><dt><span class="sect1"><a href="ch05s05.html">Allow duplicate definitions</a></span></dt> </dl></dd><dt><span class="chapter"><a href="ch06.html">6. Output</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch06.html#developers.output.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch06s02.html">To Array</a></span></dt><dt><span class="sect1"><a href="ch06s03.html">To Inline</a></span></dt><dt><span class="sect1"><a href="ch06s04.html">To File</a></span></dt><dt><span class="sect1"><a href="ch06s05.html">To String</a></span></dt><dt><span class="sect1"><a href="ch06s06.html">Display</a></span></dt> </dl></dd> </dl> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch02.html">Prev</a> </td> <td align="center" width="20%"> </td> <td align="right" width="40%"> <a accesskey="n" href="ch03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 2. FAQ - Frequently Asked Questions </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 3. Overview</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/pt03.html +++ pear/HTML_CSS/docs/TDG/pt03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Part III. Reference Guide</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="index.html" rel="up" title="HTML_CSS Manual"> <link href="ch06s06.html" rel="prev" title="Display"> <link href="ch07.html" rel="next" title="Chapter 7. API - Application Programming Interface"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Part III. Reference Guide</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06s06.html">Prev</a> </td> <th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch07.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="part" lang="en"><div class="titlepage"><div><div> <h1 class="title"><a name="guide.reference"></a>Part III. Reference Guide</h1></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="chapter"><a href="ch07.html">7. API - Application Programming Interface</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch07.html#reference.api.basic">Handle selector and property values</a></span></dt><dt><span class="sect1"><a href="ch07s02.html">Grouping selectors</a></span></dt><dt><span class="sect1"><a href="ch07s03.html">Parsing data sources</a></span></dt><dt><span class="sect1"><a href="ch07s04.html">Output </a></span></dt> </dl></dd><dt><span class="chapter"><a href="ch08.html">8. Error Handler</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch08.html#id4786957">Introduction</a></span></dt><dt><span class="sect1"><a href="ch08s02.html">Configuring a Handler </a></span></dt><dt><span class="sect1"><a href="ch08s03.html">Controlling error generation </a></span></dt><dt><span class="sect1"><a href="ch08s04.html">Error Context Display </a></span></dt><dt><span class="sect1"><a href="ch08s05.html">Custom Error Message Generation </a></span></dt> </dl></dd> </dl> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06s06.html">Prev</a> </td> <td align="center" width="20%"> </td> <td align="right" width="40%"> <a accesskey="n" href="ch07.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Display </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 7. API - Application Programming Interface</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re01.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re01.html +++ pear/HTML_CSS/docs/TDG/re01.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setXhtmlCompliance</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4771361" rel="up" title=""> <link href="ch07.html" rel="prev" title="Chapter 7. API - Application Programming Interface"> <link href="re02.html" rel="next" title="HTML_CSS::parseFile"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setXhtmlCompliance</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch07.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setxhtmlcompliance"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setXhtmlCompliance</code> — Sets XHTML compliance</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setXhtmlCompliance</b>(</code></td> <td><var class="pdparam">$value</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>bool </td> <td><var class="pdparam">$value</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setxhtmlcompliance.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setxhtmlcompliance.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$value</code></em> </span></dt> <dd> <p>Boolean value </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setxhtmlcompliance.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setxhtmlcompliance.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.2 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch07.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4771361">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 7. API - Application Programming Interface </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::parseFile</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re02.html +++ pear/HTML_CSS/docs/TDG/re02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::parseFile</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4772368" rel="up" title=""> <link href="re01.html" rel="prev" title="HTML_CSS::setXhtmlCompliance"> <link href="re03.html" rel="next" title="HTML_CSS::setCache"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::parseFile</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re01.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.parsefile"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::parseFile</code> — Parse a file that contains CSS information</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::parseFile</b>(</code></td> <td><var class="pdparam">$filename</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$filename</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$filename</code></em> </span></dt> <dd> <p>file to parse </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allow or disallow duplicates. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re16.html" title="HTML_CSS::parseString"><code class="function">HTML_CSS::parseString</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_FILE </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re01.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4772368">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setXhtmlCompliance</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setCache</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re03.html +++ pear/HTML_CSS/docs/TDG/re03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setCache</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4773194" rel="up" title=""> <link href="re02.html" rel="prev" title="HTML_CSS::parseFile"> <link href="re04.html" rel="next" title="HTML_CSS::setSingleLineOutput"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setCache</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re02.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setcache"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setCache</code> — Defines if the document should be cached by the browser. Defaults to false.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setCache</b>(</code></td> <td><var class="pdparam"> $cache = TRUE</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>bool </td> <td><var class="pdparam"> $cache = TRUE</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setcache.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setcache.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$cache</code></em> </span></dt> <dd> <p>(optional) </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setcache.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setcache.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4773194">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::parseFile</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setSingleLineOutput</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re04.html +++ pear/HTML_CSS/docs/TDG/re04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setSingleLineOutput</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4772557" rel="up" title=""> <link href="re03.html" rel="prev" title="HTML_CSS::setCache"> <link href="re05.html" rel="next" title="HTML_CSS::setOutputGroupsFirst"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setSingleLineOutput</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re03.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re05.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setsinglelineoutput"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setSingleLineOutput</code> — Determines whether definitions are output single line or multiline</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setSingleLineOutput</b>(</code></td> <td><var class="pdparam">$value</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$value </var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td> Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 </td> <td><var class="pdparam">$value</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam">$value </var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsinglelineoutput.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsinglelineoutput.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type"></span> <em class="parameter"><code>$value</code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$value </code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsinglelineoutput.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsinglelineoutput.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.3 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4772557">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re05.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setCache</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setOutputGroupsFirst</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re05.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re05.html +++ pear/HTML_CSS/docs/TDG/re05.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setOutputGroupsFirst</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4773622" rel="up" title=""> <link href="re04.html" rel="prev" title="HTML_CSS::setSingleLineOutput"> <link href="re06.html" rel="next" title="constructor HTML_CSS::HTML_CSS"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setOutputGroupsFirst</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re04.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re06.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setoutputgroupsfirst"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setOutputGroupsFirst</code> — Determines whether groups are output before elements or not</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setOutputGroupsFirst</b>(</code></td> <td><var class="pdparam">$value</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$value </var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td> Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 </td> <td><var class="pdparam">$value</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam">$value </var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setoutputgroupsfirst.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setoutputgroupsfirst.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type"></span> <em class="parameter"><code>$value</code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$value </code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setoutputgroupsfirst.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setoutputgroupsfirst.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.3 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4773622">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re06.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setSingleLineOutput</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> constructor <code class="function">HTML_CSS::HTML_CSS</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re06.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re06.html +++ pear/HTML_CSS/docs/TDG/re06.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>constructor HTML_CSS::HTML_CSS</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4771353" rel="up" title=""> <link href="re05.html" rel="prev" title="HTML_CSS::setOutputGroupsFirst"> <link href="re07.html" rel="next" title="HTML_CSS::getStyle"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">constructor <code class="function">HTML_CSS::HTML_CSS</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re05.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re07.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.html-css"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p>constructor <code class="function">HTML_CSS::HTML_CSS</code> — Class constructor</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void constructor <b class="fsfunc">HTML_CSS::HTML_CSS</b>(</code></td> <td><var class="pdparam"> $attributes = array()</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $errorPrefs = array()</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$prefs</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>array </td> <td><var class="pdparam"> $attributes = array()</var>;</td> </tr> <tr> <td> Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 </td> <td><var class="pdparam"> $errorPrefs = array()</var>;</td> </tr> <tr> <td>array </td> <td><var class="pdparam">$prefs</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.html-css.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.html-css.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">array</span> <em class="parameter"><code>$attributes</code></em> </span></dt> <dd> <p>(optional) Pass options to the constructor. Valid options are : </p> <div class="itemizedlist"> <ul type="disc"> <li> <p>xhtml (sets xhtml compliance),</p></li> <li> <p>tab (sets indent string),</p></li> <li> <p>filename (name of file to be parsed),</p></li> <li> <p>cache (determines whether the nocache headers are sent),</p></li> <li> <p>oneline (whether to output each definition on one line),</p></li> <li> <p>groupsfirst (determines whether to output groups before elements)</p></li> <li> <p>allowduplicates (allow to have duplicate rules in selector)</p></li> </ul> </div> <p></p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type"></span> <em class="parameter"><code>$errorPrefs</code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">array</span> <em class="parameter"><code>$prefs</code></em> </span></dt> <dd> <p>(optional) has to configure error handler </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.html-css.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> no exceptions thrown </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.html-css.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re05.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4771353">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re07.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setOutputGroupsFirst</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::getStyle</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re07.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re07.html +++ pear/HTML_CSS/docs/TDG/re07.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::getStyle</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#reference.api.basic" rel="up" title="Handle selector and property values"> <link href="re06.html" rel="prev" title="constructor HTML_CSS::HTML_CSS"> <link href="re08.html" rel="next" title="HTML_CSS::setStyle"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::getStyle</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re06.html">Prev</a> </td> <th align="center" width="60%">Handle selector and property values</th><td align="right" width="20%"> <a accesskey="n" href="re08.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.getstyle"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::getStyle</code> — Retrieves the value of a CSS property</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">mixed|PEAR_Error <b class="fsfunc">HTML_CSS::getStyle</b>(</code></td> <td><var class="pdparam">$element</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$property</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$element</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$property</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getstyle.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getstyle.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$element</code></em> </span></dt> <dd> <p>Element (or class) to be defined </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$property</code></em> </span></dt> <dd> <p>Property defined </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getstyle.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re08.html" title="HTML_CSS::setStyle"><code class="function">HTML_CSS::setStyle</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getstyle.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_ELEMENT, HTML_CSS_ERROR_NO_ELEMENT_PROPERTY </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getstyle.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re06.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#reference.api.basic">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re08.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">constructor <code class="function">HTML_CSS::HTML_CSS</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setStyle</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re08.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re08.html +++ pear/HTML_CSS/docs/TDG/re08.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setStyle</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#reference.api.basic" rel="up" title="Handle selector and property values"> <link href="re07.html" rel="prev" title="HTML_CSS::getStyle"> <link href="ch07s02.html" rel="next" title="Grouping selectors"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setStyle</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re07.html">Prev</a> </td> <th align="center" width="60%">Handle selector and property values</th><td align="right" width="20%"> <a accesskey="n" href="ch07s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setstyle"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setStyle</code> — Sets or adds a CSS definition</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setStyle</b>(</code></td> <td><var class="pdparam">$element</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$property</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$value</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$element</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$property</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$value</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setstyle.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setstyle.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$element</code></em> </span></dt> <dd> <p>Element (or class) to be defined </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$property</code></em> </span></dt> <dd> <p>Property defined </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$value</code></em> </span></dt> <dd> <p>Value assigned </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allow or disallow duplicates. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setstyle.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re07.html" title="HTML_CSS::getStyle"><code class="function">HTML_CSS::getStyle</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setstyle.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setstyle.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re07.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#reference.api.basic">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch07s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::getStyle</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Grouping selectors</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re09.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re09.html +++ pear/HTML_CSS/docs/TDG/re09.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::createGroup</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="ch07s02.html" rel="prev" title="Grouping selectors"> <link href="re10.html" rel="next" title="HTML_CSS::unsetGroup"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::createGroup</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch07s02.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re10.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.creategroup"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::createGroup</code> — Creates a new CSS definition group. Returns an integer identifying the group.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">mixed|PEAR_Error <b class="fsfunc">HTML_CSS::createGroup</b>(</code></td> <td><var class="pdparam">$selectors</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $group = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$selectors</var>;</td> </tr> <tr> <td>mixed </td> <td><var class="pdparam"> $group = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.creategroup.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.creategroup.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$selectors</code></em> </span></dt> <dd> <p>Selector(s) to be defined, comma delimited. </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>(optional) Group identifier. If not passed, will return an automatically assigned integer. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.creategroup.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re10.html" title="HTML_CSS::unsetGroup"><code class="function">HTML_CSS::unsetGroup</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.creategroup.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_INVALID_GROUP </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.creategroup.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch07s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re10.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Grouping selectors </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::unsetGroup</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re10.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re10.html +++ pear/HTML_CSS/docs/TDG/re10.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::unsetGroup</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re09.html" rel="prev" title="HTML_CSS::createGroup"> <link href="re11.html" rel="next" title="HTML_CSS::getGroupStyle"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::unsetGroup</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re09.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re11.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.unsetgroup"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::unsetGroup</code> — Sets or adds a CSS definition for a CSS definition group</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::unsetGroup</b>(</code></td> <td><var class="pdparam">$group</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>mixed </td> <td><var class="pdparam">$group</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.unsetgroup.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.unsetgroup.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>CSS definition group identifier </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.unsetgroup.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re09.html" title="HTML_CSS::createGroup"><code class="function">HTML_CSS::createGroup</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.unsetgroup.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_GROUP </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.unsetgroup.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re09.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re11.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::createGroup</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::getGroupStyle</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re11.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re11.html +++ pear/HTML_CSS/docs/TDG/re11.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::getGroupStyle</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re10.html" rel="prev" title="HTML_CSS::unsetGroup"> <link href="re12.html" rel="next" title="HTML_CSS::setGroupStyle"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::getGroupStyle</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re10.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re12.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.getgroupstyle"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::getGroupStyle</code> — Returns a CSS definition for a CSS definition group</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">mixed|PEAR_Error <b class="fsfunc">HTML_CSS::getGroupStyle</b>(</code></td> <td><var class="pdparam">$group</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$property</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>mixed </td> <td><var class="pdparam">$group</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$property</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getgroupstyle.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getgroupstyle.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>CSS definition group identifier </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$property</code></em> </span></dt> <dd> <p>Property defined </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getgroupstyle.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re12.html" title="HTML_CSS::setGroupStyle"><code class="function">HTML_CSS::setGroupStyle</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getgroupstyle.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_GROUP, HTML_CSS_ERROR_NO_ELEMENT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getgroupstyle.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re10.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re12.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::unsetGroup</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setGroupStyle</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re12.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re12.html +++ pear/HTML_CSS/docs/TDG/re12.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setGroupStyle</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re11.html" rel="prev" title="HTML_CSS::getGroupStyle"> <link href="re13.html" rel="next" title="HTML_CSS::addGroupSelector"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setGroupStyle</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re11.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re13.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setgroupstyle"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setGroupStyle</code> — Sets or adds a CSS definition for a CSS definition group</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|int|PEAR_Error <b class="fsfunc">HTML_CSS::setGroupStyle</b>(</code></td> <td><var class="pdparam">$group</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$property</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$value</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>mixed </td> <td><var class="pdparam">$group</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$property</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$value</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>CSS definition group identifier </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$property</code></em> </span></dt> <dd> <p>Property defined </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$value</code></em> </span></dt> <dd> <p>Value assigned </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allow or disallow duplicates. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.returns"></a> <h2>Return value</h2> <p><span class="emphasis"><em>returns</em></span> Returns an integer if duplicates are allowed. </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re11.html" title="HTML_CSS::getGroupStyle"><code class="function">HTML_CSS::getGroupStyle</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_GROUP </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re11.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re13.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::getGroupStyle</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::addGroupSelector</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re13.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re13.html +++ pear/HTML_CSS/docs/TDG/re13.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::addGroupSelector</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re12.html" rel="prev" title="HTML_CSS::setGroupStyle"> <link href="re14.html" rel="next" title="HTML_CSS::removeGroupSelector"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::addGroupSelector</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re12.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re14.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.addgroupselector"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::addGroupSelector</code> — Adds a selector to a CSS definition group.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::addGroupSelector</b>(</code></td> <td><var class="pdparam">$group</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$selectors</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>mixed </td> <td><var class="pdparam">$group</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$selectors</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.addgroupselector.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.addgroupselector.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>CSS definition group identifier </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$selectors</code></em> </span></dt> <dd> <p>Selector(s) to be defined, comma delimited. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.addgroupselector.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_NO_GROUP, HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.addgroupselector.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re12.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re14.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setGroupStyle</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::removeGroupSelector</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re14.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re14.html +++ pear/HTML_CSS/docs/TDG/re14.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::removeGroupSelector</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re13.html" rel="prev" title="HTML_CSS::addGroupSelector"> <link href="re15.html" rel="next" title="HTML_CSS::setSameStyle"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::removeGroupSelector</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re13.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re15.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.removegroupselector"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::removeGroupSelector</code> — Removes a selector from a group.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::removeGroupSelector</b>(</code></td> <td><var class="pdparam">$group</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$selectors</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>mixed </td> <td><var class="pdparam">$group</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$selectors</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.removegroupselector.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.removegroupselector.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>CSS definition group identifier </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$selectors</code></em> </span></dt> <dd> <p>Selector(s) to be removed, comma delimited. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.removegroupselector.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_NO_GROUP, HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.removegroupselector.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re13.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re15.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::addGroupSelector</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setSameStyle</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re15.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re15.html +++ pear/HTML_CSS/docs/TDG/re15.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setSameStyle</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re14.html" rel="prev" title="HTML_CSS::removeGroupSelector"> <link href="ch07s03.html" rel="next" title="Parsing data sources"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setSameStyle</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re14.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="ch07s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setsamestyle"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setSameStyle</code> — Sets or changes the properties of new selectors to the values of an existing selector</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setSameStyle</b>(</code></td> <td><var class="pdparam">$new</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$old</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$new</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$old</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsamestyle.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsamestyle.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$new</code></em> </span></dt> <dd> <p>New selector(s) that should share the same definitions, separated by commas </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$old</code></em> </span></dt> <dd> <p>Selector that is already defined </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsamestyle.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_ELEMENT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsamestyle.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re14.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch07s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::removeGroupSelector</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Parsing data sources</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re16.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re16.html +++ pear/HTML_CSS/docs/TDG/re16.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::parseString</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s03.html" rel="up" title="Parsing data sources"> <link href="ch07s03.html" rel="prev" title="Parsing data sources"> <link href="re17.html" rel="next" title="HTML_CSS::parseFile"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::parseString</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch07s03.html">Prev</a> </td> <th align="center" width="60%">Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="re17.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.parsestring"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::parseString</code> — Parse a textstring that contains css information</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::parseString</b>(</code></td> <td><var class="pdparam">$str</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$str</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsestring.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsestring.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$str</code></em> </span></dt> <dd> <p>text string to parse </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allows or disallows duplicate style definitions </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsestring.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re09.html" title="HTML_CSS::createGroup"><code class="function">HTML_CSS::createGroup</code></a>, <a href="re12.html" title="HTML_CSS::setGroupStyle"><code class="function">HTML_CSS::setGroupStyle</code></a>, <a href="re08.html" title="HTML_CSS::setStyle"><code class="function">HTML_CSS::setStyle</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsestring.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsestring.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch07s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re17.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Parsing data sources </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::parseFile</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re17.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re17.html +++ pear/HTML_CSS/docs/TDG/re17.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::parseFile</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s03.html" rel="up" title="Parsing data sources"> <link href="re16.html" rel="prev" title="HTML_CSS::parseString"> <link href="re18.html" rel="next" title="HTML_CSS::parseData"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::parseFile</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re16.html">Prev</a> </td> <th align="center" width="60%">Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="re18.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.parsefile"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::parseFile</code> — Parse a file that contains CSS information</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::parseFile</b>(</code></td> <td><var class="pdparam">$filename</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$filename</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$filename</code></em> </span></dt> <dd> <p>file to parse </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allow or disallow duplicates. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re16.html" title="HTML_CSS::parseString"><code class="function">HTML_CSS::parseString</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_FILE </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re16.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re18.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::parseString</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::parseData</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re18.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re18.html +++ pear/HTML_CSS/docs/TDG/re18.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::parseData</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s03.html" rel="up" title="Parsing data sources"> <link href="re17.html" rel="prev" title="HTML_CSS::parseFile"> <link href="ch07s04.html" rel="next" title="Output "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::parseData</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re17.html">Prev</a> </td> <th align="center" width="60%">Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="ch07s04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.parsedata"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::parseData</code> — Parse data sources, file(s) or string(s), that contains CSS information</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::parseData</b>(</code></td> <td><var class="pdparam">$styles</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>array </td> <td><var class="pdparam">$styles</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsedata.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsedata.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">array</span> <em class="parameter"><code>$styles</code></em> </span></dt> <dd> <p>data sources to parse </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allow or disallow duplicates. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsedata.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re16.html" title="HTML_CSS::parseString"><code class="function">HTML_CSS::parseString</code></a>, <a href="re02.html" title="HTML_CSS::parseFile"><code class="function">HTML_CSS::parseFile</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsedata.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsedata.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 1.0.0RC2 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re17.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch07s04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::parseFile</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Output </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re19.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re19.html +++ pear/HTML_CSS/docs/TDG/re19.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::toArray</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s04.html" rel="up" title="Output "> <link href="ch07s04.html" rel="prev" title="Output "> <link href="re20.html" rel="next" title="HTML_CSS::toInline"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::toArray</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch07s04.html">Prev</a> </td> <th align="center" width="60%">Output </th> <td align="right" width="20%"> <a accesskey="n" href="re20.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.toarray"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::toArray</code> — Returns the array of CSS properties</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <p><code class="funcdef">array <b class="fsfunc">HTML_CSS::toArray</b>(</code><code>)</code>;<br>;</p></div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toarray.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toarray.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> no exceptions thrown </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toarray.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch07s04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re20.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Output </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::toInline</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re20.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re20.html +++ pear/HTML_CSS/docs/TDG/re20.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::toInline</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s04.html" rel="up" title="Output "> <link href="re19.html" rel="prev" title="HTML_CSS::toArray"> <link href="re21.html" rel="next" title="HTML_CSS::toFile"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::toInline</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re19.html">Prev</a> </td> <th align="center" width="60%">Output </th> <td align="right" width="20%"> <a accesskey="n" href="re21.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.toinline"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::toInline</code> — Generates and returns the CSS properties of an element or class as a string for inline use.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">string|PEAR_Error <b class="fsfunc">HTML_CSS::toInline</b>(</code></td> <td><var class="pdparam">$element</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$element</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toinline.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toinline.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$element</code></em> </span></dt> <dd> <p>Element or class for which inline CSS should be generated </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toinline.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toinline.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re19.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re21.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::toArray</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::toFile</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re21.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re21.html +++ pear/HTML_CSS/docs/TDG/re21.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::toFile</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s04.html" rel="up" title="Output "> <link href="re20.html" rel="prev" title="HTML_CSS::toInline"> <link href="re22.html" rel="next" title="HTML_CSS::toString"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::toFile</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re20.html">Prev</a> </td> <th align="center" width="60%">Output </th> <td align="right" width="20%"> <a accesskey="n" href="re22.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.tofile"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::toFile</code> — Generates CSS and stores it in a file.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::toFile</b>(</code></td> <td><var class="pdparam">$filename</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td> Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 </td> <td><var class="pdparam">$filename</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tofile.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tofile.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type"></span> <em class="parameter"><code>$filename</code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tofile.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re22.html" title="HTML_CSS::toString"><code class="function">HTML_CSS::toString</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tofile.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_WRITE_FILE </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tofile.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re20.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re22.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::toInline</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::toString</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re22.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re22.html +++ pear/HTML_CSS/docs/TDG/re22.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::toString</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s04.html" rel="up" title="Output "> <link href="re21.html" rel="prev" title="HTML_CSS::toFile"> <link href="re23.html" rel="next" title="HTML_CSS::display"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::toString</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re21.html">Prev</a> </td> <th align="center" width="60%">Output </th> <td align="right" width="20%"> <a accesskey="n" href="re23.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.tostring"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::toString</code> — Generates and returns the complete CSS as a string.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <p><code class="funcdef">string <b class="fsfunc">HTML_CSS::toString</b>(</code><code>)</code>;<br>;</p></div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tostring.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tostring.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> no exceptions thrown </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tostring.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re21.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re23.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::toFile</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::display</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re23.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re23.html +++ pear/HTML_CSS/docs/TDG/re23.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::display</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s04.html" rel="up" title="Output "> <link href="re22.html" rel="prev" title="HTML_CSS::toString"> <link href="ch08.html" rel="next" title="Chapter 8. Error Handler"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::display</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re22.html">Prev</a> </td> <th align="center" width="60%">Output </th> <td align="right" width="20%"> <a accesskey="n" href="ch08.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.display"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::display</code> — Outputs the stylesheet to the browser.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <p><code class="funcdef">void <b class="fsfunc">HTML_CSS::display</b>(</code><code>)</code>;<br>;</p></div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.display.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.display.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> no exceptions thrown </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.display.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re22.html" title="HTML_CSS::toString"><code class="function">HTML_CSS::toString</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.display.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re22.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch08.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::toString</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 8. Error Handler</td> </tr> </table> </div> </body> </html>
http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/book.css?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/book.css +++ pear/HTML_CSS/docs/TDG/book.css /* ======================================================== ================================================================ Stylesheet for DocBook HTML_CSS Manual ================================================================ ======================================================== $Id: book.css,v 1.1 2006/06/24 09:17:49 farell Exp $ author - Laurent Laville <pear@laurent-laville.org> aka farell */ body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } div.authorgroup { background-image: url(img/created-with-docbook.png); background-repeat: no-repeat; background-position: top right; } div.revhistory table, div.revhistory td { border: none; } div.revhistory table { background-color: #339900; } div.revhistory th { color: #FFF; } div.revhistory td { background-color: #EEE; } div.funcsynopsisinfo { background-color: #EEE; } div.example { background-image: url('img/example.png'); background-repeat: no-repeat; background-position: top left; padding-left: 55px; } pre.programlisting { background-color: #EEE; padding: 1em; border-left: 10px solid darkgray; } div.note, div.tip, div.warning, div.caution, div.important { background-color: lightyellow; border: 2px solid silver; } pre.screen { border: 1px solid darkgray; padding: 1em; } div.screenshot { border: 1px solid darkgray; padding: 1em; text-align: center; } /* Give size to all admonition graphics to allow to fix the PNG behavior for IE 5+ (alpha channel) See also: pngbehavior.htc http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html */ div.note img, div.tip img, div.warning img, div.caution img, div.important img { width: 48px; height: 48px; behavior: url("pngbehavior.htc"); } h1.title { display: none; } h3.editor { font-weight: normal; font-size: 0.8em; } p.copyright { color: #006600; } /* callout graphic text-alternative rendering */ pre.programlisting img { color: white; background-color: black; } table.htmlcssHeader, table.htmlcssFooter { width: 100%; border: 0; padding: 0; spacing: 0; background-color: lightgreen; } table.htmlcssHeader td { vertical-align: bottom; } table.htmlcssHeader td h1 { text-align: right; } table.htmlcssHeader td img { text-align: left; } table.htmlcssHeader h1 { color: #006600; } table.htmlcssFooter { font-size: 0.7em; font-style: italic; } /* external link */ a.external { background: transparent url(img/external-link.gif) 4px 4px no-repeat; padding: 1px 0 1px 16px; } /* FAQ list */ tr.toc dl { font-size: 12px; } tr.question td { padding-top: 1em; font-weight: bold; font-size: 12px; } tr.answer { font-size: 12px; } http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch01.html +++ pear/HTML_CSS/docs/TDG/ch01.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 1. About HTML_CSS</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt01.html" rel="up" title="Part I. Introduction"> <link href="pt01.html" rel="prev" title="Part I. Introduction"> <link href="ch01s02.html" rel="next" title="Intended Audience"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 1. About HTML_CSS</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="pt01.html">Prev</a> </td> <th align="center" width="60%">Part I. Introduction</th><td align="right" width="20%"> <a accesskey="n" href="ch01s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="introduction"></a>Chapter 1. About HTML_CSS</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch01.html#intro.qfams">What is HTML_CSS ?</a></span></dt><dt><span class="sect1"><a href="ch01s02.html">Intended Audience</a></span></dt><dt><span class="sect1"><a href="ch01s03.html">Why use HTML_CSS ?</a></span></dt> <dd> <dl><dt><span class="sect2"><a href="ch01s03.html#intro.use.features">Features</a></span></dt><dt><span class="sect2"><a href="ch01s03.html#intro.use.requires">System Requirements</a></span></dt> </dl></dd> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="intro.qfams"></a>What is HTML_CSS ?</h2></div> </div> </div> <p>The HTML_CSS package provides a simple interface for handling and generating style sheet declarations. </p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="pt01.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt01.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch01s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Part I. Introduction </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Intended Audience</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch01s02.html +++ pear/HTML_CSS/docs/TDG/ch01s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Intended Audience</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch01.html" rel="up" title="Chapter 1. About HTML_CSS"> <link href="ch01.html" rel="prev" title="Chapter 1. About HTML_CSS"> <link href="ch01s03.html" rel="next" title="Why use HTML_CSS ?"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Intended Audience</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch01.html">Prev</a> </td> <th align="center" width="60%">Chapter 1. About HTML_CSS</th><td align="right" width="20%"> <a accesskey="n" href="ch01s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="intro.audience"></a>Intended Audience</h2></div> </div> </div> <p>This document is written as a guide to and reference for the HTML_CSS package, for both beginner and expert users. </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch01.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch01.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch01s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 1. About HTML_CSS </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Why use HTML_CSS ?</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch01s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch01s03.html +++ pear/HTML_CSS/docs/TDG/ch01s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Why use HTML_CSS ?</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch01.html" rel="up" title="Chapter 1. About HTML_CSS"> <link href="ch01s02.html" rel="prev" title="Intended Audience"> <link href="ch02.html" rel="next" title="Chapter 2. FAQ - Frequently Asked Questions"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Why use HTML_CSS ?</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch01s02.html">Prev</a> </td> <th align="center" width="60%">Chapter 1. About HTML_CSS</th><td align="right" width="20%"> <a accesskey="n" href="ch02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="intro.use"></a>Why use HTML_CSS ?</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="sect2"><a href="ch01s03.html#intro.use.features">Features</a></span></dt><dt><span class="sect2"><a href="ch01s03.html#intro.use.requires">System Requirements</a></span></dt> </dl> </div> <p>Even if a CSS file is easy to modify (text format), there is no PHP interface that provides such degree of handling style sheet declarations. Create from scratch or parsing single or multi data sources begin really so easy with HTML_CSS. </p> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="intro.use.features"></a>Features</h3></div> </div> </div> <p></p> <div class="itemizedlist"> <ul type="disc"> <li>parse css string.</li> <li>parse css file.</li> <li>parse multi-target css data sources at once.</li> <li>output to inline stylesheet declarations.</li> <li>output to document internal stylesheet declarations.</li> <li>output to standalone stylesheet declarations.</li> <li>output to Array of definitions.</li> <li>output to string.</li> <li>output to file.</li> </ul> </div> <p></p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="intro.use.requires"></a>System Requirements</h3></div> </div> </div> <p></p> <div class="itemizedlist"> <ul type="disc"> <li>Webserver IIS or Apache (recommanded 1.3.x). </li> <li> <a class="external" href="http://www.php.net/" title="http://www.php.net/">PHP</a> 4.0.6 or newer (recommended: 4.3.0 or better). </li> <li> <a class="external" href="http://pear.php.net/" title="http://pear.php.net/">PEAR</a> 1.0 or newer (recommended: 1.4.3 or better). </li> <li> <a class="external" href="http://pear.php.net/package/HTML_Common" title="http://pear.php.net/package/HTML_Common">PEAR::HTML_Common</a> 1.2.1 or newer. </li> </ul> </div> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch01s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch01.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Intended Audience </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 2. FAQ - Frequently Asked Questions</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch02.html +++ pear/HTML_CSS/docs/TDG/ch02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 2. FAQ - Frequently Asked Questions</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt01.html" rel="up" title="Part I. Introduction"> <link href="ch01s03.html" rel="prev" title="Why use HTML_CSS ?"> <link href="pt02.html" rel="next" title="Part II. Getting Started"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 2. FAQ - Frequently Asked Questions</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch01s03.html">Prev</a> </td> <th align="center" width="60%">Part I. Introduction</th><td align="right" width="20%"> <a accesskey="n" href="pt02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="faq"></a>Chapter 2. FAQ - Frequently Asked Questions</h2></div> </div> </div> <div class="qandaset"> <dl><dt>2.1. <a href="ch02.html#id4722278">General questions</a></dt> <dd> <dl><dt>2.1.1. <a href="ch02.html#id4722283">What does it cost ?</a></dt><dt>2.1.2. <a href="ch02.html#id4722313">Do you offer support ?</a></dt><dt>2.1.3. <a href="ch02.html#id4722330">I found a bug, what shall i do ?</a></dt><dt>2.1.4. <a href="ch02.html#id4722352">What is CSS ?</a></dt><dt>2.1.5. <a href="ch02.html#id4722407">What is PEAR ?</a></dt> </dl></dd> </dl> <table border="0" summary="Q and A Set"> <col align="left" width="1%"> <tbody> <tr class="qandadiv"> <td align="left" colspan="2" valign="top"><a name="id4722278"></a> <h3 class="title"><a name="id4722278"></a>2.1. General questions</h3></td> </tr> <tr class="toc" colspan="2"> <td align="left" colspan="2" valign="top"> <dl><dt>2.1.1. <a href="ch02.html#id4722283">What does it cost ?</a></dt><dt>2.1.2. <a href="ch02.html#id4722313">Do you offer support ?</a></dt><dt>2.1.3. <a href="ch02.html#id4722330">I found a bug, what shall i do ?</a></dt><dt>2.1.4. <a href="ch02.html#id4722352">What is CSS ?</a></dt><dt>2.1.5. <a href="ch02.html#id4722407">What is PEAR ?</a></dt> </dl> </td> </tr> <tr class="question"> <td align="left" valign="top"><a name="id4722283"></a><a name="id4722285"></a><b>2.1.1.</b></td> <td align="left" valign="top"> <p>What does it cost ?</p></td> </tr> <tr class="answer"> <td align="left" valign="top"><b></b></td> <td align="left" valign="top"> <p>You can download and use it for free. But don't delete the copyright notice. You can read terms of the <a class="external" href="http://www.laurent-laville.org/index.php?mod=pear&des=css&act=license" title="http://www.laurent-laville.org/index.php?mod=pear&des=css&act=license"> license </a> </p> </td> </tr> <tr class="question"> <td align="left" valign="top"><a name="id4722313"></a><a name="id4722315"></a><b>2.1.2.</b></td> <td align="left" valign="top"> <p>Do you offer support ?</p></td> </tr> <tr class="answer"> <td align="left" valign="top"><b></b></td> <td align="left" valign="top"> <p>YES if there is no answer in this Guide and if you are ready to share some informations such as : your configuration (platform Win *nix mac, PHP version, PEAR packages installed) and perharps your script. </p> </td> </tr> <tr class="question"> <td align="left" valign="top"><a name="id4722330"></a><a name="id4722332"></a><b>2.1.3.</b></td> <td align="left" valign="top"> <p>I found a bug, what shall i do ?</p></td> </tr> <tr class="answer"> <td align="left" valign="top"><b></b></td> <td align="left" valign="top"> <p>You can report it with the bug tracker at <a class="external" href="http://pear.php.net/package/HTML_CSS/bugs" title="http://pear.php.net/package/HTML_CSS/bugs">PEAR</a>. </p> </td> </tr> <tr class="question"> <td align="left" valign="top"><a name="id4722352"></a><a name="id4722355"></a><b>2.1.4.</b></td> <td align="left" valign="top"> <p>What is CSS ?</p></td> </tr> <tr class="answer"> <td align="left" valign="top"><b></b></td> <td align="left" valign="top"> <p>CSS (an acronym for <span class="bold"><strong>C</strong></span>ascading <span class="bold"><strong>S</strong></span>tyle <span class="bold"><strong>S</strong></span>heets) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents. </p> <p><span class="bold"><strong>HTML_CSS</strong></span> is a PEAR package that provides methods for handling stylesheet declarations. </p> <p>Version 1.0.0 does not offers yet methods to validate a style sheet. </p> </td> </tr> <tr class="question"> <td align="left" valign="top"><a name="id4722407"></a><a name="id4722409"></a><b>2.1.5.</b></td> <td align="left" valign="top"> <p>What is PEAR ?</p></td> </tr> <tr class="answer"> <td align="left" valign="top"><b></b></td> <td align="left" valign="top"> <p>PEAR (an acronym for <span class="bold"><strong>P</strong></span>HP <span class="bold"><strong>E</strong></span>xtension and <span class="bold"><strong>A</strong></span>pplication <span class="bold"><strong>R</strong></span>epository) is a framework and distribution system for reusable PHP components. </p> <p>Don't forget to read also the <a class="external" href="http://pear.php.net/manual/en" title="http://pear.php.net/manual/en">PEAR Manual</a> and <a class="external" href="http://pear.php.net/manual/en/faq.php" title="http://pear.php.net/manual/en/faq.php">PEAR FAQ</a>. </p> </td> </tr> </tbody> </table> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch01s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt01.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="pt02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Why use HTML_CSS ? </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Part II. Getting Started</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch03.html +++ pear/HTML_CSS/docs/TDG/ch03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 3. Overview</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt02.html" rel="up" title="Part II. Getting Started"> <link href="pt02.html" rel="prev" title="Part II. Getting Started"> <link href="ch03s02.html" rel="next" title="Basic concepts"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 3. Overview</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="pt02.html">Prev</a> </td> <th align="center" width="60%">Part II. Getting Started</th><td align="right" width="20%"> <a accesskey="n" href="ch03s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="developers.intro"></a>Chapter 3. Overview</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch03.html#developers.intro.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch03s02.html">Basic concepts</a></span></dt> <dd> <dl><dt><span class="sect2"><a href="ch03s02.html#id4722837">What is a rule or "rule set" ?</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769736">Rule structure</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769769">Declaration block </a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769815">Grouping declarations</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769878">Grouping selectors</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769977">CSS comments</a></span></dt> </dl></dd> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.intro.purpose"></a>In brief</h2></div> </div> </div> <p>The purpose of this tutorial is to give the new users of HTML_CSS an overview of its features and usage patterns. It describes a small subset of available functionality, but points to the parts of the documentation that give a more in-depth overview. </p> <p>Selectors are one of the most important aspects of CSS as they are used to "select" elements on an HTML page so that they can be styled. We will try to explain basic concepts, and how to do the same with HTML_CSS. </p> <p>A complete tutorial about CSS selectors can be find at <a class="external" href="http://css.maxdesign.com.au/index.htm" title="http://css.maxdesign.com.au/index.htm">maxDesign</a>. </p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="pt02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch03s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Part II. Getting Started </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Basic concepts</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch03s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch03s02.html +++ pear/HTML_CSS/docs/TDG/ch03s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Basic concepts</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch03.html" rel="up" title="Chapter 3. Overview"> <link href="ch03.html" rel="prev" title="Chapter 3. Overview"> <link href="ch04.html" rel="next" title="Chapter 4. Grouping selectors"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Basic concepts</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch03.html">Prev</a> </td> <th align="center" width="60%">Chapter 3. Overview</th><td align="right" width="20%"> <a accesskey="n" href="ch04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.intro.concepts"></a>Basic concepts</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="sect2"><a href="ch03s02.html#id4722837">What is a rule or "rule set" ?</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769736">Rule structure</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769769">Declaration block </a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769815">Grouping declarations</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769878">Grouping selectors</a></span></dt><dt><span class="sect2"><a href="ch03s02.html#id4769977">CSS comments</a></span></dt> </dl> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4722837"></a>What is a rule or "rule set" ?</h3></div> </div> </div> <p>A rule or "rule set" is a statement that tells browsers how to render particular elements on an HTML page. A rule set consists of a selector followed by a declaration block. </p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4769736"></a>Rule structure</h3></div> </div> </div> <p></p> <div class="figure"><a name="id4769744"></a> <p class="title"><b>Figure 3.1. Rule structure </b></p><div class="screenshot"><div><img alt="Rule structure" src="img/rule.gif"></div> </div> </div> <p></p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4769769"></a>Declaration block </h3> </div> </div> </div> <p>The <code class="methodname">HTML_CSS::setStyle()</code> method is the only one to handle a declaration block. </p> <p>For example, to declare a such rule : </p> <pre class="programlisting"> p { padding: 5px; } </pre> <p></p>Here is the php code to create the same sentence with HTML_CSS : <p></p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $css->setStyle('p', 'padding', '5px'); $css->display(); ?> </pre> <p></p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4769815"></a>Grouping declarations</h3></div> </div> </div> <p>You can use more than one declaration within a declaration block. Each declaration must be separated with a semicolon ";". </p> <p>For example, to declare a such rule : </p> <pre class="programlisting"> p { padding: 5px; margin: 1px; } </pre> <p>Or, with whitespace added to aid readability : </p> <pre class="programlisting"> p { padding: 5px; margin: 1px; } </pre> <p></p>Here is the php code to create the same sentence with HTML_CSS : <p></p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $css->setStyle('p', 'padding', '5px'); $css->setStyle('p', 'margin', '1px'); $css->display(); ?> </pre> <p></p>Notice that we use twice <code class="methodname">HTML_CSS::setStyle()</code> method call to declare each declaration block for the same selector. </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4769878"></a>Grouping selectors</h3></div> </div> </div> <p>When several selectors share the same declarations, they may be grouped together to save writing the same rule more than once. Each selector must be separated by a comma. For example : </p> <p></p> <pre class="programlisting"> h1, h2, h3, h4 { padding: 1em; }..highlight p, .highlight ul { margin-left: .5em; } #main p, #main ul { padding-top: 1em; } </pre> <p></p>To produce such result, we will need help of 3 new methods : <code class="methodname">HTML_CSS::setSameStyle()</code>, <code class="methodname">HTML_CSS::createGroup()</code> and <code class="methodname">HTML_CSS::setGroupStyle()</code>. <p></p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); // two selector groups only $css->setStyle('.highlight p', 'margin-left', '.5em'); $css->setSameStyle('.highlight ul', '.highlight p'); // or even this way $g2 = $css->createGroup('#main p, #main ul'); $css->setGroupStyle($g2, 'padding-top', '2em'); // more than two selector groups $g1 = $css->createGroup('h1, h2, h3, h4'); $css->setGroupStyle($g1, 'padding', '1em'); $css->display(); ?> </pre> <p></p> <p>We should take care than grouping two selectors may be write either with <code class="methodname">HTML_CSS::setSameStyle()</code> or with couple <code class="methodname">HTML_CSS::createGroup()</code> and <code class="methodname">HTML_CSS::setGroupStyle()</code>. When we have to group three or more selectors, there is only one possibility: couple <code class="methodname">HTML_CSS::createGroup()</code> and <code class="methodname">HTML_CSS::setGroupStyle()</code>. </p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4769977"></a>CSS comments</h3></div> </div> </div> <p>You can insert comments in CSS to explain your code. Like HTML comments, CSS comments will be ignored by the browser. A CSS comment begins with "/*", and ends with "*/". Comments can appear before or within rule sets as well as across multiple lines. </p> <p>HTML_CSS 1.0.0 has not yet ability to handle comment such as : </p> <p></p> <pre class="programlisting"> /* Comment here */ p { margin: 1em; /* Comment here */ padding: 2em; /* color: white; */ background-color: blue; } /* multi-line comment here */ </pre> <p></p> <p></p> <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Warning"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Warning]" src="img/admons/warning.png"></td> <th align="left">Warning</th> </tr> <tr> <td align="left" valign="top"> The common mistake that people make when writing comments is to expect getting all comments describe with such code below : it's an error. </td> </tr> </table> </div> <p></p> <p></p> <pre class="programlisting"> $css->setComment('comment here'); $css->setStyle('p', 'margin', '1em'); $css->setStyle('p', 'padding', '2em'); $css->setComment('color: white;'); $css->setStyle('p', 'background-color', 'blue'); $css->setComment(' multi-line comment here '); </pre> <p></p> <p>You will only get such result: </p> <pre class="programlisting"> /* multi-line comment here */ p { margin: 1em; padding: 2em; background-color: blue; } </pre> <p></p>Only one comment is allowed due to usage of parent class method <code class="methodname">HTML_Common::setComment()</code>. </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 3. Overview </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 4. Grouping selectors</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch04.html +++ pear/HTML_CSS/docs/TDG/ch04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 4. Grouping selectors</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt02.html" rel="up" title="Part II. Getting Started"> <link href="ch03s02.html" rel="prev" title="Basic concepts"> <link href="ch04s02.html" rel="next" title="Create group"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 4. Grouping selectors</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch03s02.html">Prev</a> </td> <th align="center" width="60%">Part II. Getting Started</th><td align="right" width="20%"> <a accesskey="n" href="ch04s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="developers.group"></a>Chapter 4. Grouping selectors</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch04.html#developers.group.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch04s02.html">Create group</a></span></dt> <dd> <dl><dt><span class="sect2"><a href="ch04s02.html#id4770542">Identify the group yourself</a></span></dt><dt><span class="sect2"><a href="ch04s02.html#id4770567">Let HTML_CSS do it itself</a></span></dt> </dl></dd><dt><span class="sect1"><a href="ch04s03.html">Handle group selector</a></span></dt> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.group.purpose"></a>In brief</h2></div> </div> </div> <p>Remember, when several selectors share the same declarations, they may be grouped together to save writing the same rule more than once. Each selector must be separated by a comma. </p> <p>Two cases exists to handle group of selector. The quick and limited solution (accept only two selectors in a same group) with : <code class="methodname">HTML_CSS::setSameStyle()</code>. And the extended/common solution with : <code class="methodname">HTML_CSS::createGroup()</code>, <code class="methodname">HTML_CSS::setGroupStyle()</code>, <code class="methodname">HTML_CSS::addGroupSelector()</code> and <code class="methodname">HTML_CSS::removeGroupSelector()</code>. </p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch03s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch04s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Basic concepts </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Create group</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch04s02.html +++ pear/HTML_CSS/docs/TDG/ch04s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Create group</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch04.html" rel="up" title="Chapter 4. Grouping selectors"> <link href="ch04.html" rel="prev" title="Chapter 4. Grouping selectors"> <link href="ch04s03.html" rel="next" title="Handle group selector"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Create group</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch04.html">Prev</a> </td> <th align="center" width="60%">Chapter 4. Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="ch04s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.group.create"></a>Create group</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="sect2"><a href="ch04s02.html#id4770542">Identify the group yourself</a></span></dt><dt><span class="sect2"><a href="ch04s02.html#id4770567">Let HTML_CSS do it itself</a></span></dt> </dl> </div> <p><code class="methodname">HTML_CSS::createGroup()</code> creates basically a group for selectors given as first argument. You can identify this group by an identifier (alphanumeric) or let HTML_CSS manage an internal numeric identifier itself. </p> <p>Let creates this group of selectors : </p> <pre class="programlisting"> #main p, #main ul { padding-top: 1em; color: red; } </pre> <p></p> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4770542"></a>Identify the group yourself</h3></div> </div> </div> <p>Identifier is named <span class="bold"><strong>myGroupID</strong></span> in this example: </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $g1 = $css->createGroup('#main p, #main ul', 'myGroupID'); $css->setGroupStyle($g1, 'padding-top', '1em'); $css->setGroupStyle($g1, 'color', 'red'); $css->display(); ?> </pre> <p></p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4770567"></a>Let HTML_CSS do it itself</h3></div> </div> </div> <p></p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Note]" src="img/admons/note.png"></td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> This is the default behavior. </td> </tr> </table> </div> <p></p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $g1 = $css->createGroup('#main p, #main ul'); $css->setGroupStyle($g1, 'padding-top', '1em'); $css->setGroupStyle($g1, 'color', 'red'); $css->display(); ?> </pre> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch04s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 4. Grouping selectors </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Handle group selector</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch04s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch04s03.html +++ pear/HTML_CSS/docs/TDG/ch04s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Handle group selector</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch04.html" rel="up" title="Chapter 4. Grouping selectors"> <link href="ch04s02.html" rel="prev" title="Create group"> <link href="ch05.html" rel="next" title="Chapter 5. Parsing data sources"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Handle group selector</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch04s02.html">Prev</a> </td> <th align="center" width="60%">Chapter 4. Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="ch05.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.group.selectors"></a>Handle group selector</h2></div> </div> </div> <p>With <code class="methodname">HTML_CSS::addGroupSelector()</code> and <code class="methodname">HTML_CSS::removeGroupSelector()</code>, we have ability to add or remove one selector from a selectors list (of a group). </p> <p>Suppose we have these selectors : </p> <pre class="programlisting"> html, body { margin: 2px; padding: 0; border: 0; } </pre> <p>and we want to apply same share properties to new class 'large' and do not anymore apply it to 'body'. </p> <p>Here are how to do : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); // 1. create the pre-requires data $g1 = $css->createGroup('html, body'); $css->setGroupStyle($g1, 'margin', '2px'); $css->setGroupStyle($g1, 'padding', '0'); $css->setGroupStyle($g1, 'border', '0'); // 2. remove the body selector $css->removeGroupSelector(1, 'body'); // 3. add the new 'large' class $css->addGroupSelector(1, '.large'); $css->display(); ?> </pre> <p></p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Note]" src="img/admons/note.png"></td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> Remember that HTML_CSS handle group (numeric) identifier itself (begin at 1, and go to 2, 3, and more). </td> </tr> </table> </div> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch04s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch05.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Create group </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 5. Parsing data sources</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch05.html +++ pear/HTML_CSS/docs/TDG/ch05.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 5. Parsing data sources</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt02.html" rel="up" title="Part II. Getting Started"> <link href="ch04s03.html" rel="prev" title="Handle group selector"> <link href="ch05s02.html" rel="next" title="Parse a simple string"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 5. Parsing data sources</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch04s03.html">Prev</a> </td> <th align="center" width="60%">Part II. Getting Started</th><td align="right" width="20%"> <a accesskey="n" href="ch05s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="developers.parse"></a>Chapter 5. Parsing data sources</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch05.html#developers.parse.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch05s02.html">Parse a simple string</a></span></dt><dt><span class="sect1"><a href="ch05s03.html">Parse a file contents</a></span></dt><dt><span class="sect1"><a href="ch05s04.html">Parse multi data sources </a></span></dt><dt><span class="sect1"><a href="ch05s05.html">Allow duplicate definitions</a></span></dt> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.parse.purpose"></a>In brief</h2></div> </div> </div> <p>One of the great features of HTML_CSS is to parse and load existing style sheet from different data sources : (simple string, css file, combine). We will see in detail all these possibilities with 3 methods : <code class="methodname">HTML_CSS::parseString()</code>, <code class="methodname">HTML_CSS::parseFile()</code> and <code class="methodname">HTML_CSS::parseData()</code>. </p> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch04s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch05s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Handle group selector </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Parse a simple string</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch05s02.html +++ pear/HTML_CSS/docs/TDG/ch05s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Parse a simple string</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch05.html" rel="up" title="Chapter 5. Parsing data sources"> <link href="ch05.html" rel="prev" title="Chapter 5. Parsing data sources"> <link href="ch05s03.html" rel="next" title="Parse a file contents"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Parse a simple string</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch05.html">Prev</a> </td> <th align="center" width="60%">Chapter 5. Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="ch05s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.parse.string"></a>Parse a simple string</h2></div> </div> </div> <p>A quick way to create multiple selector definitions in one step is to use the <code class="methodname">HTML_CSS::parseString()</code> function. </p> <p>Let creates these definitions : </p> <pre class="programlisting"> html, body { margin: 2px; padding: 0px; border: 0px; } p, body { margin: 4px; } </pre> <p></p> <p>Very easy with such script : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $strcss = ' html, body { margin: 2px; padding: 0px; border: 0px; } p, body { margin: 4px; } '; $css->parseString($strcss); $css->display(); ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch05.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch05.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch05s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 5. Parsing data sources </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Parse a file contents</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch05s03.html +++ pear/HTML_CSS/docs/TDG/ch05s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Parse a file contents</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch05.html" rel="up" title="Chapter 5. Parsing data sources"> <link href="ch05s02.html" rel="prev" title="Parse a simple string"> <link href="ch05s04.html" rel="next" title="Parse multi data sources "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Parse a file contents</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch05s02.html">Prev</a> </td> <th align="center" width="60%">Chapter 5. Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="ch05s04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.parse.file"></a>Parse a file contents</h2></div> </div> </div> <p>Another quick way to create multiple selector definitions in one step is to use the <code class="methodname">HTML_CSS::parseFile()</code> function. CSS file to load is supposed to be W3C/CSS compliant. </p> <p>If previous selector definitions was into a file named 'styles.css', then to parse and load contents will be done with such script : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $css->parseFile('styles.css'); $css->display(); ?> </pre> <p></p> <p></p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Tip]" src="img/admons/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> If there are duplicate definitions into file contents, you should parse file with call : <p>$css->parseFile('styles.css', true); </p>We will see next why we may find such duplicate definitions. </td> </tr> </table> </div> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch05s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch05.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch05s04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Parse a simple string </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Parse multi data sources </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch05s04.html +++ pear/HTML_CSS/docs/TDG/ch05s04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Parse multi data sources </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch05.html" rel="up" title="Chapter 5. Parsing data sources"> <link href="ch05s03.html" rel="prev" title="Parse a file contents"> <link href="ch05s05.html" rel="next" title="Allow duplicate definitions"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Parse multi data sources </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch05s03.html">Prev</a> </td> <th align="center" width="60%">Chapter 5. Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="ch05s05.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.parse.data"></a>Parse multi data sources </h2> </div> </div> </div> <p>We have already seen two single sources where CSS data could come from. The last one allow to parse data from multiple sources at once. <code class="methodname">HTML_CSS::parseData()</code> function take an array as first argument. Each item is either a filename (with .css extension) or a string. Each source is merge to produce at end a unique style sheet. </p> <p>In script below we load selector definitions from two independent sources: a string and a css file which contents duplicate definitions (parseFile() 2nd argument to set to true to catch this situation; see next section for explains). Internet Explorer). </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); // 1. a string to parse $strcss = ' body, p { background-color: white; font: 1.2em Arial; } p, div#black { color: black; } div{ color: green; } p { margin-left: 3em; } '; $css->parseString($strcss); // 2. a css file with duplicate definitions $css->parseFile('iehack.css', true); $css->display(); ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch05s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch05.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch05s05.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Parse a file contents </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Allow duplicate definitions</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch05s05.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch05s05.html +++ pear/HTML_CSS/docs/TDG/ch05s05.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Allow duplicate definitions</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch05.html" rel="up" title="Chapter 5. Parsing data sources"> <link href="ch05s04.html" rel="prev" title="Parse multi data sources "> <link href="ch06.html" rel="next" title="Chapter 6. Output"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Allow duplicate definitions</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch05s04.html">Prev</a> </td> <th align="center" width="60%">Chapter 5. Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="ch06.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.parse.duplicate"></a>Allow duplicate definitions</h2></div> </div> </div> <p>Internet Explorer <= 6 does not handle box model in same way as others browsers that are better W3C compliant. For this reason, we need to fix boxes size with a hack such as this one you can find in example that follow. You can notice the duplicate 'voice-family' and 'height' properties. </p> <p>To parse these definitions we need to activate the <span class="bold"><strong>duplicate</strong></span> option of HTML_CSS. </p> <pre class="programlisting"> #header { background-color: ivory; font-family: "Times New Roman", Times, serif; font-size: 5mm; text-align: center; /* IE 5.5 */ height:81px; border-top:1px solid #000; border-right:1px solid #000; border-left:1px solid #000; voice-family: "\"}\""; voice-family: inherit; /* IE 6 */ height: 99px; } </pre> <p></p> <p>There are two ways : </p> <div class="itemizedlist"> <ul type="disc"> <li>global to all functions: set option <span class="bold"><strong>allowduplicates</strong></span> on class constructor </li> <li>local to a function: set argument <span class="bold"><strong>duplicates</strong></span> to TRUE </li> </ul> </div> <p></p> <p>For example here, we could wrote either (allow global duplicate) : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $attr = array('allowduplicates' => true); $css = new HTML_CSS($attr); $strcss = ' #header { background-color: ivory; font-family: "Times New Roman", Times, serif; font-size: 5mm; text-align: center; /* IE 5.5 */ height:81px; border-top:1px solid #000; border-right:1px solid #000; border-left:1px solid #000; voice-family: "\"}\""; voice-family: inherit; /* IE 6 */ height: 99px; } '; $css->parseString($strcss); $css->display(); ?> </pre> <p>or also (duplicate on local call) : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $strcss = ' #header { background-color: ivory; font-family: "Times New Roman", Times, serif; font-size: 5mm; text-align: center; /* IE 5.5 */ height:81px; border-top:1px solid #000; border-right:1px solid #000; border-left:1px solid #000; voice-family: "\"}\""; voice-family: inherit; /* IE 6 */ height: 99px; } '; $css->parseString($strcss, true); $css->display(); ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch05s04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch05.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Parse multi data sources </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 6. Output</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06.html +++ pear/HTML_CSS/docs/TDG/ch06.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 6. Output</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt02.html" rel="up" title="Part II. Getting Started"> <link href="ch05s05.html" rel="prev" title="Allow duplicate definitions"> <link href="ch06s02.html" rel="next" title="To Array"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 6. Output</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch05s05.html">Prev</a> </td> <th align="center" width="60%">Part II. Getting Started</th><td align="right" width="20%"> <a accesskey="n" href="ch06s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="developers.output"></a>Chapter 6. Output</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch06.html#developers.output.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch06s02.html">To Array</a></span></dt><dt><span class="sect1"><a href="ch06s03.html">To Inline</a></span></dt><dt><span class="sect1"><a href="ch06s04.html">To File</a></span></dt><dt><span class="sect1"><a href="ch06s05.html">To String</a></span></dt><dt><span class="sect1"><a href="ch06s06.html">Display</a></span></dt> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.purpose"></a>In brief</h2></div> </div> </div> <p>Handle selectors, groups, properties are some basic features of HTML_CSS but getting results in different format should be the final step of your process. We have four/five different functions (depending or render you want to get) : <code class="methodname">HTML_CSS::toArray()</code>, <code class="methodname">HTML_CSS::toInline()</code>, <code class="methodname">HTML_CSS::toFile()</code>, <code class="methodname">HTML_CSS::toString()</code> and <code class="methodname">HTML_CSS::display()</code>. </p> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch05s05.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Allow duplicate definitions </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> To Array</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06s02.html +++ pear/HTML_CSS/docs/TDG/ch06s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>To Array</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch06.html" rel="up" title="Chapter 6. Output"> <link href="ch06.html" rel="prev" title="Chapter 6. Output"> <link href="ch06s03.html" rel="next" title="To Inline"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">To Array</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06.html">Prev</a> </td> <th align="center" width="60%">Chapter 6. Output</th><td align="right" width="20%"> <a accesskey="n" href="ch06s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.array"></a>To Array</h2></div> </div> </div> <p><code class="methodname">HTML_CSS::toArray()</code> must be considered as a debug/help function. An easy way to explore HTML_CSS data structures. </p> <p>For example, explore these definitions : </p> <pre class="programlisting"> html, body { margin: 2px; padding: 0px; border: 0px; } p, body { margin: 4px; } div#header { text-align: center; color: red; } </pre> <p></p> <p>With script : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $strcss = ' html, body { margin: 2px; padding: 0px; border: 0px; } p, body { margin: 4px; } div#header { text-align: center; color: red; } '; $css->parseString($strcss); $arr = $css->toArray(); echo '<pre>'; var_dump($arr); echo '</pre>'; ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch06.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 6. Output </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> To Inline</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06s03.html +++ pear/HTML_CSS/docs/TDG/ch06s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>To Inline</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch06.html" rel="up" title="Chapter 6. Output"> <link href="ch06s02.html" rel="prev" title="To Array"> <link href="ch06s04.html" rel="next" title="To File"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">To Inline</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06s02.html">Prev</a> </td> <th align="center" width="60%">Chapter 6. Output</th><td align="right" width="20%"> <a accesskey="n" href="ch06s04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.inline"></a>To Inline</h2></div> </div> </div> <p><code class="methodname">HTML_CSS::toInline()</code> allow to integrate html tags with styles. </p> <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Warning"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Warning]" src="img/admons/warning.png"></td> <th align="left">Warning</th> </tr> <tr> <td align="left" valign="top"> Dissociate html code and presentation layout (CSS) is more than recommanded </td> </tr> </table> </div> <p></p> <p>Here is a basic example that show a white 'Hello World' on a black background : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $css->setStyle('body', 'background-color', '#0c0c0c'); $css->setStyle('body', 'color', '#ffffff'); echo '<body style="' . $css->toInline('body') . '">'; echo '<p>Hello World</p>'; echo '</body>'; ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch06.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06s04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">To Array </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> To File</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06s04.html +++ pear/HTML_CSS/docs/TDG/ch06s04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>To File</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch06.html" rel="up" title="Chapter 6. Output"> <link href="ch06s03.html" rel="prev" title="To Inline"> <link href="ch06s05.html" rel="next" title="To String"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">To File</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06s03.html">Prev</a> </td> <th align="center" width="60%">Chapter 6. Output</th><td align="right" width="20%"> <a accesskey="n" href="ch06s05.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.file"></a>To File</h2></div> </div> </div> <p><code class="methodname">HTML_CSS::toFile()</code> is probably the most interresting solution. You can create a pure CSS file on the fly. </p> <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Warning"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Warning]" src="img/admons/warning.png"></td> <th align="left">Warning</th> </tr> <tr> <td align="left" valign="top"> If file already exists, it will be replace without warning ! </td> </tr> </table> </div> <p></p> <p>This script will load an existing style sheet and replace the body definition : </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $css->parseFile('example.css'); $css->setStyle('body', 'background-color', '#0c0c0c'); $css->setStyle('body', 'color', '#ffffff'); $css->toFile('example.css'); ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch06.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06s05.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">To Inline </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> To String</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s05.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06s05.html +++ pear/HTML_CSS/docs/TDG/ch06s05.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>To String</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch06.html" rel="up" title="Chapter 6. Output"> <link href="ch06s04.html" rel="prev" title="To File"> <link href="ch06s06.html" rel="next" title="Display"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">To String</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06s04.html">Prev</a> </td> <th align="center" width="60%">Chapter 6. Output</th><td align="right" width="20%"> <a accesskey="n" href="ch06s06.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.string"></a>To String</h2></div> </div> </div> <p><code class="methodname">HTML_CSS::toString()</code> is analogous to <code class="methodname">HTML_CSS::toFile()</code> except that result is capture to a PHP variable rather than to a text/css file. </p> <p></p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $strcss = ' ul, body { padding: 1em 2em; } '; $css->parseString($strcss); $css->setGroupStyle(1, 'color', 'red'); $str = $css->toString(); echo $str; // will display // ul, body { padding: 1em 2em; color: red; } ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06s04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch06.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch06s06.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">To File </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Display</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch06s06.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch06s06.html +++ pear/HTML_CSS/docs/TDG/ch06s06.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Display</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch06.html" rel="up" title="Chapter 6. Output"> <link href="ch06s05.html" rel="prev" title="To String"> <link href="pt03.html" rel="next" title="Part III. Reference Guide"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Display</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06s05.html">Prev</a> </td> <th align="center" width="60%">Chapter 6. Output</th><td align="right" width="20%"> <a accesskey="n" href="pt03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="developers.output.display"></a>Display</h2></div> </div> </div> <p><code class="methodname">HTML_CSS::display()</code> is no more no less than just a </p> <pre class="programlisting"> echo $css->toString(); </pre> <p>with cache and charset management for browser output. </p> <p>See also : <code class="methodname">HTML_CSS::setCharset()</code> and <code class="methodname">HTML_CSS::setCache()</code> functions. </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06s05.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch06.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="pt03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">To String </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Part III. Reference Guide</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch07.html +++ pear/HTML_CSS/docs/TDG/ch07.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 7. API - Application Programming Interface</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt03.html" rel="up" title="Part III. Reference Guide"> <link href="pt03.html" rel="prev" title="Part III. Reference Guide"> <link href="re01.html" rel="next" title="HTML_CSS::setXhtmlCompliance"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 7. API - Application Programming Interface</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="pt03.html">Prev</a> </td> <th align="center" width="60%">Part III. Reference Guide</th><td align="right" width="20%"> <a accesskey="n" href="re01.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="reference.api"></a>Chapter 7. API - Application Programming Interface</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch07.html#reference.api.basic">Handle selector and property values</a></span></dt><dt><span class="sect1"><a href="ch07s02.html">Grouping selectors</a></span></dt><dt><span class="sect1"><a href="ch07s03.html">Parsing data sources</a></span></dt><dt><span class="sect1"><a href="ch07s04.html">Output </a></span></dt> </dl> </div> <p>With the class constructor, you have ability to set many options : </p> <div class="itemizedlist"> <ul type="disc"> <li><span class="bold"><strong>xhtml</strong></span> option defines whether element selectors should be automatically lowercased. </li> <li><span class="bold"><strong>tab</strong></span> option defines the string used to indent CSS text. See also: <code class="methodname">HTML_Common::setTab()</code>. </li> <li><span class="bold"><strong>filename</strong></span> option allow to parse an external css file. </li> <li><span class="bold"><strong>cache</strong></span> option controls caching of the page. </li> <li><span class="bold"><strong>online</strong></span> option defines whether to output all properties on one line. </li> <li><span class="bold"><strong>groupsfirst</strong></span> option determines whether to output groups before elements. </li> <li><span class="bold"><strong>allowduplicates</strong></span> option allow to have duplicate rules in selector. </li> </ul> </div> <p></p> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="reference.api.basic"></a>Handle selector and property values</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="refentrytitle"><a href="re07.html"><code class="function">HTML_CSS::getStyle</code></a></span><span class="refpurpose"> - Retrieves the value of a CSS property</span></dt><dt><span class="refentrytitle"><a href="re08.html"><code class="function">HTML_CSS::setStyle</code></a></span><span class="refpurpose"> - Sets or adds a CSS definition</span></dt> </dl> </div> <p>Read and write single selector or even descendant selector is made easy with : </p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="pt03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re01.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Part III. Reference Guide </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setXhtmlCompliance</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch07s02.html +++ pear/HTML_CSS/docs/TDG/ch07s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Grouping selectors</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html" rel="up" title="Chapter 7. API - Application Programming Interface"> <link href="re08.html" rel="prev" title="HTML_CSS::setStyle"> <link href="re09.html" rel="next" title="HTML_CSS::createGroup"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Grouping selectors</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re08.html">Prev</a> </td> <th align="center" width="60%">Chapter 7. API - Application Programming Interface</th><td align="right" width="20%"> <a accesskey="n" href="re09.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="reference.api.group"></a>Grouping selectors</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="refentrytitle"><a href="re09.html"><code class="function">HTML_CSS::createGroup</code></a></span><span class="refpurpose"> - Creates a new CSS definition group. Returns an integer identifying the group.</span></dt><dt><span class="refentrytitle"><a href="re10.html"><code class="function">HTML_CSS::unsetGroup</code></a></span><span class="refpurpose"> - Sets or adds a CSS definition for a CSS definition group</span></dt><dt><span class="refentrytitle"><a href="re11.html"><code class="function">HTML_CSS::getGroupStyle</code></a></span><span class="refpurpose"> - Returns a CSS definition for a CSS definition group</span></dt><dt><span class="refentrytitle"><a href="re12.html"><code class="function">HTML_CSS::setGroupStyle</code></a></span><span class="refpurpose"> - Sets or adds a CSS definition for a CSS definition group</span></dt><dt><span class="refentrytitle"><a href="re13.html"><code class="function">HTML_CSS::addGroupSelector</code></a></span><! span class="refpurpose"> - Adds a selector to a CSS definition group.</span></dt><dt><span class="refentrytitle"><a href="re14.html"><code class="function">HTML_CSS::removeGroupSelector</code></a></span><span class="refpurpose"> - Removes a selector from a group.</span></dt><dt><span class="refentrytitle"><a href="re15.html"><code class="function">HTML_CSS::setSameStyle</code></a></span><span class="refpurpose"> - Sets or changes the properties of new selectors to the values of an existing selector</span></dt> </dl> </div> <p>The most advanced/complex functions are those which handle group of selectors </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re08.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re09.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setStyle</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::createGroup</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch07s03.html +++ pear/HTML_CSS/docs/TDG/ch07s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Parsing data sources</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html" rel="up" title="Chapter 7. API - Application Programming Interface"> <link href="re15.html" rel="prev" title="HTML_CSS::setSameStyle"> <link href="re16.html" rel="next" title="HTML_CSS::parseString"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Parsing data sources</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re15.html">Prev</a> </td> <th align="center" width="60%">Chapter 7. API - Application Programming Interface</th><td align="right" width="20%"> <a accesskey="n" href="re16.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="reference.api.parse"></a>Parsing data sources</h2></div> </div> </div> <div class="toc"> <dl><dt><span class="refentrytitle"><a href="re16.html"><code class="function">HTML_CSS::parseString</code></a></span><span class="refpurpose"> - Parse a textstring that contains css information</span></dt><dt><span class="refentrytitle"><a href="re17.html"><code class="function">HTML_CSS::parseFile</code></a></span><span class="refpurpose"> - Parse a file that contains CSS information</span></dt><dt><span class="refentrytitle"><a href="re18.html"><code class="function">HTML_CSS::parseData</code></a></span><span class="refpurpose"> - Parse data sources, file(s) or string(s), that contains CSS information</span></dt> </dl> </div> <p>Handle data sources are so easy than just one call of these three methods : </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re15.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re16.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setSameStyle</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::parseString</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch07s04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch07s04.html +++ pear/HTML_CSS/docs/TDG/ch07s04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Output </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html" rel="up" title="Chapter 7. API - Application Programming Interface"> <link href="re18.html" rel="prev" title="HTML_CSS::parseData"> <link href="re19.html" rel="next" title="HTML_CSS::toArray"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Output </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re18.html">Prev</a> </td> <th align="center" width="60%">Chapter 7. API - Application Programming Interface</th><td align="right" width="20%"> <a accesskey="n" href="re19.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="reference.api.output"></a>Output </h2> </div> </div> </div> <div class="toc"> <dl><dt><span class="refentrytitle"><a href="re19.html"><code class="function">HTML_CSS::toArray</code></a></span><span class="refpurpose"> - Returns the array of CSS properties</span></dt><dt><span class="refentrytitle"><a href="re20.html"><code class="function">HTML_CSS::toInline</code></a></span><span class="refpurpose"> - Generates and returns the CSS properties of an element or class as a string for inline use.</span></dt><dt><span class="refentrytitle"><a href="re21.html"><code class="function">HTML_CSS::toFile</code></a></span><span class="refpurpose"> - Generates CSS and stores it in a file.</span></dt><dt><span class="refentrytitle"><a href="re22.html"><code class="function">HTML_CSS::toString</code></a></span><span class="refpurpose"> - Generates and returns the complete CSS as a string.</span></dt><dt><span class="refentrytitle"><a href="re23.html"><code class="function">HTML_CSS::display</code></a></span><span class="refpurpose"> - Outputs the stylesheet to! the browser.</span></dt> </dl> </div> <p>Send result directly to browser, send it to file or capture to a PHP variable, you will certainly use one of them. </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re18.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re19.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::parseData</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::toArray</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch08.html +++ pear/HTML_CSS/docs/TDG/ch08.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Chapter 8. Error Handler</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pt03.html" rel="up" title="Part III. Reference Guide"> <link href="re23.html" rel="prev" title="HTML_CSS::display"> <link href="ch08s02.html" rel="next" title="Configuring a Handler "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Chapter 8. Error Handler</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re23.html">Prev</a> </td> <th align="center" width="60%">Part III. Reference Guide</th><td align="right" width="20%"> <a accesskey="n" href="ch08s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="chapter" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="reference.errorhandler"></a>Chapter 8. Error Handler</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="ch08.html#id4786957">Introduction</a></span></dt><dt><span class="sect1"><a href="ch08s02.html">Configuring a Handler </a></span></dt><dt><span class="sect1"><a href="ch08s03.html">Controlling error generation </a></span></dt><dt><span class="sect1"><a href="ch08s04.html">Error Context Display </a></span></dt><dt><span class="sect1"><a href="ch08s05.html">Custom Error Message Generation </a></span></dt> <dd> <dl><dt><span class="sect2"><a href="ch08s05.html#id4788994">Option: message_callback </a></span></dt><dt><span class="sect2"><a href="ch08s05.html#id4789035">Option: context_callback </a></span></dt> </dl></dd> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="id4786957"></a>Introduction</h2></div> </div> </div> <p>The HTML_CSS package is implemented with a flexible error handler plug-in system. You may use any error handler that you want. Using <code class="classname">PEAR_Error</code> object (default), but also the <code class="classname">PEAR_ErrorStack</code> package, or any other error handler you might want to plug in. </p> <p>Without any configuration, each HTML_CSS API error (basic or exception) will raise a <code class="classname">HTML_CSS_Error</code> object that will be return to call script (user script). </p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Tip]" src="img/admons/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> Easy to distinct basic PEAR_Error from other PEAR packages to HTML_CSS errors, even if there is a better and more robust solution: <code class="methodname">HTML_CSS::isError()</code>. But also provide a unique way to retrieve the level of error (warning, error, exception) with the <code class="methodname">HTML_CSS_Error::getLevel() </code> method. </td> </tr> </table> </div> <p></p> <p>As usual you can use the PEAR error API as well. </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $css = new HTML_CSS(); $result = $css->setStyle('div', 'color', 5); if (PEAR::isError($result)) { // do something when an error is raised } ?> </pre> <p>and output to screen will give something like : </p> <div class="informalexample"><div class="screenco"> <pre class="screen"> Exception<a name="error.1.level"></a><img alt="1" border="0" src="img/callouts/1.gif">: invalid input, parameter #3 "$value" was expecting "string", instead got "integer"<a name="error.1.message"></a><img alt="2" border="0" src="img/callouts/2.gif"> in html_css->setstyle (file [path_to]\[filename] on line 6)<a name="error.1.context"></a><img alt="3" border="0" src="img/callouts/3.gif"> </pre> <div class="calloutlist"> <table border="0" summary="Callout list"> <tr> <td align="left" valign="top" width="5%"><a href="#error.1.level"><img alt="1" border="0" src="img/callouts/1.gif"></a> </td> <td align="left" valign="top"> <p>error level </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.1.message"><img alt="2" border="0" src="img/callouts/2.gif"></a> </td> <td align="left" valign="top"> <p>message body with context informations </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.1.context"><img alt="3" border="0" src="img/callouts/3.gif"></a> </td> <td align="left" valign="top"> <p>call context </p> </td> </tr> </table> </div> </div> </div> <p>Perhaps this standard behavior is not what you want. Don't worry, you can change everything : </p> <div class="itemizedlist"> <ul type="disc"> <li>display or ignore the error </li> <li>display or hide part of message (error level, body, context) </li> </ul> </div> <p></p> <p></p> <div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Important"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Important]" src="img/admons/important.png"></td> <th align="left">Important</th> </tr> <tr> <td align="left" valign="top"> HTML_CSS obey at <a class="external" href="http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors" title="http://www.php.net/manual/en/ref.errorfunc.php#ini.display-errors">display_errors</a> and <a class="external" href="http://www.php.net/manual/en/ref.errorfunc.php#ini.log-errors" title="http://www.php.net/manual/en/ref.errorfunc.php#ini.log-errors">log_errors</a> protocol </td> </tr> </table> </div> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re23.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pt03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch08s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::display</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Configuring a Handler </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch08s02.html +++ pear/HTML_CSS/docs/TDG/ch08s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Configuring a Handler </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch08.html" rel="up" title="Chapter 8. Error Handler"> <link href="ch08.html" rel="prev" title="Chapter 8. Error Handler"> <link href="ch08s03.html" rel="next" title="Controlling error generation "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Configuring a Handler </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch08.html">Prev</a> </td> <th align="center" width="60%">Chapter 8. Error Handler</th><td align="right" width="20%"> <a accesskey="n" href="ch08s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="id4787773"></a>Configuring a Handler </h2> </div> </div> </div> <p>A error handler's configuration is determined by the arguments used in its construction. Here's an overview of these parameters. </p> <pre class="programlisting"> require_once 'HTML/CSS.php'; $errorConf = array('error_handler' => 'myErrorHandler', 'push_callback' => 'myError', // ... more options ); $css = new HTML_CSS(null, $errorConf); </pre> <p></p> <div class="table"><a name="id4787802"></a> <p class="title"><b>Table 8.1. Error Handler configuration parameters </b></p> <table border="1" summary="Error Handler configuration parameters "> <colgroup><col><col><col></colgroup> <thead> <tr> <th>Option</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>error_handler</td> <td>callback</td> <td> A valid callback (function) to manage errors raised by the <code class="methodname">HTML_CSS::raiseError()</code> method. Default is: <code class="methodname">HTML_CSS::_errorHandler</code> </td> </tr> <tr> <td>push_callback</td> <td>callback</td> <td> A valid callback (function) that decides to following action. Default return: <code class="constant">PEAR_ERROR_DIE</code> if exception, <code class="constant">NULL</code> otherwise. </td> </tr> <tr> <td>message_callback</td> <td>callback</td> <td> A valid callback (function) to control message generation. Default is: <code class="methodname">HTML_CSS_Error::_msgCallback</code> </td> </tr> <tr> <td>context_callback</td> <td>callback</td> <td> A valid callback (function) to control error context generation. Default is: <code class="methodname">HTML_CSS_Error::getBacktrace</code> </td> </tr> <tr> <td>handler</td> <td>mixed</td> <td> any handler-specific settings </td> </tr> </tbody> </table> </div> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch08.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch08.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch08s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 8. Error Handler </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Controlling error generation </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch08s03.html +++ pear/HTML_CSS/docs/TDG/ch08s03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Controlling error generation </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch08.html" rel="up" title="Chapter 8. Error Handler"> <link href="ch08s02.html" rel="prev" title="Configuring a Handler "> <link href="ch08s04.html" rel="next" title="Error Context Display "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Controlling error generation </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch08s02.html">Prev</a> </td> <th align="center" width="60%">Chapter 8. Error Handler</th><td align="right" width="20%"> <a accesskey="n" href="ch08s04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="id4787943"></a>Controlling error generation </h2> </div> </div> </div> <p>There are many scenarios in which fine-grained control over error raising is absolutely necessary. </p> <p>The first level to control error generation is the <code class="filename">php.ini</code> directives <span class="emphasis"><em>display_errors</em></span> and <span class="emphasis"><em>log_errors</em></span>. When these directives are set to <code class="constant">TRUE</code>, then browser and file outputs are effective. </p> <p></p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Tip]" src="img/admons/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> If you want to ignore all errors raised (no display, no logs) and avoid to include PEAR core class, then you should have something like : <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; function myErrorHandler() { return null; } $errorConf = array('error_handler' => 'myErrorHandler'); $css = new HTML_CSS(null, $errorConf); // ... ?> </pre> </td> </tr> </table> </div> <p></p> <p>With <span class="bold"><strong>push_callback</strong></span> option, you can decides to stop script execution (as done with exceptions by default: returns <code class="constant">PEAR_ERROR_DIE</code> constant), or continue without filtering (returns <code class="constant">NULL</code>). </p> <p>If you want to write your own callback function for the <span class="emphasis"><em>push_callback</em></span> option, this one should have two arguments: first one will get the error code, and second will get error level. These are all the necessary informations to do a filtering. Example that follow show how to be aware that a script use wrong argument data type. </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; function myErrorFilter($code, $level) { if ($code === HTML_CSS_ERROR_INVALID_INPUT) { error_log('script: '.__FILE__.' used wrong argument data type', 1, 'admin@yoursite.com'); } return null; } $errorConf = array('push_callback' => 'myErrorFilter'); $css = new HTML_CSS(null, $errorConf); // ... ?> </pre> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch08s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch08.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch08s04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Configuring a Handler </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Error Context Display </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch08s04.html +++ pear/HTML_CSS/docs/TDG/ch08s04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Error Context Display </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch08.html" rel="up" title="Chapter 8. Error Handler"> <link href="ch08s03.html" rel="prev" title="Controlling error generation "> <link href="ch08s05.html" rel="next" title="Custom Error Message Generation "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Error Context Display </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch08s03.html">Prev</a> </td> <th align="center" width="60%">Chapter 8. Error Handler</th><td align="right" width="20%"> <a accesskey="n" href="ch08s05.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="id4788055"></a>Error Context Display </h2> </div> </div> </div> <p>In some cases, you may want to customize error generation. For instance, for each error (basic/exception), it is useful to include file, line number, and class/function context information in order to trace it. The default option will be sufficient for most cases but you want perhaps customize the output format (render) of context information. </p> <p>With this example we will change display and log renders. </p> <pre class="programlisting"> <?php require_once 'HTML/CSS.php'; $displayConfig = array( 'lineFormat' => '<b>%1$s</b>: %2$s<br />%3$s', 'contextFormat' => '<b>File:</b> %1$s <br />' . '<b>Line:</b> %2$s <br />' . '<b>Function:</b> %3$s ' ); $logConfig = array( 'lineFormat' => '%1$s %2$s [%3$s] %4$s', 'timeFormat' => '%b' ); $prefs = array( 'handler' => array('display' => $displayConfig, 'log' => $logConfig )); $css = new HTML_CSS(null, $prefs); // ... $result = $css->setStyle('div', 'color', 5); ?> </pre> <p></p> <p>Display render will give something like: </p> <div class="informalexample"><div class="screenco"> <pre class="screen"> Exception<a name="error.2.level"></a><img alt="1" border="0" src="img/callouts/1.gif">: invalid input, parameter #3 "$value" was expecting "string", instead got "integer"<a name="error.2.message"></a><img alt="2" border="0" src="img/callouts/2.gif"> File: [path_to]\[filename] <a name="error.2.context"></a><img alt="3" border="0" src="img/callouts/3.gif"> Line: 22 <a name="error.2.context"></a><img alt="3" border="0" src="img/callouts/3.gif"> Function: html_css->setstyle <a name="error.2.context"></a><img alt="3" border="0" src="img/callouts/3.gif"> </pre> <div class="calloutlist"> <table border="0" summary="Callout list"> <tr> <td align="left" valign="top" width="5%"><a href="#error.2.level"><img alt="1" border="0" src="img/callouts/1.gif"></a> </td> <td align="left" valign="top"> <p>error level </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.2.message"><img alt="2" border="0" src="img/callouts/2.gif"></a> </td> <td align="left" valign="top"> <p>message body with context informations </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.2.context"><img alt="3" border="0" src="img/callouts/3.gif"></a> </td> <td align="left" valign="top"> <p>call context (file, line, function) </p> </td> </tr> </table> </div> </div> </div> <p>Log render will give something like: </p> <div class="informalexample"><div class="screenco"> <pre class="screen"> Jun 127.0.0.1<a name="error.3.context"></a><img alt="1" border="0" src="img/callouts/1.gif"> [exception<a name="error.3.level"></a><img alt="2" border="0" src="img/callouts/2.gif">] invalid input, parameter #3 "$value" was expecting "string", instead got "integer"<a name="error.3.message"></a><img alt="3" border="0" src="img/callouts/3.gif"> </pre> <div class="calloutlist"> <table border="0" summary="Callout list"> <tr> <td align="left" valign="top" width="5%"><a href="#error.3.context"><img alt="1" border="0" src="img/callouts/1.gif"></a> </td> <td align="left" valign="top"> <p>client ip address and execution date </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.3.level"><img alt="2" border="0" src="img/callouts/2.gif"></a> </td> <td align="left" valign="top"> <p>error level </p> </td> </tr> <tr> <td align="left" valign="top" width="5%"><a href="#error.3.message"><img alt="3" border="0" src="img/callouts/3.gif"></a> </td> <td align="left" valign="top"> <p>message body with context informations </p> </td> </tr> </table> </div> </div> </div> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Note]" src="img/admons/note.png"></td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> To have both display and log output, check the <code class="filename">php.ini</code><span class="emphasis"><em>display_errors</em></span> and <span class="emphasis"><em>log_errors</em></span> values : must be set to <code class="constant">TRUE</code>. </td> </tr> </table> </div> <p>Let review, step by step, how to get such results. </p> <p>Remember that with default classes, there are two drivers : <span class="emphasis"><em>display</em></span> and <span class="emphasis"><em>log</em></span> that have both their own configuration parameters. You can override these parameters values with the <span class="bold"><strong>handler</strong></span> entry in the hash of second argument of the HTML_CSS class constructor. </p> <p>We did it here with the <em class="parameter"><code>$prefs</code></em> variable; its a two keys associative array. First key <span class="emphasis"><em>display</em></span> defines the display driver values, and the second key <span class="emphasis"><em>log</em></span> defines the log driver values. </p> <p>Review the <span class="emphasis"><em>display</em></span> driver custom values. Only two keys: <span class="simplelist">lineFormat, contextFormat</span> are redefined, thats means remains key <span class="simplelist">eol</span> keep its default value. See table below. </p> <p></p> <div class="table"><a name="id4788534"></a> <p class="title"><b>Table 8.2. Display driver configuration parameters </b></p> <table border="1" summary="Display driver configuration parameters "> <colgroup><col><col><col><col></colgroup> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Default</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>eol</td> <td>string</td> <td><br />\n</td> <td>The end-on-line character sequence </td> </tr> <tr> <td>lineFormat</td> <td>string</td> <td><b>%1$s</b>: %2$s %3$s</td> <td>Log line format specification: <div class="itemizedlist"> <ul type="disc"> <li>1$ = error level</li> <li>2$ = error message (body)</li> <li>3$ = error context</li> </ul> </div> </td> </tr> <tr> <td>contextFormat</td> <td>string</td> <td> in <b>%3$s</b> (file <b>%1$s</b> on line <b>%2$s</b>) </td> <td>Context format (class, file, line) specification: <div class="itemizedlist"> <ul type="disc"> <li>1$ = script file name </li> <li>2$ = line in script file </li> <li>3$ = class/method names </li> </ul> </div> </td> </tr> </tbody> </table> </div> <p></p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Tip]" src="img/admons/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> If you don't wish to see context information in the error message, then remove the parameter %3$ in the <span class="emphasis"><em>lineFormat</em></span> option even if <span class="emphasis"><em>contextFormat</em></span> is set. </td> </tr> </table> </div> <p></p> <p>Review now the <span class="emphasis"><em>log</em></span> driver custom values. Only two keys <span class="simplelist">lineFormat, timeFormat</span> are redefined, thats means six remains keys <span class="simplelist">eol, contextFormat, ident, message_type, destination, extra_headers</span> keep their default values. See table below. </p> <p></p> <div class="table"><a name="id4788725"></a> <p class="title"><b>Table 8.3. Log driver configuration parameters </b></p> <table border="1" summary="Log driver configuration parameters "> <colgroup><col><col><col><col></colgroup> <thead> <tr> <th>Parameter</th> <th>Type</th> <th>Default</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>eol</td> <td>string</td> <td>\n</td> <td>The end-on-line character sequence </td> </tr> <tr> <td>lineFormat</td> <td>string</td> <td>%1$s %2$s [%3$s] %4$s %5$s </td> <td>Log line format specification: <div class="itemizedlist"> <ul type="disc"> <li>$1 = time error</li> <li>2$ = ident (client ip)</li> <li>3$ = error level </li> <li>4$ = error message (body) </li> <li>5$ = error context </li> </ul> </div> </td> </tr> <tr> <td>contextFormat</td> <td>string</td> <td>in %3$s (file %1$s on line %2$s) </td> <td>Context format (class, file, line) specification: <div class="itemizedlist"> <ul type="disc"> <li>1$ = script file name </li> <li>2$ = line in script file </li> <li>3$ = class/method names </li> </ul> </div> </td> </tr> <tr> <td>timeFormat</td> <td>string</td> <td>%b %d %H:%M:%S </td> <td>Time stamp format used by <a class="external" href="http://www.php.net/manual-lookup.php?pattern=strftime" title="http://www.php.net/manual-lookup.php?pattern=strftime">strftime</a> </td> </tr> <tr> <td>ident</td> <td>string</td> <td>REMOTE_ADDR </td> <td>Client IP </td> </tr> <tr> <td>message_type</td> <td>string</td> <td>3 </td> <td>Destination type used by <a class="external" href="http://www.php.net/manual-lookup.php?pattern=error_log" title="http://www.php.net/manual-lookup.php?pattern=error_log">error_log</a> </td> </tr> <tr> <td>destination</td> <td>string</td> <td>html_css_error.log </td> <td>Destination name used by <a class="external" href="http://www.php.net/manual-lookup.php?pattern=error_log" title="http://www.php.net/manual-lookup.php?pattern=error_log">error_log</a> </td> </tr> <tr> <td>extra_headers</td> <td>string</td> <td><code class="constant">NULL</code> </td> <td>Extra headers depending of destination type </td> </tr> </tbody> </table> </div> <p></p> <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Tip"> <tr> <td align="center" rowspan="2" valign="top" width="48px"><img alt="[Tip]" src="img/admons/tip.png"></td> <th align="left">Tip</th> </tr> <tr> <td align="left" valign="top"> If you don't wish to see context information in the error message, then remove the parameter %5$ in the <span class="emphasis"><em>lineFormat</em></span> option even if <span class="emphasis"><em>contextFormat</em></span> is set. </td> </tr> </table> </div> <p></p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch08s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch08.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch08s05.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Controlling error generation </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Custom Error Message Generation </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/ch08s05.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/ch08s05.html +++ pear/HTML_CSS/docs/TDG/ch08s05.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Custom Error Message Generation </title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch08.html" rel="up" title="Chapter 8. Error Handler"> <link href="ch08s04.html" rel="prev" title="Error Context Display "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Custom Error Message Generation </th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch08s04.html">Prev</a> </td> <th align="center" width="60%">Chapter 8. Error Handler</th><td align="right" width="20%"> </td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="id4788981"></a>Custom Error Message Generation </h2> </div> </div> </div> <div class="toc"> <dl><dt><span class="sect2"><a href="ch08s05.html#id4788994">Option: message_callback </a></span></dt><dt><span class="sect2"><a href="ch08s05.html#id4789035">Option: context_callback </a></span></dt> </dl> </div> <p>There are two methods of <code class="classname">HTML_CSS_Error</code> designed for use with generating error messages efficiently. To use them, you must set the options below in the HTML_CSS class constructor (argument #2): </p> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4788994"></a>Option: message_callback </h3> </div> </div> </div> <p>The default message handling callback (<code class="methodname">HTML_CSS_Error::_getErrorMessage</code>) get an array mapping error codes to error message templates, like so: </p> <pre class="programlisting"> $messages = array( HTML_CSS_ERROR_UNKNOWN => 'unknown error', HTML_CSS_ERROR_INVALID_INPUT => 'invalid input, parameter #%paramnum% ' . '"%var%" was expecting ' . '"%expected%", instead got "%was%"' ); </pre> <p>Basically, if a variable name is enclosed in percent signs (%), it will be replaced with the value passed in the associative array. </p> </div> <div class="sect2" lang="en"><div class="titlepage"><div><div> <h3 class="title"><a name="id4789035"></a>Option: context_callback </h3> </div> </div> </div> <p>The default context handling callback (<code class="methodname">HTML_CSS_Error::getBackTrace</code>) gets an array of execution functions and discovers where the error was generated. </p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch08s04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch08.html">Up</a></td> <td align="right" width="40%"> </td> </tr> <tr> <td align="left" valign="top" width="40%">Error Context Display </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/index.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/index.html +++ pear/HTML_CSS/docs/TDG/index.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS Manual</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pr01.html" rel="next" title="Preface"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">HTML_CSS Manual</th> </tr> <tr> <td align="left" width="20%"> </td> <th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="pr01.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="book" lang="en"><div class="titlepage"><div><div> <h1 class="title"><a name="cssdoc"></a>HTML_CSS Manual</h1></div> <div> <h2 class="subtitle">First Edition</h2></div> <div><div class="authorgroup"> <h4 class="editedby">Edited by</h4> <h3 class="editor"><span class="firstname">Laurent</span> <span class="surname">Laville</span></h3></div> </div> <div> <p class="copyright">Copyright © 2006 Laurent Laville</p></div> <div><div class="legalnotice"><a name="copyright"></a> <p>This work is licensed under the Creative Commons Attribution License. To view a copy of this license, visit <a class="external" href="http://creativecommons.org/licenses/by/2.0/" title="http://creativecommons.org/licenses/by/2.0/">http://creativecommons.org/licenses/by/2.0/</a>. </p> </div> </div> <div><div class="revhistory"> <table border="1" summary="Revision history" width="100%"> <tr> <th align="left" colspan="2" valign="top"><b>Revision History</b></th> </tr> <tr> <td align="left">Revision 1.0.0</td> <td align="left">June 24, 2006</td> </tr> <tr> <td align="left" colspan="2">The first edition of this Guide is now completed. It cover version 1.0.0 (stable) of HTML_CSS. </td> </tr> </table> </div> </div> </div> <hr></div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="preface"><a href="pr01.html">Preface</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="pr01.html#preface.structure">Organization of This Book</a></span></dt><dt><span class="sect1"><a href="pr01s02.html">Pre-requisites</a></span></dt> </dl></dd><dt><span class="part"><a href="pt01.html">I. Introduction</a></span></dt> <dd> <dl><dt><span class="chapter"><a href="ch01.html">1. About HTML_CSS</a></span></dt><dt><span class="chapter"><a href="ch02.html">2. FAQ - Frequently Asked Questions</a></span></dt> </dl></dd><dt><span class="part"><a href="pt02.html">II. Getting Started</a></span></dt> <dd> <dl><dt><span class="chapter"><a href="ch03.html">3. Overview</a></span></dt><dt><span class="chapter"><a href="ch04.html">4. Grouping selectors</a></span></dt><dt><span class="chapter"><a href="ch05.html">5. Parsing data sources</a></span></dt><dt><span class="chapter"><a href="ch06.html">6. Output</a></span></dt> </dl></dd><dt><span class="part"><a href="pt03.html">III. Reference Guide</a></span></dt> <dd> <dl><dt><span class="chapter"><a href="ch07.html">7. API - Application Programming Interface</a></span></dt><dt><span class="chapter"><a href="ch08.html">8. Error Handler</a></span></dt> </dl></dd> </dl> </div> <div class="list-of-figures"> <p><b>List of Figures</b></p> <dl><dt>3.1. <a href="ch03s02.html#id4769744">Rule structure </a></dt> </dl> </div> <div class="list-of-tables"> <p><b>List of Tables</b></p> <dl><dt>8.1. <a href="ch08s02.html#id4787802">Error Handler configuration parameters </a></dt><dt>8.2. <a href="ch08s04.html#id4788534">Display driver configuration parameters </a></dt><dt>8.3. <a href="ch08s04.html#id4788725">Log driver configuration parameters </a></dt> </dl> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"> </td> <td align="center" width="20%"> </td> <td align="right" width="40%"> <a accesskey="n" href="pr01.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"> </td> <td align="center" width="20%"> </td> <td align="right" valign="top" width="40%"> Preface</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pr01.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/pr01.html +++ pear/HTML_CSS/docs/TDG/pr01.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Preface</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="index.html" rel="up" title="HTML_CSS Manual"> <link href="index.html" rel="prev" title="HTML_CSS Manual"> <link href="pr01s02.html" rel="next" title="Pre-requisites"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Preface</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="index.html">Prev</a> </td> <th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="pr01s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="preface" lang="en"><div class="titlepage"><div><div> <h2 class="title"><a name="preface"></a>Preface</h2></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="sect1"><a href="pr01.html#preface.structure">Organization of This Book</a></span></dt><dt><span class="sect1"><a href="pr01s02.html">Pre-requisites</a></span></dt> </dl> </div> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"> <a name="preface.structure"></a>Organization of This Book</h2></div> </div> </div> <p>This book is divided into three main parts, they are: </p> <p></p> <div class="itemizedlist"> <ul type="disc"> <li> <p><a href="pt01.html" title="Part I. Introduction">Introduction</a> </p> <p>This section contains a gentle introduction to what HTML_CSS is and has to offer. Included is general information about installing and using this PEAR package, and answers to frequently asked questions. </p></li> <li> <p><a href="pt02.html" title="Part II. Getting Started">Getting Started</a> </p> <p>This section is intended to provide a quick introduction to get started understanding, installing, and running the bundle examples. </p></li> <li> <p><a href="pt03.html" title="Part III. Reference Guide">Reference Guide</a> </p> <p>This section describes every API in the HTML_CSS package. The description of each function may contain some or all of the following parts: </p> <div class="itemizedlist"> <ul type="circle"> <li> <p>Synopsis</p> <p>Shows the structure and prototype of the function. </p></li> <li> <p>Description</p> <p>Gives a description about what the function does. </p></li> <li> <p>Parameter</p> <p>Describes each parameter for the function along with the paramater types and names. Both required and optional parameters are listed. </p></li> <li> <p>Returns</p> <p>Describes the returned value, if the function doesn't fail. </p></li> <li> <p>Throws</p> <p>Describes the returned <code class="classname">PEAR_Error</code> objects, if the function fails. </p></li> <li> <p>Note</p> <p>Additional notes and information about the function. An example note would be if the function can be called statically. </p></li> <li> <p>See</p> <p>Links to other related functions or manual entries. </p></li> <li> <p>Example</p> <p>An example use of the function or class. </p></li> </ul> </div> <p></p></li> </ul> </div> <p></p> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="index.html">Prev</a> </td> <td align="center" width="20%"> </td> <td align="right" width="40%"> <a accesskey="n" href="pr01s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">HTML_CSS Manual </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Pre-requisites</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pr01s02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/pr01s02.html +++ pear/HTML_CSS/docs/TDG/pr01s02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Pre-requisites</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="pr01.html" rel="up" title="Preface"> <link href="pr01.html" rel="prev" title="Preface"> <link href="pt01.html" rel="next" title="Part I. Introduction"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Pre-requisites</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="pr01.html">Prev</a> </td> <th align="center" width="60%">Preface</th><td align="right" width="20%"> <a accesskey="n" href="pt01.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="sect1" lang="en"><div class="titlepage"><div><div> <h2 class="title" style="clear: both"><a name="preface.requires"></a>Pre-requisites</h2></div> </div> </div> <p>It is assumed that you have installed both <a class="external" href="http://www.php.net/" title="http://www.php.net/">PHP</a> and <a class="external" href="http://pear.php.net/" title="http://pear.php.net/">PEAR</a>, and that you have rudimentary knowledge of PHP, HTML and CSS. </p> <p>It is also assumed that your PHP scripts are correctly interpreted by your web server. In most case it will be probably Apache, but you may also have IIS. HTML_CSS runs both on Windows and *nix. </p> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="pr01.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="pr01.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="pt01.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Preface </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Part I. Introduction</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt01.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/pt01.html +++ pear/HTML_CSS/docs/TDG/pt01.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Part I. Introduction</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="index.html" rel="up" title="HTML_CSS Manual"> <link href="pr01s02.html" rel="prev" title="Pre-requisites"> <link href="ch01.html" rel="next" title="Chapter 1. About HTML_CSS"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Part I. Introduction</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="pr01s02.html">Prev</a> </td> <th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch01.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="part" lang="en"><div class="titlepage"><div><div> <h1 class="title"><a name="about"></a>Part I. Introduction</h1></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="chapter"><a href="ch01.html">1. About HTML_CSS</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch01.html#intro.qfams">What is HTML_CSS ?</a></span></dt><dt><span class="sect1"><a href="ch01s02.html">Intended Audience</a></span></dt><dt><span class="sect1"><a href="ch01s03.html">Why use HTML_CSS ?</a></span></dt> </dl></dd><dt><span class="chapter"><a href="ch02.html">2. FAQ - Frequently Asked Questions</a></span></dt> </dl> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="pr01s02.html">Prev</a> </td> <td align="center" width="20%"> </td> <td align="right" width="40%"> <a accesskey="n" href="ch01.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Pre-requisites </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 1. About HTML_CSS</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/pt02.html +++ pear/HTML_CSS/docs/TDG/pt02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Part II. Getting Started</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="index.html" rel="up" title="HTML_CSS Manual"> <link href="ch02.html" rel="prev" title="Chapter 2. FAQ - Frequently Asked Questions"> <link href="ch03.html" rel="next" title="Chapter 3. Overview"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Part II. Getting Started</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch02.html">Prev</a> </td> <th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="part" lang="en"><div class="titlepage"><div><div> <h1 class="title"><a name="guide.developers"></a>Part II. Getting Started</h1></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="chapter"><a href="ch03.html">3. Overview</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch03.html#developers.intro.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch03s02.html">Basic concepts</a></span></dt> </dl></dd><dt><span class="chapter"><a href="ch04.html">4. Grouping selectors</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch04.html#developers.group.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch04s02.html">Create group</a></span></dt><dt><span class="sect1"><a href="ch04s03.html">Handle group selector</a></span></dt> </dl></dd><dt><span class="chapter"><a href="ch05.html">5. Parsing data sources</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch05.html#developers.parse.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch05s02.html">Parse a simple string</a></span></dt><dt><span class="sect1"><a href="ch05s03.html">Parse a file contents</a></span></dt><dt><span class="sect1"><a href="ch05s04.html">Parse multi data sources </a></span></dt><dt><span class="sect1"><a href="ch05s05.html">Allow duplicate definitions</a></span></dt> </dl></dd><dt><span class="chapter"><a href="ch06.html">6. Output</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch06.html#developers.output.purpose">In brief</a></span></dt><dt><span class="sect1"><a href="ch06s02.html">To Array</a></span></dt><dt><span class="sect1"><a href="ch06s03.html">To Inline</a></span></dt><dt><span class="sect1"><a href="ch06s04.html">To File</a></span></dt><dt><span class="sect1"><a href="ch06s05.html">To String</a></span></dt><dt><span class="sect1"><a href="ch06s06.html">Display</a></span></dt> </dl></dd> </dl> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch02.html">Prev</a> </td> <td align="center" width="20%"> </td> <td align="right" width="40%"> <a accesskey="n" href="ch03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 2. FAQ - Frequently Asked Questions </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 3. Overview</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/pt03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/pt03.html +++ pear/HTML_CSS/docs/TDG/pt03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>Part III. Reference Guide</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="index.html" rel="up" title="HTML_CSS Manual"> <link href="ch06s06.html" rel="prev" title="Display"> <link href="ch07.html" rel="next" title="Chapter 7. API - Application Programming Interface"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">Part III. Reference Guide</th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch06s06.html">Prev</a> </td> <th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch07.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="part" lang="en"><div class="titlepage"><div><div> <h1 class="title"><a name="guide.reference"></a>Part III. Reference Guide</h1></div> </div> </div> <div class="toc"> <p><b>Table of Contents</b></p> <dl><dt><span class="chapter"><a href="ch07.html">7. API - Application Programming Interface</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch07.html#reference.api.basic">Handle selector and property values</a></span></dt><dt><span class="sect1"><a href="ch07s02.html">Grouping selectors</a></span></dt><dt><span class="sect1"><a href="ch07s03.html">Parsing data sources</a></span></dt><dt><span class="sect1"><a href="ch07s04.html">Output </a></span></dt> </dl></dd><dt><span class="chapter"><a href="ch08.html">8. Error Handler</a></span></dt> <dd> <dl><dt><span class="sect1"><a href="ch08.html#id4786957">Introduction</a></span></dt><dt><span class="sect1"><a href="ch08s02.html">Configuring a Handler </a></span></dt><dt><span class="sect1"><a href="ch08s03.html">Controlling error generation </a></span></dt><dt><span class="sect1"><a href="ch08s04.html">Error Context Display </a></span></dt><dt><span class="sect1"><a href="ch08s05.html">Custom Error Message Generation </a></span></dt> </dl></dd> </dl> </div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch06s06.html">Prev</a> </td> <td align="center" width="20%"> </td> <td align="right" width="40%"> <a accesskey="n" href="ch07.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Display </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 7. API - Application Programming Interface</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re01.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re01.html +++ pear/HTML_CSS/docs/TDG/re01.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setXhtmlCompliance</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4771361" rel="up" title=""> <link href="ch07.html" rel="prev" title="Chapter 7. API - Application Programming Interface"> <link href="re02.html" rel="next" title="HTML_CSS::parseFile"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setXhtmlCompliance</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch07.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setxhtmlcompliance"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setXhtmlCompliance</code> — Sets XHTML compliance</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setXhtmlCompliance</b>(</code></td> <td><var class="pdparam">$value</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>bool </td> <td><var class="pdparam">$value</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setxhtmlcompliance.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setxhtmlcompliance.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$value</code></em> </span></dt> <dd> <p>Boolean value </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setxhtmlcompliance.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setxhtmlcompliance.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.2 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch07.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4771361">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Chapter 7. API - Application Programming Interface </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::parseFile</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re02.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re02.html +++ pear/HTML_CSS/docs/TDG/re02.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::parseFile</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4772368" rel="up" title=""> <link href="re01.html" rel="prev" title="HTML_CSS::setXhtmlCompliance"> <link href="re03.html" rel="next" title="HTML_CSS::setCache"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::parseFile</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re01.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.parsefile"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::parseFile</code> — Parse a file that contains CSS information</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::parseFile</b>(</code></td> <td><var class="pdparam">$filename</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$filename</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$filename</code></em> </span></dt> <dd> <p>file to parse </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allow or disallow duplicates. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re16.html" title="HTML_CSS::parseString"><code class="function">HTML_CSS::parseString</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_FILE </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re01.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4772368">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setXhtmlCompliance</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setCache</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re03.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re03.html +++ pear/HTML_CSS/docs/TDG/re03.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setCache</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4773194" rel="up" title=""> <link href="re02.html" rel="prev" title="HTML_CSS::parseFile"> <link href="re04.html" rel="next" title="HTML_CSS::setSingleLineOutput"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setCache</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re02.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setcache"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setCache</code> — Defines if the document should be cached by the browser. Defaults to false.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setCache</b>(</code></td> <td><var class="pdparam"> $cache = TRUE</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>bool </td> <td><var class="pdparam"> $cache = TRUE</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setcache.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setcache.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$cache</code></em> </span></dt> <dd> <p>(optional) </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setcache.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setcache.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4773194">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::parseFile</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setSingleLineOutput</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re04.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re04.html +++ pear/HTML_CSS/docs/TDG/re04.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setSingleLineOutput</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4772557" rel="up" title=""> <link href="re03.html" rel="prev" title="HTML_CSS::setCache"> <link href="re05.html" rel="next" title="HTML_CSS::setOutputGroupsFirst"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setSingleLineOutput</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re03.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re05.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setsinglelineoutput"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setSingleLineOutput</code> — Determines whether definitions are output single line or multiline</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setSingleLineOutput</b>(</code></td> <td><var class="pdparam">$value</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$value </var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td> Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 </td> <td><var class="pdparam">$value</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam">$value </var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsinglelineoutput.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsinglelineoutput.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type"></span> <em class="parameter"><code>$value</code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$value </code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsinglelineoutput.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsinglelineoutput.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.3 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4772557">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re05.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setCache</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setOutputGroupsFirst</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re05.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re05.html +++ pear/HTML_CSS/docs/TDG/re05.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setOutputGroupsFirst</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4773622" rel="up" title=""> <link href="re04.html" rel="prev" title="HTML_CSS::setSingleLineOutput"> <link href="re06.html" rel="next" title="constructor HTML_CSS::HTML_CSS"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setOutputGroupsFirst</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re04.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re06.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setoutputgroupsfirst"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setOutputGroupsFirst</code> — Determines whether groups are output before elements or not</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setOutputGroupsFirst</b>(</code></td> <td><var class="pdparam">$value</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$value </var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td> Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 </td> <td><var class="pdparam">$value</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam">$value </var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setoutputgroupsfirst.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setoutputgroupsfirst.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type"></span> <em class="parameter"><code>$value</code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$value </code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setoutputgroupsfirst.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setoutputgroupsfirst.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.3 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4773622">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re06.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setSingleLineOutput</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> constructor <code class="function">HTML_CSS::HTML_CSS</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re06.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re06.html +++ pear/HTML_CSS/docs/TDG/re06.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>constructor HTML_CSS::HTML_CSS</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#id4771353" rel="up" title=""> <link href="re05.html" rel="prev" title="HTML_CSS::setOutputGroupsFirst"> <link href="re07.html" rel="next" title="HTML_CSS::getStyle"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3">constructor <code class="function">HTML_CSS::HTML_CSS</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re05.html">Prev</a> </td> <th align="center" width="60%"></th> <td align="right" width="20%"> <a accesskey="n" href="re07.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.html-css"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p>constructor <code class="function">HTML_CSS::HTML_CSS</code> — Class constructor</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void constructor <b class="fsfunc">HTML_CSS::HTML_CSS</b>(</code></td> <td><var class="pdparam"> $attributes = array()</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $errorPrefs = array()</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$prefs</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>array </td> <td><var class="pdparam"> $attributes = array()</var>;</td> </tr> <tr> <td> Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 </td> <td><var class="pdparam"> $errorPrefs = array()</var>;</td> </tr> <tr> <td>array </td> <td><var class="pdparam">$prefs</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.html-css.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.html-css.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">array</span> <em class="parameter"><code>$attributes</code></em> </span></dt> <dd> <p>(optional) Pass options to the constructor. Valid options are : </p> <div class="itemizedlist"> <ul type="disc"> <li> <p>xhtml (sets xhtml compliance),</p></li> <li> <p>tab (sets indent string),</p></li> <li> <p>filename (name of file to be parsed),</p></li> <li> <p>cache (determines whether the nocache headers are sent),</p></li> <li> <p>oneline (whether to output each definition on one line),</p></li> <li> <p>groupsfirst (determines whether to output groups before elements)</p></li> <li> <p>allowduplicates (allow to have duplicate rules in selector)</p></li> </ul> </div> <p></p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type"></span> <em class="parameter"><code>$errorPrefs</code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">array</span> <em class="parameter"><code>$prefs</code></em> </span></dt> <dd> <p>(optional) has to configure error handler </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.html-css.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> no exceptions thrown </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.html-css.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re05.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#id4771353">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re07.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setOutputGroupsFirst</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::getStyle</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re07.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re07.html +++ pear/HTML_CSS/docs/TDG/re07.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::getStyle</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#reference.api.basic" rel="up" title="Handle selector and property values"> <link href="re06.html" rel="prev" title="constructor HTML_CSS::HTML_CSS"> <link href="re08.html" rel="next" title="HTML_CSS::setStyle"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::getStyle</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re06.html">Prev</a> </td> <th align="center" width="60%">Handle selector and property values</th><td align="right" width="20%"> <a accesskey="n" href="re08.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.getstyle"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::getStyle</code> — Retrieves the value of a CSS property</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">mixed|PEAR_Error <b class="fsfunc">HTML_CSS::getStyle</b>(</code></td> <td><var class="pdparam">$element</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$property</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$element</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$property</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getstyle.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getstyle.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$element</code></em> </span></dt> <dd> <p>Element (or class) to be defined </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$property</code></em> </span></dt> <dd> <p>Property defined </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getstyle.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re08.html" title="HTML_CSS::setStyle"><code class="function">HTML_CSS::setStyle</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getstyle.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_ELEMENT, HTML_CSS_ERROR_NO_ELEMENT_PROPERTY </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getstyle.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re06.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#reference.api.basic">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re08.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">constructor <code class="function">HTML_CSS::HTML_CSS</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setStyle</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re08.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re08.html +++ pear/HTML_CSS/docs/TDG/re08.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setStyle</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07.html#reference.api.basic" rel="up" title="Handle selector and property values"> <link href="re07.html" rel="prev" title="HTML_CSS::getStyle"> <link href="ch07s02.html" rel="next" title="Grouping selectors"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setStyle</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re07.html">Prev</a> </td> <th align="center" width="60%">Handle selector and property values</th><td align="right" width="20%"> <a accesskey="n" href="ch07s02.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setstyle"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setStyle</code> — Sets or adds a CSS definition</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setStyle</b>(</code></td> <td><var class="pdparam">$element</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$property</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$value</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$element</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$property</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$value</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setstyle.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setstyle.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$element</code></em> </span></dt> <dd> <p>Element (or class) to be defined </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$property</code></em> </span></dt> <dd> <p>Property defined </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$value</code></em> </span></dt> <dd> <p>Value assigned </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allow or disallow duplicates. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setstyle.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re07.html" title="HTML_CSS::getStyle"><code class="function">HTML_CSS::getStyle</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setstyle.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setstyle.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re07.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07.html#reference.api.basic">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch07s02.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::getStyle</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Grouping selectors</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re09.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re09.html +++ pear/HTML_CSS/docs/TDG/re09.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::createGroup</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="ch07s02.html" rel="prev" title="Grouping selectors"> <link href="re10.html" rel="next" title="HTML_CSS::unsetGroup"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::createGroup</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch07s02.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re10.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.creategroup"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::createGroup</code> — Creates a new CSS definition group. Returns an integer identifying the group.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">mixed|PEAR_Error <b class="fsfunc">HTML_CSS::createGroup</b>(</code></td> <td><var class="pdparam">$selectors</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $group = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$selectors</var>;</td> </tr> <tr> <td>mixed </td> <td><var class="pdparam"> $group = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.creategroup.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.creategroup.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$selectors</code></em> </span></dt> <dd> <p>Selector(s) to be defined, comma delimited. </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>(optional) Group identifier. If not passed, will return an automatically assigned integer. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.creategroup.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re10.html" title="HTML_CSS::unsetGroup"><code class="function">HTML_CSS::unsetGroup</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.creategroup.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_INVALID_GROUP </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.creategroup.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch07s02.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re10.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Grouping selectors </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::unsetGroup</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re10.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re10.html +++ pear/HTML_CSS/docs/TDG/re10.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::unsetGroup</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re09.html" rel="prev" title="HTML_CSS::createGroup"> <link href="re11.html" rel="next" title="HTML_CSS::getGroupStyle"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::unsetGroup</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re09.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re11.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.unsetgroup"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::unsetGroup</code> — Sets or adds a CSS definition for a CSS definition group</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::unsetGroup</b>(</code></td> <td><var class="pdparam">$group</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>mixed </td> <td><var class="pdparam">$group</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.unsetgroup.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.unsetgroup.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>CSS definition group identifier </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.unsetgroup.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re09.html" title="HTML_CSS::createGroup"><code class="function">HTML_CSS::createGroup</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.unsetgroup.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_GROUP </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.unsetgroup.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re09.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re11.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::createGroup</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::getGroupStyle</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re11.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re11.html +++ pear/HTML_CSS/docs/TDG/re11.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::getGroupStyle</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re10.html" rel="prev" title="HTML_CSS::unsetGroup"> <link href="re12.html" rel="next" title="HTML_CSS::setGroupStyle"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::getGroupStyle</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re10.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re12.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.getgroupstyle"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::getGroupStyle</code> — Returns a CSS definition for a CSS definition group</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">mixed|PEAR_Error <b class="fsfunc">HTML_CSS::getGroupStyle</b>(</code></td> <td><var class="pdparam">$group</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$property</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>mixed </td> <td><var class="pdparam">$group</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$property</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getgroupstyle.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getgroupstyle.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>CSS definition group identifier </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$property</code></em> </span></dt> <dd> <p>Property defined </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getgroupstyle.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re12.html" title="HTML_CSS::setGroupStyle"><code class="function">HTML_CSS::setGroupStyle</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getgroupstyle.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_GROUP, HTML_CSS_ERROR_NO_ELEMENT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.getgroupstyle.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re10.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re12.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::unsetGroup</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setGroupStyle</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re12.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re12.html +++ pear/HTML_CSS/docs/TDG/re12.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setGroupStyle</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re11.html" rel="prev" title="HTML_CSS::getGroupStyle"> <link href="re13.html" rel="next" title="HTML_CSS::addGroupSelector"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setGroupStyle</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re11.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re13.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setgroupstyle"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setGroupStyle</code> — Sets or adds a CSS definition for a CSS definition group</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|int|PEAR_Error <b class="fsfunc">HTML_CSS::setGroupStyle</b>(</code></td> <td><var class="pdparam">$group</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$property</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$value</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>mixed </td> <td><var class="pdparam">$group</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$property</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$value</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>CSS definition group identifier </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$property</code></em> </span></dt> <dd> <p>Property defined </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$value</code></em> </span></dt> <dd> <p>Value assigned </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allow or disallow duplicates. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.returns"></a> <h2>Return value</h2> <p><span class="emphasis"><em>returns</em></span> Returns an integer if duplicates are allowed. </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re11.html" title="HTML_CSS::getGroupStyle"><code class="function">HTML_CSS::getGroupStyle</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_GROUP </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setgroupstyle.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re11.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re13.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::getGroupStyle</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::addGroupSelector</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re13.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re13.html +++ pear/HTML_CSS/docs/TDG/re13.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::addGroupSelector</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re12.html" rel="prev" title="HTML_CSS::setGroupStyle"> <link href="re14.html" rel="next" title="HTML_CSS::removeGroupSelector"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::addGroupSelector</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re12.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re14.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.addgroupselector"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::addGroupSelector</code> — Adds a selector to a CSS definition group.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::addGroupSelector</b>(</code></td> <td><var class="pdparam">$group</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$selectors</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>mixed </td> <td><var class="pdparam">$group</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$selectors</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.addgroupselector.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.addgroupselector.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>CSS definition group identifier </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$selectors</code></em> </span></dt> <dd> <p>Selector(s) to be defined, comma delimited. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.addgroupselector.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_NO_GROUP, HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.addgroupselector.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re12.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re14.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::setGroupStyle</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::removeGroupSelector</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re14.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re14.html +++ pear/HTML_CSS/docs/TDG/re14.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::removeGroupSelector</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re13.html" rel="prev" title="HTML_CSS::addGroupSelector"> <link href="re15.html" rel="next" title="HTML_CSS::setSameStyle"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::removeGroupSelector</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re13.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="re15.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.removegroupselector"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::removeGroupSelector</code> — Removes a selector from a group.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::removeGroupSelector</b>(</code></td> <td><var class="pdparam">$group</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$selectors</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>mixed </td> <td><var class="pdparam">$group</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$selectors</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.removegroupselector.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.removegroupselector.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">mixed</span> <em class="parameter"><code>$group</code></em> </span></dt> <dd> <p>CSS definition group identifier </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$selectors</code></em> </span></dt> <dd> <p>Selector(s) to be removed, comma delimited. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.removegroupselector.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_NO_GROUP, HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.removegroupselector.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re13.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re15.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::addGroupSelector</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::setSameStyle</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re15.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re15.html +++ pear/HTML_CSS/docs/TDG/re15.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::setSameStyle</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s02.html" rel="up" title="Grouping selectors"> <link href="re14.html" rel="prev" title="HTML_CSS::removeGroupSelector"> <link href="ch07s03.html" rel="next" title="Parsing data sources"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::setSameStyle</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re14.html">Prev</a> </td> <th align="center" width="60%">Grouping selectors</th><td align="right" width="20%"> <a accesskey="n" href="ch07s03.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.setsamestyle"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::setSameStyle</code> — Sets or changes the properties of new selectors to the values of an existing selector</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::setSameStyle</b>(</code></td> <td><var class="pdparam">$new</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam">$old</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$new</var>;</td> </tr> <tr> <td>string </td> <td><var class="pdparam">$old</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsamestyle.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsamestyle.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$new</code></em> </span></dt> <dd> <p>New selector(s) that should share the same definitions, separated by commas </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$old</code></em> </span></dt> <dd> <p>Selector that is already defined </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsamestyle.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_ELEMENT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.setsamestyle.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re14.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s02.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch07s03.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::removeGroupSelector</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Parsing data sources</td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re16.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re16.html +++ pear/HTML_CSS/docs/TDG/re16.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::parseString</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s03.html" rel="up" title="Parsing data sources"> <link href="ch07s03.html" rel="prev" title="Parsing data sources"> <link href="re17.html" rel="next" title="HTML_CSS::parseFile"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::parseString</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch07s03.html">Prev</a> </td> <th align="center" width="60%">Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="re17.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.parsestring"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::parseString</code> — Parse a textstring that contains css information</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::parseString</b>(</code></td> <td><var class="pdparam">$str</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$str</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsestring.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsestring.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$str</code></em> </span></dt> <dd> <p>text string to parse </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allows or disallows duplicate style definitions </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsestring.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re09.html" title="HTML_CSS::createGroup"><code class="function">HTML_CSS::createGroup</code></a>, <a href="re12.html" title="HTML_CSS::setGroupStyle"><code class="function">HTML_CSS::setGroupStyle</code></a>, <a href="re08.html" title="HTML_CSS::setStyle"><code class="function">HTML_CSS::setStyle</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsestring.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsestring.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch07s03.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re17.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Parsing data sources </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::parseFile</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re17.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re17.html +++ pear/HTML_CSS/docs/TDG/re17.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::parseFile</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s03.html" rel="up" title="Parsing data sources"> <link href="re16.html" rel="prev" title="HTML_CSS::parseString"> <link href="re18.html" rel="next" title="HTML_CSS::parseData"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::parseFile</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re16.html">Prev</a> </td> <th align="center" width="60%">Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="re18.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.parsefile"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::parseFile</code> — Parse a file that contains CSS information</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::parseFile</b>(</code></td> <td><var class="pdparam">$filename</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$filename</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$filename</code></em> </span></dt> <dd> <p>file to parse </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allow or disallow duplicates. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re16.html" title="HTML_CSS::parseString"><code class="function">HTML_CSS::parseString</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_FILE </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsefile.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re16.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re18.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::parseString</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::parseData</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re18.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re18.html +++ pear/HTML_CSS/docs/TDG/re18.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::parseData</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s03.html" rel="up" title="Parsing data sources"> <link href="re17.html" rel="prev" title="HTML_CSS::parseFile"> <link href="ch07s04.html" rel="next" title="Output "> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::parseData</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re17.html">Prev</a> </td> <th align="center" width="60%">Parsing data sources</th><td align="right" width="20%"> <a accesskey="n" href="ch07s04.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.parsedata"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::parseData</code> — Parse data sources, file(s) or string(s), that contains CSS information</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::parseData</b>(</code></td> <td><var class="pdparam">$styles</var>, </td> <td> </td> </tr> <tr> <td> </td> <td><var class="pdparam"> $duplicates = NULL</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>array </td> <td><var class="pdparam">$styles</var>;</td> </tr> <tr> <td>bool </td> <td><var class="pdparam"> $duplicates = NULL</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsedata.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsedata.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">array</span> <em class="parameter"><code>$styles</code></em> </span></dt> <dd> <p>data sources to parse </p></dd> </dl> </div> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">boolean</span> <em class="parameter"><code>$duplicates</code></em> </span></dt> <dd> <p>(optional) Allow or disallow duplicates. </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsedata.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re16.html" title="HTML_CSS::parseString"><code class="function">HTML_CSS::parseString</code></a>, <a href="re02.html" title="HTML_CSS::parseFile"><code class="function">HTML_CSS::parseFile</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsedata.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.parsedata.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 1.0.0RC2 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re17.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s03.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch07s04.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::parseFile</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Output </td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re19.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re19.html +++ pear/HTML_CSS/docs/TDG/re19.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::toArray</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s04.html" rel="up" title="Output "> <link href="ch07s04.html" rel="prev" title="Output "> <link href="re20.html" rel="next" title="HTML_CSS::toInline"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::toArray</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="ch07s04.html">Prev</a> </td> <th align="center" width="60%">Output </th> <td align="right" width="20%"> <a accesskey="n" href="re20.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.toarray"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::toArray</code> — Returns the array of CSS properties</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <p><code class="funcdef">array <b class="fsfunc">HTML_CSS::toArray</b>(</code><code>)</code>;<br>;</p></div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toarray.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toarray.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> no exceptions thrown </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toarray.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="ch07s04.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re20.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%">Output </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::toInline</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re20.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re20.html +++ pear/HTML_CSS/docs/TDG/re20.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::toInline</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s04.html" rel="up" title="Output "> <link href="re19.html" rel="prev" title="HTML_CSS::toArray"> <link href="re21.html" rel="next" title="HTML_CSS::toFile"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::toInline</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re19.html">Prev</a> </td> <th align="center" width="60%">Output </th> <td align="right" width="20%"> <a accesskey="n" href="re21.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.toinline"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::toInline</code> — Generates and returns the CSS properties of an element or class as a string for inline use.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">string|PEAR_Error <b class="fsfunc">HTML_CSS::toInline</b>(</code></td> <td><var class="pdparam">$element</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td>string </td> <td><var class="pdparam">$element</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toinline.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toinline.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type">string</span> <em class="parameter"><code>$element</code></em> </span></dt> <dd> <p>Element or class for which inline CSS should be generated </p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toinline.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.toinline.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re19.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re21.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::toArray</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::toFile</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re21.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re21.html +++ pear/HTML_CSS/docs/TDG/re21.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::toFile</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s04.html" rel="up" title="Output "> <link href="re20.html" rel="prev" title="HTML_CSS::toInline"> <link href="re22.html" rel="next" title="HTML_CSS::toString"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::toFile</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re20.html">Prev</a> </td> <th align="center" width="60%">Output </th> <td align="right" width="20%"> <a accesskey="n" href="re22.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.tofile"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::toFile</code> — Generates CSS and stores it in a file.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <table border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 1em" summary="Function synopsis"> <tr> <td><code class="funcdef">void|PEAR_Error <b class="fsfunc">HTML_CSS::toFile</b>(</code></td> <td><var class="pdparam">$filename</var><code>)</code>;</td> <td> </td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" summary="Function argument synopsis"> <tr> <td> Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 Warning: strpos() [function.strpos]: Empty delimiter. in S:\HTML_CSS\b164b286780fde68a4f3d60b28d16aaa\%%-14^%%-1407541581^method.tpl.php on line 49 </td> <td><var class="pdparam">$filename</var>;</td> </tr> </table> </div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tofile.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tofile.param"></a> <h2>Parameter</h2> <p></p> <div class="variablelist"> <dl><dt><span class="term"> <span class="type"></span> <em class="parameter"><code>$filename</code></em> </span></dt> <dd> <p></p></dd> </dl> </div> <p></p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tofile.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re22.html" title="HTML_CSS::toString"><code class="function">HTML_CSS::toString</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tofile.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_WRITE_FILE </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tofile.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.3.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re20.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re22.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::toInline</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::toString</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re22.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re22.html +++ pear/HTML_CSS/docs/TDG/re22.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::toString</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s04.html" rel="up" title="Output "> <link href="re21.html" rel="prev" title="HTML_CSS::toFile"> <link href="re23.html" rel="next" title="HTML_CSS::display"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::toString</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re21.html">Prev</a> </td> <th align="center" width="60%">Output </th> <td align="right" width="20%"> <a accesskey="n" href="re23.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.tostring"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::toString</code> — Generates and returns the complete CSS as a string.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <p><code class="funcdef">string <b class="fsfunc">HTML_CSS::toString</b>(</code><code>)</code>;<br>;</p></div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tostring.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tostring.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> no exceptions thrown </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.tostring.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re21.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="re23.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::toFile</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> <code class="function">HTML_CSS::display</code></td> </tr> </table> </div> </body> </html> http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/docs/TDG/re23.html?view=markup&rev=1.1 Index: pear/HTML_CSS/docs/TDG/re23.html +++ pear/HTML_CSS/docs/TDG/re23.html <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> <title>HTML_CSS::display</title> <link href="book.css" rel="stylesheet" type="text/css"> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"> <link href="index.html" rel="start" title="HTML_CSS Manual"> <link href="ch07s04.html" rel="up" title="Output "> <link href="re22.html" rel="prev" title="HTML_CSS::toString"> <link href="ch08.html" rel="next" title="Chapter 8. Error Handler"> </head> <body alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"> <table class="htmlcssHeader"> <tr> <td><img align="left" alt="PEAR logo" src="img/pearsmall.gif"> <h1>HTML_CSS : The Definitive Guide</h1> <p> <div class="navheader"> <table summary="Navigation header" width="100%"> <tr> <th align="center" colspan="3"><code class="function">HTML_CSS::display</code></th> </tr> <tr> <td align="left" width="20%"><a accesskey="p" href="re22.html">Prev</a> </td> <th align="center" width="60%">Output </th> <td align="right" width="20%"> <a accesskey="n" href="ch08.html">Next</a></td> </tr> </table> </div></p> </td> </tr> </table> <div class="refentry" lang="en"><a name="package.html.html-css.html-css.display"></a><div class="titlepage"></div> <div class="refnamediv"> <h2>Name</h2> <p><code class="function">HTML_CSS::display</code> — Outputs the stylesheet to the browser.</p></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2><div class="funcsynopsis"> <pre class="funcsynopsisinfo"> require_once '/CSS.php'; </pre> <p><code class="funcdef">void <b class="fsfunc">HTML_CSS::display</b>(</code><code>)</code>;<br>;</p></div> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.display.desc"></a> <h2>Description</h2> <p>This package is not documented yet.</p></div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.display.throws"></a> <h2>Throws</h2> <p><span class="emphasis"><em>throws</em></span> no exceptions thrown </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.display.see"></a> <h2>See</h2> <p><span class="emphasis"><em>see</em></span> <a href="re22.html" title="HTML_CSS::toString"><code class="function">HTML_CSS::toString</code></a> </p> </div> <div class="refsect1" lang="en"><a name="package.html.html-css.html-css.display.note"></a> <h2>Note</h2> <p><span class="emphasis"><em>since</em></span> 0.2.0 </p> <p>This function can not be called statically.</p></div> </div> <table class="htmlcssFooter"> <tr> <td align="left">HTML_CSS : The Definitive Guide</td> <td align="right">v 1.0.0 : June 24, 2006</td> </tr> </table> <div class="navfooter"><hr> <table summary="Navigation footer" width="100%"> <tr> <td align="left" width="40%"><a accesskey="p" href="re22.html">Prev</a> </td> <td align="center" width="20%"><a accesskey="u" href="ch07s04.html">Up</a></td> <td align="right" width="40%"> <a accesskey="n" href="ch08.html">Next</a></td> </tr> <tr> <td align="left" valign="top" width="40%"><code class="function">HTML_CSS::toString</code> </td> <td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td> <td align="right" valign="top" width="40%"> Chapter 8. Error Handler</td> </tr> </table> </div> </body> </html>