Location: PHPKode > scripts > FormBuilder > formbuilder-51140/Class Reference/FormBuilder/FormField.html
<html>
<head>
<title>Docs For Class FormField</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: FormField</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">FormField class</div><br /><br />
<h4>Author(s):</h4>
<ul>
        </ul>




    


</td>



<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../FormBuilder/FormField.html#methoddump">dump</a></li>
    <li><a href="../FormBuilder/FormField.html#methodgenerate">generate</a></li>
    <li><a href="../FormBuilder/FormField.html#methodgenerateText">generateText</a></li>
    <li><a href="../FormBuilder/FormField.html#methodgetDBValue">getDBValue</a></li>
    <li><a href="../FormBuilder/FormField.html#methodgetName">getName</a></li>
    <li><a href="../FormBuilder/FormField.html#methodgetType">getType</a></li>
    <li><a href="../FormBuilder/FormField.html#methodgetValue">getValue</a></li>
    <li><a href="../FormBuilder/FormField.html#methodisValid">isValid</a></li>
    <li><a href="../FormBuilder/FormField.html#methodsetInvalid">setInvalid</a></li>
    <li><a href="../FormBuilder/FormField.html#methodsetValue">setValue</a></li>
    <li><a href="../FormBuilder/FormField.html#methodvalidate">validate</a></li>
  </ul>
</td>

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

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


<td valign="top">
<h3>Child classes:</h3>
<div class="tags">
<dl>
<dt><a href="../FormBuilder/TextField.html">TextField</a></dt>
	<dd>Class to generate and validate an HTML &lt;input type=&quot;text&quot; ..&gt;</dd>
</dl>
<dl>
<dt><a href="../FormBuilder/PopupField.html">PopupField</a></dt>
	<dd>Class to generate and validate an HTML &lt;select..&gt; item</dd>
</dl>
<dl>
<dt><a href="../FormBuilder/CheckBoxField.html">CheckBoxField</a></dt>
	<dd>Class to generate and validate an HTML &lt;checkbox ..&gt; item</dd>
</dl>
<dl>
<dt><a href="../FormBuilder/SubmitField.html">SubmitField</a></dt>
	<dd>Class to generate an HTML &lt;input type=&quot;submit&quot; ...&gt; item</dd>
</dl>
<dl>
<dt><a href="../FormBuilder/SubmitFieldGroup.html">SubmitFieldGroup</a></dt>
	<dd>Class to generate a set of HTML &lt;input type=&quot;submit&quot; ...&gt; items</dd>
</dl>
<dl>
<dt><a href="../FormBuilder/RadioButtonField.html">RadioButtonField</a></dt>
	<dd>Class to generate a set of HTML &lt;input type=&quot;radio&quot; ...&gt; items</dd>
</dl>
<dl>
<dt><a href="../FormBuilder/TextAreaField.html">TextAreaField</a></dt>
	<dd>Class to generate and validate an HTML &lt;textarea ..&gt;</dd>
</dl>
<dl>
<dt><a href="../FormBuilder/DateTimeField.html">DateTimeField</a></dt>
	<dd>Class to generate and validate an HTML collection of &lt;select..&gt; items that  display date/time</dd>
</dl>
<dl>
<dt><a href="../FormBuilder/HiddenField.html">HiddenField</a></dt>
	<dd>Class to generate and validate an HTML &lt;input type=&quot;hidden&quot; ..&gt;</dd>
</dl>
<dl>
<dt><a href="../FormBuilder/UploadField.html">UploadField</a></dt>
	<dd>Class to generate and validate an HTML &lt;input type=&quot;file&quot; ..&gt;</dd>
</dl>
<dl>
<dt><a href="../FormBuilder/LabelField.html">LabelField</a></dt>
	<dd>Class to display a text label inside a form.</dd>
</dl>
</div>
</td>




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

<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line 70]<br />
FormField class<br /><br /><p>FormField is a base class that is used to create new field classes  to be used in the FormBuilder class. It should be considered as a virtual  class, so it is not supposed to be used directly</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>protected</td>
  </tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />


