Location: PHPKode > scripts > Easy Template > help.html
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Template</title>
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
			<style type="text/css">
<!--
a {	color: #336699;	text-decoration: none; }
a:hover	{ color: #6699CC; text-decoration: underline; }
a:active { color: #6699CC; text-decoration:	underline; }

body { background :	#FFFFFF; }
body, table	{ font-family: Georgia,	Times New Roman, Times,	serif; font-size: 10pt }
p, li {	line-height: 140% }
a img {	border:	0px; }
dd { margin-left: 0px; padding-left: 1em; }

/* Page	layout/boxes */

.info-box {}
.info-box-title	{ margin: 1em 0em 0em 0em; padding:	.25em; font-weight:	normal;	font-size: 14pt; border: 2px solid #999999;	background-color: #CCCCFF }
.info-box-body { border: 1px solid #999999;	padding: .5em; }
.nav-bar { font-size: 8pt; white-space:	nowrap;	text-align:	right; padding:	.2em; margin: 0em 0em 1em 0em; }

.oddrow	{ background-color:	#F8F8F8; border: 1px solid #AAAAAA;	padding: .5em; margin-bottom: 1em}
.evenrow { border: 1px solid #AAAAAA; padding: .5em; margin-bottom:	1em}

.page-body { max-width:	800px; margin: auto; }
.tree dl { margin: 0px }

/* Index formatting	classes	*/

.index-item-body { margin-top: .5em; margin-bottom:	.5em}
.index-item-description	{ margin-top: .25em	}
.index-item-details	{ font-weight: normal; font-style: italic; font-size: 8pt }
.index-letter-section {	background-color: #EEEEEE; border: 1px dotted #999999; padding:	.5em; margin-bottom: 1em}
.index-letter-title	{ font-size: 12pt; font-weight:	bold }
.index-letter-menu { text-align: center; margin: 1em }
.index-letter {	font-size: 12pt	}

/* Docbook classes */

.description {}
.short-description { font-weight: bold;	color: #666666;	}
.tags {	padding-left: 0em; margin-left:	3em; color:	#666666; list-style-type: square; }
.parameters	{	padding-left: 0em; margin-left:	3em; font-style: italic; list-style-type: square; }
.redefinitions { font-size:	8pt; padding-left: 0em;	margin-left: 2em; }
.package {	}
.package-title { font-weight: bold;	font-size: 14pt; border-bottom:	1px	solid black	}
.package-details { font-size: 85%; }
.sub-package { font-weight:	bold; font-size: 120% }
.tutorial {	border-width: thin;	border-color: #0066ff }
.tutorial-nav-box {	width: 100%; border: 1px solid #999999;	background-color: #F8F8F8; }
.nav-button-disabled { color: #999999; }
.nav-button:active,
.nav-button:focus,
.nav-button:hover {	background-color: #DDDDDD; outline:	1px	solid #999999; text-decoration:	none }
.folder-title {	font-style:	italic }

/* Generic formatting */

.field { font-weight: bold;	}
.detail	{ font-size: 8pt; }
.notes { font-style: italic; font-size:	8pt; }
.separator { background-color: #999999;	height:	2px; }
.warning {	color: #FF6600;	}
.disabled {	font-style:	italic;	color: #999999;	}

/* Code	elements */

.line-number {	}

.class-table { width: 100%;	}
.class-table-header	{ border-bottom: 1px dotted	#666666; text-align: left}
.class-name	{ color: #000000; font-weight: bold; }

.method-summary	{ padding-left:	1em; font-size:	8pt	}
.method-header { }
.method-definition { margin-bottom:	.3em }
.method-title {	font-weight: bold; }
.method-name { font-weight:	bold; }
.method-signature {	font-size: 85%;	color: #666666;	margin:	.5em 0em }
.method-result { font-style: italic; }

.var-summary { padding-left: 1em; font-size: 8pt; }
.var-header	{ }
.var-title { margin-bottom:	.3em }
.var-type {	font-style:	italic;	}
.var-name {	font-weight: bold; }
.var-default {}
.var-description { font-weight:	normal;	color: #000000;	}

.include-title {  }
.include-type {	font-style:	italic;	}
.include-name {	font-weight: bold; }

.const-title {	}
.const-name	{ font-weight: bold; }

/* Syntax highlighting */

.src-code {	 border: 1px solid #336699;	padding: 1em; background-color:	#EEEEEE; }
*[class="src-code"]	{	line-height	: 0.5em	}

.src-comm {	color: green; }
.src-id	{  }
.src-inc { color: #0000FF; }
.src-key { color: #0000FF; }
.src-num { color: #CC0000; }
.src-str { color: #66cccc; }
.src-sym { font-weight:	bold; }
.src-var { }

.src-php { font-weight:	bold; }

.src-doc { color: #009999 }
.src-doc-close-template	{ color: #0000FF }
.src-doc-coretag { color: #0099FF; font-weight:	bold }
.src-doc-inlinetag { color:	#0099FF	}
.src-doc-internal {	color: #6699cc }
.src-doc-tag { color: #0080CC }
.src-doc-template {	color: #0000FF }
.src-doc-type {	font-style:	italic }
.src-doc-var { font-style: italic }

.tute-tag {	color: #009999 }
.tute-attribute-name { color: #0000FF }
.tute-attribute-value {	color: #0099FF }
.tute-entity { font-weight:	bold; }
.tute-comment {	font-style:	italic }
.tute-inline-tag { color: #636311; font-weight:	bold }

/* tutorial	*/

.authors {	}
.author	{ font-style: italic; font-weight: bold	}
.author-blurb {	margin:	.5em 0em .5em 2em; font-size: 85%; font-weight:	normal;	font-style:	normal }
.example { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; }
*[class="example"] { line-height : 0.5em }
.listing { border: 1px dashed #999999; background-color: #EEEEEE; padding: .5em; white-space: nowrap; }
*[class="listing"] { line-height : 0.5em }
.release-info {	font-size: 85%;	font-style:	italic;	margin:	1em	0em	}
.ref-title-box {  }
.ref-title {  }
.ref-purpose { font-style: italic; color: #666666 }
.ref-synopsis {	 }
.title { font-weight: bold;	margin:	1em	0em	0em	0em; padding: .25em; border: 2px solid #999999;	background-color: #CCCCFF  }
.cmd-synopsis {	margin:	1em	0em	}
.cmd-title { font-weight: bold }
.toc { margin-left:	2em; padding-left: 0em }

.php1-identifier {color: #0000A0; }
.php1-reservedword {color: #0000FF;	}
.php1-space	{}
.php1-string {color: #800000; }
.php1-symbol {color: #000080; }
.php1-variable {color: #000000;	}
.php1-comment {color: #008000; }
.php1-number {color: #800080; }

-->
			</style>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Template</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|													<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Easy Template class that replaces tags in html file like &lt;!--TagName --&gt; with any value<br />
  <i>For additional HTML tag support and functionality, use the TemplateHTML class instead.</i></p>
<p class="description">
<p>Mar 13, 2007 - Initial Release<br />
  Mar 27, 2007 - Separated HTML Support into Extended Class</p>
</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff L. Williams</li>
				<li><span class="field">version:</span> 2.5</li>
	  </ul>
			<p>Usage:</p>
			<p><code><span style="font:	12pt Fixedsys;"><span class="php1-reservedword">include</span><span	class="php1-symbol">(</span><span class="php1-string">&quot;template.class.php&quot;</span><span class="php1-symbol">);</span></span></code></p>
			<p><code><span style="font:	12pt Fixedsys;"><span class="php1-variable">$template</span><span class="php1-symbol"> =</span>	<span class="php1-reservedword">new</span> Template<span class="php1-symbol">(<span	class="php1-string">&quot;filename.html&quot;</span>);</span></span></code></p>	
	</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="#sec-description_templatehtml">TemplateHTML</a></td>
					<td>
											Easy Template optional HTML class that replaces tags like &lt;!--TagName --&gt; and actual HTML tags with any value    These methods were placed into an extended class for performance because they require the regex engine    The separation of code also makes the class more maintainable and easier to use for smaller projects.
										</td>
				</tr>
							</table>
		</div>
	</div>



	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">Template</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$templateFile</span> = <span class="var-default">''</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#createHTMLSelectData" title="details" class="method-name">createHTMLSelectData</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$array</span>, <span class="var-type">string/integer</span>&nbsp;<span class="var-name">$displayColumn</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$valueColumn</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$selectedValue</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$caseSensitive</span> = <span class="var-default">false</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$indent</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#createHTMLTableData" title="details" class="method-name">createHTMLTableData</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$array</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$showAssocArrayColumnTitles</span> = <span class="var-default">true</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$indent</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowHeadingTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellHeadingTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowTags2</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellTags2</span> = <span class="var-default">''</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getFormValue" title="details" class="method-name">getFormValue</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getHTMLChecked" title="details" class="method-name">getHTMLChecked</a>
											(<span class="var-type">string/boolean</span>&nbsp;<span class="var-name">$isChecked</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getPage" title="details" class="method-name">getPage</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">TRUE</span>
										<a href="#hasTag" title="details" class="method-name">hasTag</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$tagName</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#loadPage" title="details" class="method-name">loadPage</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$templateFile</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#removeAllTags" title="details" class="method-name">removeAllTags</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#removeTag" title="details" class="method-name">removeTag</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$tagName</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replaceTag" title="details" class="method-name">replaceTag</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$tagName</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$content</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$keepTag</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replaceTagFromFile" title="details" class="method-name">replaceTagFromFile</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$tagName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$keepTag</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replaceTagFromWeb" title="details" class="method-name">replaceTagFromWeb</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$tagName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$keepTag</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setPage" title="details" class="method-name">setPage</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$html</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#showPage" title="details" class="method-name">showPage</a>
										()
									</div>
							</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">26</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor method</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Template</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$templateFile</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$templateFile</span><span class="var-description">: the filename for the template</span>			</li>
				</ul>
		
		
	</div>
<a name="methodcreateHTMLSelectData" id="createHTMLSelectData"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">createHTMLSelectData</span> (line <span class="line-number">283</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Creates OPTION lists for a SELECT from an array</p>
	<ul class="tags">
				<li><span class="field">return:</span> Either the HTML string or FALSE for failure</li>
				<li><span class="field">static:</span> use <code><span style="font: 12pt Fixedsys;"><span class="php1-reservedword">Template::createHTMLSelectData()</span></span></code></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			createHTMLSelectData
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$array</span>, <span class="var-type">string/integer</span>&nbsp;<span class="var-name">$displayColumn</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$valueColumn</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$selectedValue</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$caseSensitive</span> = <span class="var-default">false</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$indent</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$array</span><span class="var-description">: An array containing numbered or associated arrays (rows)</span>			</li>
					<li>
				<span class="var-type">string/integer</span>
				<span class="var-name">$displayColumn</span><span class="var-description">: The column in the arrays that contains the displayed text</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$valueColumn</span><span class="var-description">: The column in the arrays that contains the form return values</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$selectedValue</span><span class="var-description">: The default selected item in the list</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$caseSensitive</span><span class="var-description">: TRUE if the selected item is chosen using case sensitivity</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$indent</span><span class="var-description">: The number of tabs to indent</span>			</li>
				</ul>
		
		
	</div>
<a name="methodcreateHTMLTableData" id="createHTMLTableData"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">createHTMLTableData</span> (line <span class="line-number">335</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Creates table data from an array (not including the open and ending &lt;TABLE&gt; tags)</p>
	<ul class="tags">
				<li><span class="field">return:</span> Either the HTML string or FALSE for failure</li>
				<li><span class="field">static:</span> use <code><span style="font: 12pt Fixedsys;"><span class="php1-reservedword">Template::createHTMLTableData()</span></span></code></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			createHTMLTableData
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$array</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$showAssocArrayColumnTitles</span> = <span class="var-default">true</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$indent</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowHeadingTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellHeadingTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowTags2</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellTags2</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$array</span><span class="var-description">: An array containing numbered or associated arrays (rows)</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$showAssocArrayColumnTitles</span><span class="var-description">: TRUE if you would like to display heading titles.                 NOTE: This only works with associated arrays that contain key values</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$indent</span><span class="var-description">: The number of tabs to indent</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalRowHeadingTags</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalCellHeadingTags</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalRowTags</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalCellTags</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalRowTags2</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalCellTags2</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetFormValue" id="getFormValue"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getFormValue</span> (line <span class="line-number">40</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get a POST or GET value by a form element name</p>
	<ul class="tags">
				<li><span class="field">static:</span> use <code><span style="font: 12pt Fixedsys;"><span class="php1-reservedword">Template::getFormValue()</span></span></code></li>
		</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getFormValue
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
		</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: The name of the form element sent by POST or GET</span>			</li>
		</ul>
		
		
	</div>
<a name="methodgetHTMLChecked" id="getHTMLChecked"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getHTMLChecked</span> (line <span class="line-number">448</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the checked tag for checkboxes and radio buttons  based on a string (i.e. value from a post) or boolean.</p>
<p class="description"><p>This is helpful when reposting forms that fail validation.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> Returns checked=&quot;checked&quot; if TRUE, blank if FALSE</li>
				<li><span class="field">static:</span> use <code><span style="font: 12pt Fixedsys;"><span class="php1-reservedword">Template::getHTMLChecked()</span></span></code></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getHTMLChecked
		</span>
					(<span class="var-type">string/boolean</span>&nbsp;<span class="var-name">$isChecked</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string/boolean</span>
				<span class="var-name">$isChecked</span><span class="var-description">: true, &quot;on&quot;, &quot;selected&quot;,  &quot;checked&quot;, &quot;yes&quot;, &quot;y&quot;, &quot;true&quot;, or &quot;t&quot; (not case-sensitive)</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetPage" id="getPage"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getPage</span> (line <span class="line-number">60</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the template HTML</p>
	<ul class="tags">
				<li><span class="field">return:</span> Processed HTML</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getPage
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodhasTag" id="hasTag"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">hasTag</span> (line <span class="line-number">71</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Determines if a specified comment tag exists</p>
	<ul class="tags">
				<li><span class="field">return:</span> if exists, FALSE if not</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">TRUE</span>
		<span class="method-name">
			hasTag
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$tagName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$tagName</span><span class="var-description">: The name of the comment style tag</span>			</li>
				</ul>
		
		
	</div>
<a name="methodloadPage" id="loadPage"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">loadPage</span> (line <span class="line-number">93</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Loads a template HTML from a file</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			loadPage
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$templateFile</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$templateFile</span><span class="var-description">: the filename for the template</span>			</li>
				</ul>
		
		
	</div>
<a name="methodremoveAllTags" id="removeAllTags"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">removeAllTags</span> (line <span class="line-number">110</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Removes all tags from the document</p>
<p class="description"><p>WARNING: There is no way to differentiate between the tags and  HTML comments since the tags actually are HTML comments, so all  comments with &lt;!-- --&gt; tags will be removed using this method!</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			removeAllTags
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodremoveTag" id="removeTag"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">removeTag</span> (line <span class="line-number">121</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Removes a tag from the page</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			removeTag
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$tagName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$tagName</span><span class="var-description">: The name of the tag to remove</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceTag" id="replaceTag"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">replaceTag</span> (line <span class="line-number">136</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces a tag embedded in the template with a string</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replaceTag
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$tagName</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$content</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$keepTag</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$tagName</span><span class="var-description">: The name of the tag &lt;!--tagName --&gt;</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$content</span><span class="var-description">: The content to insert</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$keepTag</span><span class="var-description">: If true, the tag will stay in the template</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceTagFromFile" id="replaceTagFromFile"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">replaceTagFromFile</span> (line <span class="line-number">166</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces a tag embedded in the template with data from a file</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replaceTagFromFile
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$tagName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$keepTag</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$tagName</span><span class="var-description">: The name of the tag &lt;!--tagName --&gt;</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fileName</span><span class="var-description">: The name of the file containing the data</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$keepTag</span><span class="var-description">: If true, the tag will stay in the template</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceTagFromWeb" id="replaceTagFromWeb"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">replaceTagFromWeb</span> (line <span class="line-number">202</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces a tag embedded in the template with data from web page</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replaceTagFromWeb
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$tagName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$keepTag</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$tagName</span><span class="var-description">: The name of the tag &lt;!--tagName --&gt;</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span><span class="var-description">: The URL containing the web data</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$keepTag</span><span class="var-description">: If true, the tag will stay in the template</span>			</li>
				</ul>
		
		
	</div>
<a name="methodsetPage" id="setPage"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setPage</span> (line <span class="line-number">234</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets the template HTML</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setPage
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$html</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$html</span><span class="var-description">: Template HTML</span>			</li>
				</ul>
		
		
	</div>
<a name="methodshowPage" id="showPage"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">showPage</span> (line <span class="line-number">243</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Shows the template HTML</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			showPage
		</span>
				()
			</div>
	
		
		
	</div>
						
		</div>
	</div>
	</div>
<hr />
<div class="page-body">			
<h2 class="class-name">Class TemplateHTML</h2>

<a name="sec-description_templatehtml"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary_templatehtml">Methods</a> (<a href="#sec-methods_templatehtml">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Easy Template optional HTML class that replaces tags like &lt;!--TagName --&gt; and actual HTML tags with any value<br />    
  <i>These methods were placed into an extended class for performance because they require the regex engine    <br />
  The separation of code also makes the class more maintainable and easier to use for smaller projects.</i></p>
<p class="description">
<p>Mar 13, 2007 - Initial Release<br />
  Mar 22, 2007 - Special thanks to Todd Morrow for regex code<br />
  Mar 27, 2007 - Separated HTML Support in Extended Class</p>
</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff L. Williams</li>
				<li><span class="field">version:</span> 2.5</li>
	  </ul>
			<p>Usage:</p>
			<p><code><span style="font:	12pt Fixedsys;"><span class="php1-reservedword">include</span><span	class="php1-symbol">(</span><span class="php1-string">&quot;templatehtml.class.php&quot;</span><span class="php1-symbol">);</span></span></code></p>
			<p><code><span style="font:	12pt Fixedsys;"><span class="php1-variable">$template</span><span class="php1-symbol"> =</span>	<span class="php1-reservedword">new</span> TemplateHTML<span class="php1-symbol">(<span	class="php1-string">&quot;filename.html&quot;</span>);</span></span></code></p>				
		    <pre><a href="#sec-description">Template</a>
   |
   --TemplateHTML</pre>
	
	</div>
</div>




	<a name="sec-method-summary_templatehtml"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description_templatehtml">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods_templatehtml">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getHTMLElement" title="details" class="method-name">getHTMLElement</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getHTMLElementFromFile" title="details" class="method-name">getHTMLElementFromFile</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getHTMLElementFromString" title="details" class="method-name">getHTMLElementFromString</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$html</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getHTMLElementFromURL" title="details" class="method-name">getHTMLElementFromURL</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getHTMLElementTag" title="details" class="method-name">getHTMLElementTag</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getHTMLElementTagFromFile" title="details" class="method-name">getHTMLElementTagFromFile</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getHTMLElementTagFromString" title="details" class="method-name">getHTMLElementTagFromString</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$html</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getHTMLElementTagFromURL" title="details" class="method-name">getHTMLElementTagFromURL</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">TRUE</span>
										<a href="#hasHTMLTag" title="details" class="method-name">hasHTMLTag</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#removeAllComments" title="details" class="method-name">removeAllComments</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#removeHTMLElement" title="details" class="method-name">removeHTMLElement</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#removeHTMLElementData" title="details" class="method-name">removeHTMLElementData</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#removeHTMLElementTag" title="details" class="method-name">removeHTMLElementTag</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replaceHTMLElement" title="details" class="method-name">replaceHTMLElement</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$newText</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#replaceHTMLElementData" title="details" class="method-name">replaceHTMLElementData</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$newText</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replaceHTMLElementDataFromFile" title="details" class="method-name">replaceHTMLElementDataFromFile</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replaceHTMLElementDataFromWeb" title="details" class="method-name">replaceHTMLElementDataFromWeb</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replaceHTMLElementFromFile" title="details" class="method-name">replaceHTMLElementFromFile</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replaceHTMLElementFromWeb" title="details" class="method-name">replaceHTMLElementFromWeb</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replaceHTMLElementTag" title="details" class="method-name">replaceHTMLElementTag</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$newText</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replaceHTMLElementTagFromFile" title="details" class="method-name">replaceHTMLElementTagFromFile</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#replaceHTMLElementTagFromWeb" title="details" class="method-name">replaceHTMLElementTagFromWeb</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#replaceHTMLSelectData" title="details" class="method-name">replaceHTMLSelectData</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$htmlSelectName</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$array</span>, <span class="var-type">string/integer</span>&nbsp;<span class="var-name">$displayColumn</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$valueColumn</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$selectedValue</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$caseSensitive</span> = <span class="var-default">false</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$indent</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#replaceHTMLTableData" title="details" class="method-name">replaceHTMLTableData</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$htmlTableName</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$array</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$showAssocArrayColumnTitles</span> = <span class="var-default">true</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$indent</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowHeadingTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellHeadingTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowTags2</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellTags2</span> = <span class="var-default">''</span>])
									</div>
							</div>
		</div>
	</div>		

	
	<a name="sec-methods_templatehtml"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description_templatehtml">Description</a> |
																<a href="#sec-method-summary_templatehtml">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail_templatehtml'></A>
<a name="methodgetHTMLElement" id="getHTMLElement"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getHTMLElement</span> (line <span class="line-number">25</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a complete HTML form element from the template</p>
	<ul class="tags">
				<li><span class="field">return:</span> HTML form element with opening and closing tags included</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getHTMLElement
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetHTMLElementFromFile" id="getHTMLElementFromFile"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getHTMLElementFromFile</span> (line <span class="line-number">37</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a complete HTML form element from an HTML file</p>
	<ul class="tags">
				<li><span class="field">return:</span> HTML form element with opening and closing tags included</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getHTMLElementFromFile
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span><span class="var-description">: The URL location of the page to extract from</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetHTMLElementFromString" id="getHTMLElementFromString"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getHTMLElementFromString</span> (line <span class="line-number">54</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a complete HTML form element from a string containing HTML</p>
	<ul class="tags">
				<li><span class="field">return:</span> HTML form element with opening and closing tags included</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getHTMLElementFromString
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$html</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$html</span><span class="var-description">: A string containing HTML</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetHTMLElementFromURL" id="getHTMLElementFromURL"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getHTMLElementFromURL</span> (line <span class="line-number">81</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a complete HTML form element from a live URL</p>
	<ul class="tags">
				<li><span class="field">return:</span> HTML form element with opening and closing tags included</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getHTMLElementFromURL
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span><span class="var-description">: The URL location of the page to extract from</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetHTMLElementTag" id="getHTMLElementTag"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getHTMLElementTag</span> (line <span class="line-number">98</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an HTML form element tag from the template</p>
	<ul class="tags">
				<li><span class="field">return:</span> HTML form element tag</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getHTMLElementTag
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetHTMLElementTagFromFile" id="getHTMLElementTagFromFile"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getHTMLElementTagFromFile</span> (line <span class="line-number">110</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an HTML form element tag from an HTML file</p>
	<ul class="tags">
				<li><span class="field">return:</span> HTML form element tag</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getHTMLElementTagFromFile
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span><span class="var-description">: The URL location of the page to extract from</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetHTMLElementTagFromString" id="getHTMLElementTagFromString"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getHTMLElementTagFromString</span> (line <span class="line-number">127</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an HTML form element tag from a string containing HTML</p>
	<ul class="tags">
				<li><span class="field">return:</span> HTML form element tag</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getHTMLElementTagFromString
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$html</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$html</span><span class="var-description">: A string containing HTML</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetHTMLElementTagFromURL" id="getHTMLElementTagFromURL"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getHTMLElementTagFromURL</span> (line <span class="line-number">154</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an HTML form element tag from a live URL</p>
	<ul class="tags">
				<li><span class="field">return:</span> HTML form element tag</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getHTMLElementTagFromURL
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span><span class="var-description">: The URL location of the page to extract from</span>			</li>
				</ul>
		
		
	</div>
<a name="methodhasHTMLTag" id="hasHTMLTag"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">hasHTMLTag</span> (line <span class="line-number">171</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Checks to see if an HTML tag element exists</p>
	<ul class="tags">
				<li><span class="field">return:</span> if exists, FALSE if not</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">TRUE</span>
		<span class="method-name">
			hasHTMLTag
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
				</ul>
		
		
	</div>
<a name="methodremoveAllComments" id="removeAllComments"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">removeAllComments</span> (line <span class="line-number">193</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Removes all comments from the document</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			removeAllComments
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodremoveHTMLElement" id="removeHTMLElement"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">removeHTMLElement</span> (line <span class="line-number">205</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Removes an HTML form element</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			removeHTMLElement
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
				</ul>
		
		
	</div>
<a name="methodremoveHTMLElementData" id="removeHTMLElementData"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">removeHTMLElementData</span> (line <span class="line-number">215</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Removes data between an HTML from element opening and closing tag</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			removeHTMLElementData
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
				</ul>
		
		
	</div>
<a name="methodremoveHTMLElementTag" id="removeHTMLElementTag"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">removeHTMLElementTag</span> (line <span class="line-number">225</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Removes an HTML form element tag</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			removeHTMLElementTag
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceHTMLElement" id="replaceHTMLElement"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">replaceHTMLElement</span> (line <span class="line-number">238</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces a template HTML form element with a string</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replaceHTMLElement
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$newText</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$newText</span><span class="var-description">: The replacement text</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceHTMLElementData" id="replaceHTMLElementData"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">replaceHTMLElementData</span> (line <span class="line-number">262</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces template data between an opening and closing HTML form tag with a string</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE if success, FALSE if failure</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			replaceHTMLElementData
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$newText</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$newText</span><span class="var-description">: The replacement text</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceHTMLElementDataFromFile" id="replaceHTMLElementDataFromFile"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">replaceHTMLElementDataFromFile</span> (line <span class="line-number">291</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces template data between an opening and closing HTML form tag with data from a file</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replaceHTMLElementDataFromFile
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fileName</span><span class="var-description">: The name of the file containing the data</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceHTMLElementDataFromWeb" id="replaceHTMLElementDataFromWeb"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">replaceHTMLElementDataFromWeb</span> (line <span class="line-number">309</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces template data between an opening and closing HTML form tag with data from a live URL</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replaceHTMLElementDataFromWeb
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span><span class="var-description">: The URL location of the page to extract from</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceHTMLElementFromFile" id="replaceHTMLElementFromFile"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">replaceHTMLElementFromFile</span> (line <span class="line-number">328</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces a template HTML form element with data from a file</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replaceHTMLElementFromFile
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fileName</span><span class="var-description">: The name of the file containing the data</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceHTMLElementFromWeb" id="replaceHTMLElementFromWeb"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">replaceHTMLElementFromWeb</span> (line <span class="line-number">346</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces a template HTML form element with data from a live URL</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replaceHTMLElementFromWeb
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span><span class="var-description">: The URL location of the page to extract from</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceHTMLElementTag" id="replaceHTMLElementTag"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">replaceHTMLElementTag</span> (line <span class="line-number">365</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces a template HTML form element opening tag with a string</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replaceHTMLElementTag
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$newText</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$newText</span><span class="var-description">: The replacement text</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceHTMLElementTagFromFile" id="replaceHTMLElementTagFromFile"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">replaceHTMLElementTagFromFile</span> (line <span class="line-number">390</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces a template HTML form element opening tag with data from a file</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replaceHTMLElementTagFromFile
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fileName</span><span class="var-description">: The name of the file containing the data</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceHTMLElementTagFromWeb" id="replaceHTMLElementTagFromWeb"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">replaceHTMLElementTagFromWeb</span> (line <span class="line-number">408</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces a template HTML form element opening tag with data from a live URL</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			replaceHTMLElementTagFromWeb
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$elementTag</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$elementName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$url</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$fixHTML</span> = <span class="var-default">false</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$stripSlashes</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementTag</span><span class="var-description">: The type of element (i.e. table, input or div)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$elementName</span><span class="var-description">: The name of the element (name= attribute)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span><span class="var-description">: The URL location of the page to extract from</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$fixHTML</span><span class="var-description">: Determines if the content should be formatted</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$stripSlashes</span><span class="var-description">: Encodes the contect</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceHTMLSelectData" id="replaceHTMLSelectData"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">replaceHTMLSelectData</span> (line <span class="line-number">430</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces the list data in an existing HTML SELECT within the template</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE if success, FALSE if failure</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			replaceHTMLSelectData
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$htmlSelectName</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$array</span>, <span class="var-type">string/integer</span>&nbsp;<span class="var-name">$displayColumn</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$valueColumn</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$selectedValue</span> = <span class="var-default">''</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$caseSensitive</span> = <span class="var-default">false</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$indent</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$htmlSelectName</span><span class="var-description">: The name of the SELECT element</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$array</span><span class="var-description">: An array containing numbered or associated arrays (rows)</span>			</li>
					<li>
				<span class="var-type">string/integer</span>
				<span class="var-name">$displayColumn</span><span class="var-description">: The column in the arrays that contains the displayed text</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$valueColumn</span><span class="var-description">: The column in the arrays that contains the form return values</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$selectedValue</span><span class="var-description">: The default selected item in the list</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$caseSensitive</span><span class="var-description">: TRUE if the selected item is chosen using case sensitivity</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$indent</span><span class="var-description">: The number of tabs to indent</span>			</li>
				</ul>
		
		
	</div>
<a name="methodreplaceHTMLTableData" id="replaceHTMLTableData"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">replaceHTMLTableData</span> (line <span class="line-number">454</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Replaces the table data in an existing HTML table within the template</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE if success, FALSE if failure</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			replaceHTMLTableData
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$htmlTableName</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$array</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$showAssocArrayColumnTitles</span> = <span class="var-default">true</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$indent</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowHeadingTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellHeadingTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellTags</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalRowTags2</span> = <span class="var-default">''</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$optionalCellTags2</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$htmlTableName</span><span class="var-description">: The name of the table (i.e. name=)</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$array</span><span class="var-description">: An array containing numbered or associated arrays (rows)</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$showAssocArrayColumnTitles</span><span class="var-description">: TRUE if you would like to display heading titles.                 NOTE: This only works with associated arrays that contain key values</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$indent</span><span class="var-description">: The number of tabs to indent</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalRowHeadingTags</span><span class="var-description">: Tag attributes for row headings (i.e. style or class)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalCellHeadingTags</span><span class="var-description">: Tag attributes for cells (i.e. style or class)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalRowTags</span><span class="var-description">: Tag attributes for rows (i.e. style or class)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalCellTags</span><span class="var-description">: Tag attributes for cells (i.e. style or class)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalRowTags2</span><span class="var-description">: Tag attributes for alternating rows (i.e. style or class)</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$optionalCellTags2</span><span class="var-description">: Tag attributes for alternating row cells (i.e. style or class)</span>			</li>
				</ul>
		
		
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods_templatehtml'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="#sec-description">Template</a></span></p>
					<blockquote>
													<span class="method-name"><a href="#method__construct">Template::__construct()</a></span><br>
													<span class="method-name"><a href="#methodcreateHTMLSelectData">Template::createHTMLSelectData()</a></span><br>
													<span class="method-name"><a href="#methodcreateHTMLTableData">Template::createHTMLTableData()</a></span><br>
													<span class="method-name"><a href="#methodgetFormValue">Template::getFormValue()</a></span><br>
													<span class="method-name"><a href="#methodgetHTMLChecked">Template::getHTMLChecked()</a></span><br>
													<span class="method-name"><a href="#methodgetPage">Template::getPage()</a></span><br>
													<span class="method-name"><a href="#methodhasTag">Template::hasTag()</a></span><br>
													<span class="method-name"><a href="#methodloadPage">Template::loadPage()</a></span><br>
													<span class="method-name"><a href="#methodremoveAllTags">Template::removeAllTags()</a></span><br>
													<span class="method-name"><a href="#methodremoveTag">Template::removeTag()</a></span><br>
													<span class="method-name"><a href="#methodreplaceTag">Template::replaceTag()</a></span><br>
													<span class="method-name"><a href="#methodreplaceTagFromFile">Template::replaceTagFromFile()</a></span><br>
													<span class="method-name"><a href="#methodreplaceTagFromWeb">Template::replaceTagFromWeb()</a></span><br>
													<span class="method-name"><a href="#methodsetPage">Template::setPage()</a></span><br>
													<span class="method-name"><a href="#methodshowPage">Template::showPage()</a></span><br>
											</blockquote>
										
		</div>
	</div>

	</div>
</body>
</html>
Return current item: Easy Template