Location: PHPKode > scripts > FormBuilder > formbuilder-51140/Class Reference/FormBuilder/PopupField.html
<html>
<head>
<title>Docs For Class PopupField</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: PopupField</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><a href="../FormBuilder/FormField.html">FormField</a>
   |
   --PopupField</pre><br />
<div class="description">Class to generate and validate an HTML &lt;select..&gt; item</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/PopupField.html#methodPopupField">PopupField</a></li>
    <li><a href="../FormBuilder/PopupField.html#methodgenerate">generate</a></li>
    <li><a href="../FormBuilder/PopupField.html#methodgenerateText">generateText</a></li>
    <li><a href="../FormBuilder/PopupField.html#methodvalidate">validate</a></li>
  </ul>
</td>

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

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





<td valign="top">
<h3>Inherited Methods</h3>
<div class="tags">
<h4>Class: <a href="../FormBuilder/FormField.html">FormField</a></h4>
<dl>
    <dt>
    <a href="../FormBuilder/FormField.html#methoddump">FormField::dump()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/FormField.html#methodgenerate">FormField::generate()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/FormField.html#methodgenerateText">FormField::generateText()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/FormField.html#methodgetDBValue">FormField::getDBValue()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/FormField.html#methodgetName">FormField::getName()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/FormField.html#methodgetType">FormField::getType()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/FormField.html#methodgetValue">FormField::getValue()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/FormField.html#methodisValid">FormField::isValid()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/FormField.html#methodsetInvalid">FormField::setInvalid()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/FormField.html#methodsetValue">FormField::setValue()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/FormField.html#methodvalidate">FormField::validate()</a>
  </dt>
  <dd>
    
  </dd>
  </dl>
</div>
</td>

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

<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line 343]<br />
Class to generate and validate an HTML &lt;select..&gt; item<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>
</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="methodPopupField"></a>
	<h3>constructor PopupField <span class="smalllinenumber">[line 358]</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>PopupField PopupField(
string
$label, string
$name, bool
$required, array
$options, [string
$blankValue = ''])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		PopupField Constructor<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>$label</b>&nbsp;&nbsp;</td>
        <td>A text description of the item</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$name</b>&nbsp;&nbsp;</td>
        <td>The name to identify this PopupField</td>
      </tr>
          <tr>
        <td class="type">bool&nbsp;&nbsp;</td>
        <td><b>$required</b>&nbsp;&nbsp;</td>
        <td>If the field should be filled</td>
      </tr>
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$options</b>&nbsp;&nbsp;</td>
        <td>An array containing a list of key-value  associations in the form array ('name' =&gt; 'text', ...)</td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$blankValue</b>&nbsp;&nbsp;</td>
        <td>The text to display when none of the options  are selected (optional).</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgenerate"></a>
	<h3>method generate <span class="smalllinenumber">[line 369]</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 />

Overrides <a href="../FormBuilder/FormField.html#methodgenerate">FormField::generate()</a> (parent method not documented)<br /><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodgenerateText"></a>
	<h3>method generateText <span class="smalllinenumber">[line 412]</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 />

Overrides <a href="../FormBuilder/FormField.html#methodgenerateText">FormField::generateText()</a> (parent method not documented)<br /><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodvalidate"></a>
	<h3>method validate <span class="smalllinenumber">[line 399]</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
$http_var)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />

Overrides <a href="../FormBuilder/FormField.html#methodvalidate">FormField::validate()</a> (parent method not documented)<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:09 +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