<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
  <hr />
	<a name="methoddump"></a>
	<h3>method dump <span class="smalllinenumber">[line 125]</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 dump(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgenerate"></a>
	<h3>method generate <span class="smalllinenumber">[line 130]</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 generate(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../FormBuilder/TextField.html#methodgenerate">TextField::generate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/PasswordField.html#methodgenerate">PasswordField::generate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/PopupField.html#methodgenerate">PopupField::generate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/CheckBoxField.html#methodgenerate">CheckBoxField::generate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/SubmitField.html#methodgenerate">SubmitField::generate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/SubmitFieldGroup.html#methodgenerate">SubmitFieldGroup::generate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/RadioButtonField.html#methodgenerate">RadioButtonField::generate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/TextAreaField.html#methodgenerate">TextAreaField::generate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/DateTimeField.html#methodgenerate">DateTimeField::generate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/HiddenField.html#methodgenerate">HiddenField::generate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/UploadField.html#methodgenerate">UploadField::generate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/LabelField.html#methodgenerate">LabelField::generate()</a></dt>
		<dd></dd>
	</dl>
	</p>

        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgenerateText"></a>
	<h3>method generateText <span class="smalllinenumber">[line 119]</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 generateText(
[mixed
$indent = 0])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../FormBuilder/PopupField.html#methodgenerateText">PopupField::generateText()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/CheckBoxField.html#methodgenerateText">CheckBoxField::generateText()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/SubmitField.html#methodgenerateText">SubmitField::generateText()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/SubmitFieldGroup.html#methodgenerateText">SubmitFieldGroup::generateText()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/RadioButtonField.html#methodgenerateText">RadioButtonField::generateText()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/TextAreaField.html#methodgenerateText">TextAreaField::generateText()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/DateTimeField.html#methodgenerateText">DateTimeField::generateText()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/LabelField.html#methodgenerateText">LabelField::generateText()</a></dt>
		<dd></dd>
	</dl>
	</p>

        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetDBValue"></a>
	<h3>method getDBValue <span class="smalllinenumber">[line 157]</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 getDBValue(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../FormBuilder/CheckBoxField.html#methodgetDBValue">CheckBoxField::getDBValue()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/DateTimeField.html#methodgetDBValue">DateTimeField::getDBValue()</a></dt>
		<dd></dd>
	</dl>
	</p>

        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetName"></a>
	<h3>method getName <span class="smalllinenumber">[line 167]</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 getName(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetType"></a>
	<h3>method getType <span class="smalllinenumber">[line 162]</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 getType(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgetValue"></a>
	<h3>method getValue <span class="smalllinenumber">[line 152]</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 getValue(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../FormBuilder/CheckBoxField.html#methodgetValue">CheckBoxField::getValue()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/DateTimeField.html#methodgetValue">DateTimeField::getValue()</a></dt>
		<dd></dd>
	</dl>
	</p>

        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodisValid"></a>
	<h3>method isValid <span class="smalllinenumber">[line 177]</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 isValid(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetInvalid"></a>
	<h3>method setInvalid <span class="smalllinenumber">[line 172]</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(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />


        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodsetValue"></a>
	<h3>method setValue <span class="smalllinenumber">[line 147]</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(
mixed
$value)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../FormBuilder/CheckBoxField.html#methodsetValue">CheckBoxField::setValue()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/DateTimeField.html#methodsetValue">DateTimeField::setValue()</a></dt>
		<dd></dd>
	</dl>
	</p>

        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodvalidate"></a>
	<h3>method validate <span class="smalllinenumber">[line 114]</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 validate(
mixed
$value)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />

	<p>Overridden in child classes as:<br />
		<dl>
	<dt><a href="../FormBuilder/TextField.html#methodvalidate">TextField::validate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/EmailField.html#methodvalidate">EmailField::validate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/PopupField.html#methodvalidate">PopupField::validate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/CheckBoxField.html#methodvalidate">CheckBoxField::validate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/RadioButtonField.html#methodvalidate">RadioButtonField::validate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/TextAreaField.html#methodvalidate">TextAreaField::validate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/DateTimeField.html#methodvalidate">DateTimeField::validate()</a></dt>
		<dd></dd>
	</dl>
		<dl>
	<dt><a href="../FormBuilder/UploadField.html#methodvalidate">UploadField::validate()</a></dt>
		<dd></dd>
	</dl>
	</p>

        <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:08 +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