| 1 |
jonen |
1.1 |
<?xml version="1.0" encoding="iso-8859-1"?>
|
| 2 |
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
| 3 |
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
| 4 |
|
|
<head>
|
| 5 |
|
|
<!-- template designed by Marco Von Ballmoos -->
|
| 6 |
|
|
<title>Getting Started</title>
|
| 7 |
|
|
<link rel="stylesheet" href="../media/stylesheet.css" />
|
| 8 |
|
|
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
|
| 9 |
|
|
</head>
|
| 10 |
|
|
<body>
|
| 11 |
|
|
<div class="page-body">
|
| 12 |
|
|
<table class="tutorial-nav-box">
|
| 13 |
|
|
<tr>
|
| 14 |
|
|
<td style="width: 30%">
|
| 15 |
|
|
<a href="../phpHtmlLib/tutorial_phpHtmlLib.pkg.html" class="nav-button">Previous</a>
|
| 16 |
|
|
</td>
|
| 17 |
|
|
<td style="text-align: center">
|
| 18 |
|
|
<a href="../phpHtmlLib/tutorial_phpHtmlLib.pkg.html" class="nav-button">Up</a>
|
| 19 |
|
|
</td>
|
| 20 |
|
|
<td style="text-align: right; width: 30%">
|
| 21 |
|
|
<span class="nav-button-disabled">Next</span>
|
| 22 |
|
|
</td>
|
| 23 |
|
|
</tr>
|
| 24 |
|
|
<tr>
|
| 25 |
|
|
<td style="width: 30%">
|
| 26 |
|
|
<span class="detail">phpHtmlLib Guide</span>
|
| 27 |
|
|
</td>
|
| 28 |
|
|
<td style="text-align: center">
|
| 29 |
|
|
<span class="detail">phpHtmlLib Guide</span>
|
| 30 |
|
|
</td>
|
| 31 |
|
|
<td style="text-align: right; width: 30%">
|
| 32 |
|
|
</td>
|
| 33 |
|
|
</tr>
|
| 34 |
|
|
</table>
|
| 35 |
|
|
|
| 36 |
|
|
<div><a name=""></a><div class="ref-title-box"><h1 class="ref-title">Getting Started</h1> |
| 37 |
|
|
<h2 class="ref-purpose">how to begin with phpHtmlLib package</h2></div> |
| 38 |
|
|
<div class="ref-synopsis"><span class="author">by Walter A. Boring IV |
| 39 |
|
|
<div class="author-blurb"><a href="mailto:waboring@3gstech.com">mailto:waboring@3gstech.com</a></div></span> |
| 40 |
|
|
<div class="notes">March 2004, Walter A. Boring IV</div> |
| 41 |
|
|
<div class="release-info">(phpHtmlLib 2.4.x)</div></div> |
| 42 |
|
|
<h1 class="title">Table of Contents</h1>
|
| 43 |
|
|
<ul class="toc">
|
| 44 |
|
|
|
| 45 |
|
|
|
| 46 |
|
|
<li><a href="../phpHtmlLib/tutorial_gettingstarted.pkg.html#installing">Installing</a></li>
|
| 47 |
|
|
|
| 48 |
|
|
<li><a href="../phpHtmlLib/tutorial_gettingstarted.pkg.html#impatient">Overview for the impatient</a></li>
|
| 49 |
|
|
|
| 50 |
|
|
<li><a href="../phpHtmlLib/tutorial_gettingstarted.pkg.html#intro">Introduction</a></li>
|
| 51 |
|
|
|
| 52 |
|
|
<li><a href="../phpHtmlLib/tutorial_gettingstarted.pkg.html#pkg-overview">Package Overview</a></li>
|
| 53 |
|
|
|
| 54 |
|
|
<ul class="toc">
|
| 55 |
|
|
<li><a href="../phpHtmlLib/tutorial_gettingstarted.pkg.html#pkg-overview.class-bar">Global Classes</a></li>
|
| 56 |
|
|
|
| 57 |
|
|
|
| 58 |
|
|
<li><a href="../phpHtmlLib/tutorial_gettingstarted.pkg.html#pkg-overview.class-dm">Document/Page Classes</a></li>
|
| 59 |
|
|
|
| 60 |
|
|
<li><a href="../phpHtmlLib/tutorial_gettingstarted.pkg.html#pkg-overview.class-ui">HTML Widgets</a></li>
|
| 61 |
|
|
</ul>
|
| 62 |
|
|
</ul>
|
| 63 |
|
|
|
| 64 |
|
|
<span><a name="installing"></a><h2 class="title">Installing</h2><ol><li><p>For most people that use Linux with Apache, the install will be |
| 65 |
|
|
very easy. You just need to copy the untared package directory phphtmllib-2.4.1 |
| 66 |
|
|
to your DOCUMENT_ROOT and rename the directory to 'phphtmllib'.</p></li> |
| 67 |
|
|
<li><p>Then you just include the main include file inside phphtmllib.</p></li> |
| 68 |
|
|
<li><p>phpHtmlLib is now installed</p></li></ol></span> |
| 69 |
|
|
<span><a name="impatient"></a><h2 class="title">Overview for the impatient</h2><p>You can't wait to read the full documentation and tutorials, so you write few lines |
| 70 |
|
|
of code as below ...</p> |
| 71 |
|
|
<p><li><p>From the shell move the phphtmllib directory to your DOCUMENT_ROOT</p></li> |
| 72 |
|
|
<li><p>Create an include script.</p> |
| 73 |
|
|
<p><pre class="example"><pre><?php |
| 74 |
|
|
$phphtmllib = $_SERVER["DOCUMENT_ROOT"] . "/phphtmllib"; |
| 75 |
|
|
include_once($phphtmllib."/includes.inc"); |
| 76 |
|
|
?></pre></pre></p></li> |
| 77 |
|
|
<li><p>phpHtmlLib is now installed and ready to be used.</p></li></p></span> |
| 78 |
|
|
<span><a name="intro"></a><h2 class="title">Introduction</h2><p>I have tried to make the phpHtmlLib fairly easy to install |
| 79 |
|
|
and to use on anyone's current running site. There are a few assumptions |
| 80 |
|
|
I've made, but it shouldn't be a problem for 99% of the folks out there. I |
| 81 |
|
|
haven't tested the libs in a windows environment, as I don't have a M$ O.S. |
| 82 |
|
|
installed anywhere in my house. If you encounter any issues, please let me |
| 83 |
|
|
know. I welcome any and all feedback.</p></span> |
| 84 |
|
|
<span><a name="pkg-overview"></a><h2 class="title">Package Overview</h2><p>phpHtmlLib provides 3 main classes to help you build Tags:</p> |
| 85 |
|
|
<span><a name="pkg-overview.class-bar"></a><h3 class="title">Global Classes</h3><p><li>Container |
| 86 |
|
|
<p>This class is nothing more then a container widget. It lets you |
| 87 |
|
|
add data into it, and it will render each item indented properly |
| 88 |
|
|
so it works with the rest of the libs.</p></li> |
| 89 |
|
|
<li>XMLTagClass |
| 90 |
|
|
<p>This class is a child of the Container class and is for building and rendering |
| 91 |
|
|
an XML tag. This class is the base class for the HTMLTagClass.</p></li> |
| 92 |
|
|
<li>HTMLTagClass |
| 93 |
|
|
<p>Base class for all HTML Tag classes. Tag class renders an html tag, its |
| 94 |
|
|
attributes, the content (if any), and close tag (if needed).</p></li></p></span> |
| 95 |
|
|
<span><a name="pkg-overview.class-dm"></a><h3 class="title">Document/Page Classes</h3><p><li>XMLDocumentClass |
| 96 |
|
|
<p>This class lets you build a complete xml document and render it.</p></li> |
| 97 |
|
|
<li>HTMLPageClass |
| 98 |
|
|
<p>class the constructs and renders an entire HTML/XHTML document.</p></li> |
| 99 |
|
|
<li>PageWidget |
| 100 |
|
|
<p>This child class of the HTMLPageClass is used to build content |
| 101 |
|
|
for an entire page. It uses the HTMLPageClass widget from phphtmllib |
| 102 |
|
|
to render the final output.</p></li></p></span> |
| 103 |
|
|
<span><a name="pkg-overview.class-ui"></a><h3 class="title">HTML Widgets</h3><p><li>BaseWidget |
| 104 |
|
|
<p>this is the base widget class, that all widgets |
| 105 |
|
|
are based off of. It provides some basic members and methods.</p></li> |
| 106 |
|
|
<li>CSSBuilder |
| 107 |
|
|
<p>This class is a widget for constructing and rendering css. |
| 108 |
|
|
It exports API's for adding classes, ids and their attributes. |
| 109 |
|
|
It can render as either a stand alone foo.css type of file, with the appropriate |
| 110 |
|
|
httpd header, or as part of a |
| 111 |
|
|
style tag's content that lives as part of an html |
| 112 |
|
|
document.</p></li> |
| 113 |
|
|
<li>CSSContainer |
| 114 |
|
|
<p>This class is a container for CSSBuilder objects. |
| 115 |
|
|
It is meant to make the theming of many CSSBuilder objects easy to manage.</p></li></p></span></span></div>
|
| 116 |
|
|
|
| 117 |
|
|
<table class="tutorial-nav-box">
|
| 118 |
|
|
<tr>
|
| 119 |
|
|
<td style="width: 30%">
|
| 120 |
|
|
<a href="../phpHtmlLib/tutorial_phpHtmlLib.pkg.html" class="nav-button">Previous</a>
|
| 121 |
|
|
</td>
|
| 122 |
|
|
<td style="text-align: center">
|
| 123 |
|
|
<a href="../phpHtmlLib/tutorial_phpHtmlLib.pkg.html" class="nav-button">Up</a>
|
| 124 |
|
|
</td>
|
| 125 |
|
|
<td style="text-align: right; width: 30%">
|
| 126 |
|
|
<span class="nav-button-disabled">Next</span>
|
| 127 |
|
|
</td>
|
| 128 |
|
|
</tr>
|
| 129 |
|
|
<tr>
|
| 130 |
|
|
<td style="width: 30%">
|
| 131 |
|
|
<span class="detail">phpHtmlLib Guide</span>
|
| 132 |
|
|
</td>
|
| 133 |
|
|
<td style="text-align: center">
|
| 134 |
|
|
<span class="detail">phpHtmlLib Guide</span>
|
| 135 |
|
|
</td>
|
| 136 |
|
|
<td style="text-align: right; width: 30%">
|
| 137 |
|
|
</td>
|
| 138 |
|
|
</tr>
|
| 139 |
|
|
</table>
|
| 140 |
|
|
|
| 141 |
|
|
<p class="notes" id="credit">
|
| 142 |
|
|
Documentation generated on Thu, 1 Apr 2004 09:37:05 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC2</a>
|
| 143 |
|
|
</p>
|
| 144 |
|
|
</div></body>
|
| 145 |
|
|
</html>
|