Location: PHPKode > scripts > FormBuilder > formbuilder-51140/Class Reference/FormBuilder/DateField.html
<html>
<head>
<title>Docs For Class DateField</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: DateField</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>
   |
   --<a href="../FormBuilder/DateTimeField.html">DateTimeField</a>
      |
      --DateField</pre><br />
<div class="description">Class to generate and validate an HTML collection of &lt;select..&gt; items that  display date</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/DateField.html#methodDateField">DateField</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/DateTimeField.html">DateTimeField</a></h4>
<dl>
    <dt>
    <a href="../FormBuilder/DateTimeField.html#methodDateTimeField">DateTimeField::DateTimeField()</a>
  </dt>
  <dd>
    DateTimeField Constructor
  </dd>
    <dt>
    <a href="../FormBuilder/DateTimeField.html#methodgenerate">DateTimeField::generate()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/DateTimeField.html#methodgenerateDateTime">DateTimeField::generateDateTime()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/DateTimeField.html#methodgenerateText">DateTimeField::generateText()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/DateTimeField.html#methodgetDBValue">DateTimeField::getDBValue()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/DateTimeField.html#methodgetValue">DateTimeField::getValue()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/DateTimeField.html#methodsetValue">DateTimeField::setValue()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../FormBuilder/DateTimeField.html#methodvalidate">DateTimeField::validate()</a>
  </dt>
  <dd>
    
  </dd>
  </dl>
<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 1234]<br />
Class to generate and validate an HTML collection of &lt;select..&gt; items that  display date<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>see:</b>&nbsp;&nbsp;</td><td><a href="../FormBuilder/DateTimeField.html#methodDateTimeField">DateTimeField::DateTimeField()</a></td>
  </tr>
  <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="methodDateField"></a>
	<h3>constructor DateField <span class="smalllinenumber">[line 1252]</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>DateField DateField(
string
$label, string
$name, bool
$required, bool
$now, array
$yearRange)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		DateField 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 DateField</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">bool&nbsp;&nbsp;</td>
        <td><b>$now</b>&nbsp;&nbsp;</td>
        <td>If set to true, then the current date will be  displayed as default, otherwise display is blank</td>
      </tr>
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$yearRange</b>&nbsp;&nbsp;</td>
        <td>An array containing the range or years to be  displayed in the form array(lowerRange, upperRange). If the lowerRange or  upperRange values are less than 100, the values will be relative to the  current year (currentYear - lowerRange, currentYear + upperRange); if  their values are bigger than 100, the values will be considered as years.</td>
      </tr>
        </table>
    </div><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:06 +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