Location: PHPKode > scripts > FormBuilder > formbuilder-51140/Class Reference/FormBuilder/FormBuilder.html
<html>
<head>
<title>Docs For Class FormBuilder</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">FormBuilder</td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
  		  [ <a href="../classtrees_FormBuilder.html" class="menu">class tree: FormBuilder</a> ]
		  [ <a href="../elementindex_FormBuilder.html" class="menu">index: FormBuilder</a> ]
		  [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
      <b>Packages:</b><br />
              <a href="../li_FormBuilder.html">FormBuilder</a><br />
            <br /><br />
                        <b>Files:</b><br />
      	  <div class="package">
			<a href="../FormBuilder/_FormBuilder_php.html">		FormBuilder.php
		</a><br>
	  </div><br />
      
            <b>Classes:</b><br />
        <div class="package">
		    		<a href="../FormBuilder/CheckBoxField.html">CheckBoxField</a><br />
	    		<a href="../FormBuilder/DateField.html">DateField</a><br />
	    		<a href="../FormBuilder/DateTimeField.html">DateTimeField</a><br />
	    		<a href="../FormBuilder/EmailField.html">EmailField</a><br />
	    		<a href="../FormBuilder/FormBuilder.html">FormBuilder</a><br />
	    		<a href="../FormBuilder/FormField.html">FormField</a><br />
	    		<a href="../FormBuilder/HiddenField.html">HiddenField</a><br />
	    		<a href="../FormBuilder/LabelField.html">LabelField</a><br />
	    		<a href="../FormBuilder/PasswordField.html">PasswordField</a><br />
	    		<a href="../FormBuilder/PopupField.html">PopupField</a><br />
	    		<a href="../FormBuilder/RadioButtonField.html">RadioButtonField</a><br />
	    		<a href="../FormBuilder/SubmitField.html">SubmitField</a><br />
	    		<a href="../FormBuilder/SubmitFieldGroup.html">SubmitFieldGroup</a><br />
	    		<a href="../FormBuilder/TextAreaField.html">TextAreaField</a><br />
	    		<a href="../FormBuilder/TextField.html">TextField</a><br />
	    		<a href="../FormBuilder/TimeField.html">TimeField</a><br />
	    		<a href="../FormBuilder/UploadField.html">UploadField</a><br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: FormBuilder</h1>
Source Location: /FormBuilder.php<br /><br />


<table width="100%" border="0">
<tr><td valign="top">

<h3><a href="#class_details">Class Overview</a></h3>
<pre></pre><br />
<div class="description">FormBuilder class</div><br /><br />
<h4>Author(s):</h4>
<ul>
        </ul>




    


</td>

<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
    <li><a href="../FormBuilder/FormBuilder.html#var$fieldList">$fieldList</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#var$hasUploadFields">$hasUploadFields</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#var$http_vars">$http_vars</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#var$method">$method</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#var$validated">$validated</a></li>
  </ul>
</td>


<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../FormBuilder/FormBuilder.html#methodFormBuilder">FormBuilder</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methodaddField">addField</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methoddisplay">display</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methodgenerate">generate</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methodgenerateText">generateText</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methodgetDBValue">getDBValue</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methodgetValue">getValue</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methodisSubmitted">isSubmitted</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methodisValid">isValid</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methodsendMail">sendMail</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methodsetInvalid">setInvalid</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methodsetValue">setValue</a></li>
    <li><a href="../FormBuilder/FormBuilder.html#methodvalidate">validate</a></li>
  </ul>
</td>

</tr></table>
<hr />

<table width="100%" border="0"><tr>






</tr></table>
<hr />

<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line 1480]<br />
FormBuilder class<br /><br /><p>FormBuilder is a class that provides an easy way to create and validate  html forms.</p><p>This class works a manager for a collection of FormField descendent classes  that represent the several fields that can be present in a form.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />

<hr />
<a name="class_vars"></a>
<h3>Class Variables</h3>
<div class="tags">
	<a name="var$fieldList"></a>
	<p></p>
	<h4>$fieldList = <span class="value"></span></h4>
	<p>[line 1486]</p>
  array containing all the form fields<br /><br />
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>array</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$hasUploadFields"></a>
	<p></p>
	<h4>$hasUploadFields = <span class="value">&nbsp;false</span></h4>
	<p>[line 1496]</p>
  flag that indicates if the form contains UploadFields ()<br /><br />
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>bool</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$http_vars"></a>
	<p></p>
	<h4>$http_vars = <span class="value"></span></h4>
	<p>[line 1507]</p>
  reference to the variables submitted from a form<br /><br />
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>array</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$method"></a>
	<p></p>
	<h4>$method = <span class="value"></span></h4>
	<p>[line 1502]</p>
  method of submitting the form, can be 'post', or 'get'<br /><br />
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>bool</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$validated"></a>
	<p></p>
	<h4>$validated = <span class="value">&nbsp;true</span></h4>
	<p>[line 1491]</p>
  flag that indicates if all the values filled in this form are valid<br /><br />
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>bool</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />

<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
  <hr />
	<a name="methodFormBuilder"></a>
	<h3>constructor FormBuilder <span class="smalllinenumber">[line 1516]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>FormBuilder FormBuilder(
[string
$method = 'post'])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Constructor, sets up the form parameters<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$method</b>&nbsp;&nbsp;</td>
        <td>method to submit the form, either 'get' or 'post',  this is optional, if none chosen, 'post' will be used as default</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodaddField"></a>
	<h3>method addField <span class="smalllinenumber">[line 1550]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void addField(
<a href="../FormBuilder/FormField.html">FormField</a>
$field)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Adds a new FormField-based field<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type"><a href="../FormBuilder/FormField.html">FormField</a>&nbsp;&nbsp;</td>
        <td><b>$field</b>&nbsp;&nbsp;</td>
        <td>A class that descends from FormField</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddisplay"></a>
	<h3>method display <span class="smalllinenumber">[line 1749]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void display(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		generates the html form and prints it out.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgenerate"></a>
	<h3>method generate <span class="smalllinenumber">[line 1659]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string generate(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		generates the html form and returns it as a string<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>the html form</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgenerateText"></a>
	<h3>method generateText <span class="smalllinenumber">[line 1701]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string generateText(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		generates the text representation of the form and filled-in values,  it should be called after the form is successfully submitted.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>the text representation of the form</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetDBValue"></a>
	<h3>method getDBValue <span class="smalllinenumber">[line 1647]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>object The getDBValue(
string
$name)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		gets the value of a field in a database-friendly way<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>value, type of value varies according to the type  of field, in most fields addslashes() function will be applied to the  content, date fields will be formatted as YYYY-MM-DD and time fields  will be formatted as HH:MM, 24-hour format. CheckboxFields will return <ol><li>(zero) or 1 instead of true or false;</li></ol></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$name</b>&nbsp;&nbsp;</td>
        <td>The name of the field</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetValue"></a>
	<h3>method getValue <span class="smalllinenumber">[line 1631]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>object The getValue(
string
$name)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		gets the value of a field<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>value, type of value varies according to the type  of field. For a CheckboxField this is a boolean (true or false), for date  and time fields, this will be a string representation of the time/date in  the format specified in the class.</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$name</b>&nbsp;&nbsp;</td>
        <td>The name of the field</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodisSubmitted"></a>
	<h3>method isSubmitted <span class="smalllinenumber">[line 1539]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>true isSubmitted(
string
$name)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Indicates if a form has been submitted<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>if the form has been submitted using the button $name</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$name</b>&nbsp;&nbsp;</td>
        <td>The name of the button that produced the submit</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodisValid"></a>
	<h3>method isValid <span class="smalllinenumber">[line 1581]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>bool isValid(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Indicates if the current form is valid, the validate() method  should be called before calling this one<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>true if the form is valid, false otherwise</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsendMail"></a>
	<h3>method sendMail <span class="smalllinenumber">[line 1735]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>bool sendMail(
string
$fromName, string
$fromAddress, string
$toAddress, string
$subject)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Emails a text representation of the form and filled-in values,  it should be called after the form is successfully submitted.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>true if mail was accepted for delivery, false if not</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$fromName</b>&nbsp;&nbsp;</td>
        <td>The name of the email sender</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$fromAddress</b>&nbsp;&nbsp;</td>
        <td>The email address of the sender</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$toAddress</b>&nbsp;&nbsp;</td>
        <td>The email of the recipient</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$subject</b>&nbsp;&nbsp;</td>
        <td>The subject of the email</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetInvalid"></a>
	<h3>method setInvalid <span class="smalllinenumber">[line 1565]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void setInvalid(
$name
$name)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Invalidates the specified form field<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">$name&nbsp;&nbsp;</td>
        <td><b>$name</b>&nbsp;&nbsp;</td>
        <td>The name of the field to be invalidated</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetValue"></a>
	<h3>method setValue <span class="smalllinenumber">[line 1616]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void setValue(
string
$name, object
$value)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		sets the value of a field<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$name</b>&nbsp;&nbsp;</td>
        <td>The name of the field</td>
      </tr>
          <tr>
        <td class="type">object&nbsp;&nbsp;</td>
        <td><b>$value</b>&nbsp;&nbsp;</td>
        <td>The value to set, type of value varies according  to the type of field. Date and Time fields accept the following formats:  'YYYY-MM-DD', 'HH:MM', or 'YYYY-MM-DD HH:MM', hours are in 24 hour  format. CheckboxFields accept a boolean (true or false).</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodvalidate"></a>
	<h3>method validate <span class="smalllinenumber">[line 1593]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>bool validate(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		checks if all the form items are filled according to the given  restrictions<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>true if the form is correct</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
</div><br />


        <div class="credit">
		    <hr />
		    Documentation generated on Tue, 16 Aug 2005 19:19:07 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>
Return current item: FormBuilder