<?xml version="1.0"?><phpdoc><class name="form_element_date" extends="form_element" undoc="false" access="private" package="Form"><file>c:/www/apache/doc2//form/form_element_date.inc</file><doc><author email="uw@netuse.de">Ulf Wendel</author><inherited src="Array"/><overriden src="Array"/><description>Use this meta element to make sure that the user enters a valid date.</description><shortdescription>Takes a date() format string and renders several select boxes to enter a date and/or time</shortdescription><version>$Id: $</version></doc><function name="setup" undoc="true" access="private"><doc><see type="var">$max_year_long</see><see type="var">$max_year_short</see><return type="void"/><overriden src="form_element"/><description/><shortdescription>Initializes $max_year_long and $max_year_short.</shortdescription></doc></function><function name="getValue" undoc="true" access="private"><doc><return name="" type="array"/><overriden src="form_element"/><description>The assoziative array is indexed by the format string characters.</description><shortdescription>Returns an array with the values of the selected date.</shortdescription></doc></function><function name="generateSelect" undoc="false" access="private"><doc><parameter name="$name" type="string">select tag name attribute</parameter><return name="" type="string">HTML </return><description/><shortdescription>Generates a select box.</shortdescription></doc></function><function name="getJSonActivation" undoc="true" access="private"><doc><parameter name="$name" type="string">Suffix</parameter><return type="void"/><overriden src="form_element"/><description/><shortdescription/></doc></function><function name="get" undoc="true" access="private"><doc><see type="function">getfrozen()</see><see type="function">show()</see><parameter name="$value" default="&amp;quot;&amp;quot;" type="string">The value is only used with radio buttons.&#x0a;If the given value is equal to the value of the&#x0a;element when it was defined, the radio gets selected.</parameter><return type="void"/><overriden src="form_element"/><description/><shortdescription>Returns the HTML code of the element.</shortdescription></doc></function><function name="generateButton" undoc="true" access="private"><doc><return type="void"/></doc></function><function name="getPreloadValue" undoc="true" access="private"><doc><parameter name="$name" undoc="true"/><return type="void"/></doc></function><function name="getJSvalue" undoc="true" access="private"><doc><return type="void"/><overriden src="form_element"/><description>Most elements can use document.forms[..].elements[...].value to get thevalue of an element but some need a more sophisticated function. Theseelements must override this function.The JavaScript function provided by this elements should be names &amp;quot;form_elmenttype&amp;quot;,e.g. &amp;quot;form_select&amp;quot;. The (JS) function gets called with two arguments:string formname, string elementname. It returns the value of the element, seeform_element_select for an example.The function returns the JavaScript code itself and a name for the codesnippet that allows the form object to avoid sending the code twice.</description><shortdescription>JavaScript function used to get the value of the element.</shortdescription></doc></function><function name="form_date" undoc="true" access="private"><doc><return type="void"/></doc></function><function name="getExtraJS" undoc="true" access="private"><doc><return type="void"/><overriden src="form_element"/><description>Some elements need extra JavaScript functionality to befull featured. Date for example is able to draw a &amp;quot;now&amp;quot; button. When theuser clicks this button, the date selectors change their values to thecurrent date. An additional JavaScript function &amp;quot;form_date_now&amp;quot; handles the clickon the button.The function returns the JavaScript code itself and a name for the codesnippet that allows the form object to avoid sending the code twice.</description><shortdescription>Returns additional JavaScript required by some complex form elements.</shortdescription></doc></function><function name="form_date_now" undoc="true" access="private"><doc><return type="void"/></doc></function><variable name="$format" access="private" type="string">&amp;quot;&amp;quot;<doc><description>The format string implements most of the features date() offers.</description><shortdescription>String describing the format of the date/time that you can enter.</shortdescription></doc></variable><variable name="$language" access="private" type="string">&amp;quot;en&amp;quot;<doc><description/><shortdescription>Language used in the generated select boxes.</shortdescription></doc></variable><variable name="$min_year_long" access="private" type="integer">1990<doc><see type="function">setup()</see><description/><shortdescription>First year of a date(&amp;quot;Y&amp;quot;) selector.</shortdescription></doc></variable><variable name="$max_year_long" access="private" type="integer">2010<doc><description/><shortdescription>Last year of a date(&amp;quot;Y&amp;quot;) selector.</shortdescription></doc></variable><variable name="$min_year_short" access="private" type="integer">90<doc><see type="function">setup()</see><description/><shortdescription>First year of a date(&amp;quot;y&amp;quot;) selector.</shortdescription></doc></variable><variable name="$max_year_short" access="private" type="integer">10<doc><description/><shortdescription>Last year of a date(&amp;quot;y&amp;quot;) selector.</shortdescription></doc></variable><variable name="$intro" access="private" type="string">&amp;quot;&amp;quot;<doc><description/><shortdescription>Intro option.</shortdescription></doc></variable><variable name="$intro_e" access="private" type="string">&amp;quot;&amp;quot;<doc><description/><shortdescription>Intro option error message.</shortdescription></doc></variable><variable name="$preload" access="private" type="boolean">false<doc><description/><shortdescription>Preload selectors with the current date?</shortdescription></doc></variable><variable name="$now" access="private" type="string">&amp;quot;&amp;quot;<doc><description/><shortdescription>Add a Submit button that allows the user to preload with the current date?</shortdescription></doc></variable><variable name="$options" access="private" type="array">array (&#x0a;													&amp;quot;en&amp;quot;	=&amp;gt; array (&#x0a;																						&amp;quot;weekdays_short&amp;quot;	=&amp;gt;  array (&amp;quot;Mon&amp;quot;, &amp;quot;Tue&amp;quot;, &amp;quot;Wed&amp;quot;, &amp;quot;Thu&amp;quot;, &amp;quot;Fri&amp;quot;, &amp;quot;Sat&amp;quot;, &amp;quot;Sun&amp;quot; ),&#x0a;																						&#x0a;																						&amp;quot;weekdays_long&amp;quot;		=&amp;gt; array(	&amp;quot;Monday&amp;quot;, &amp;quot;Tuesday&amp;quot;, &amp;quot;Wednesday&amp;quot;, &amp;quot;Thursday&amp;quot;, &#x0a;																																				&amp;quot;Friday&amp;quot;, &amp;quot;Saturday&amp;quot;, &amp;quot;Sunday&amp;quot;),&#x0a;																						&#x0a;																						&amp;quot;months_short&amp;quot;		=&amp;gt; array (	&amp;quot;Jan&amp;quot;, &amp;quot;Feb&amp;quot;, &amp;quot;Mar&amp;quot;, &amp;quot;Apr&amp;quot;, &amp;quot;May&amp;quot;, &amp;quot;Jun&amp;quot;, &amp;quot;Jul&amp;quot;, &#x0a;																																					&amp;quot;Aug&amp;quot;, &amp;quot;Sep&amp;quot;, &amp;quot;Oct&amp;quot;, &amp;quot;Nov&amp;quot;, &amp;quot;Dec&amp;quot; ),&#x0a;																																					&#x0a;																						&amp;quot;months_long&amp;quot;			=&amp;gt;	array( 	&amp;quot;January&amp;quot;, &amp;quot;February&amp;quot;, &amp;quot;March&amp;quot;, &amp;quot;April&amp;quot;, &amp;quot;May&amp;quot;, &#x0a;																																					&amp;quot;June&amp;quot;, &amp;quot;Juli&amp;quot;, &amp;quot;August&amp;quot;, &amp;quot;September&amp;quot;, &amp;quot;October&amp;quot;, &#x0a;																																					&amp;quot;November&amp;quot;, &amp;quot;December&amp;quot; )&#x0a;																	),&#x0a;																	&#x0a;													&amp;quot;de&amp;quot;	=&amp;gt; array (&#x0a;																						&amp;quot;weekdays_short&amp;quot;	=&amp;gt; array ( &amp;quot;Mon&amp;quot;, &amp;quot;Di&amp;quot;, &amp;quot;Mi&amp;quot;, &amp;quot;Do&amp;quot;, &amp;quot;Fr&amp;quot;, &amp;quot;Sa&amp;quot;, &amp;quot;So&amp;quot;),&#x0a;																						&#x0a;																						&amp;quot;weekdays_long&amp;quot;		=&amp;gt; array ( &amp;quot;Montag&amp;quot;, &amp;quot;Dienstag&amp;quot;, &amp;quot;Mittwoch&amp;quot;, &amp;quot;Donnerstag&amp;quot;,&#x0a;																																					&amp;quot;Freitag&amp;quot;, &amp;quot;Samstag&amp;quot;, &amp;quot;Sonntag&amp;quot;),&#x0a;																						&#x0a;																						&amp;quot;months_short&amp;quot;		=&amp;gt; array ( &amp;quot;Jan&amp;quot;, &amp;quot;Feb&amp;quot;, &amp;quot;März&amp;quot;, &amp;quot;April&amp;quot;, &amp;quot;Mai&amp;quot;, &amp;quot;Juni&amp;quot;, &amp;quot;Juli&amp;quot;,&#x0a;																																					&amp;quot;Aug&amp;quot;, &amp;quot;Sept&amp;quot;, &amp;quot;Okt&amp;quot;, &amp;quot;Nov&amp;quot;, &amp;quot;Dez&amp;quot;),&#x0a;																																					&#x0a;																						&amp;quot;months_long&amp;quot;			=&amp;gt; array( &amp;quot;Januar&amp;quot;, &amp;quot;Februar&amp;quot;, &amp;quot;März&amp;quot;, &amp;quot;April&amp;quot;, &amp;quot;Mai&amp;quot;, &amp;quot;Juni&amp;quot;,&#x0a;																																					&amp;quot;Juli&amp;quot;, &amp;quot;August&amp;quot;, &amp;quot;September&amp;quot;, &amp;quot;Oktober&amp;quot;, &amp;quot;November&amp;quot;, &#x0a;																																					&amp;quot;Dezember&amp;quot;	)&#x0a;																						&#x0a;																	) &#x0a;												)<doc><description/><shortdescription>Word translation mapping.</shortdescription></doc></variable><variable name="$required_fields" access="private" type="array">array ( &#x0a;																	&amp;quot;format&amp;quot;	=&amp;gt; &amp;quot;string&amp;quot;&#x0a;																)<doc><see type="var">$shared_required_fields</see><see type="var">$optional_fields</see><overriden src="form_element"/><description/><shortdescription>List of required fields provided by a derived class.</shortdescription></doc></variable><variable name="$optional_fields" access="private" type="array">array (&#x0a;																	&amp;quot;now&amp;quot;							=&amp;gt; &amp;quot;string&amp;quot;,&#x0a;																	&#x0a;																	&amp;quot;preload&amp;quot;					=&amp;gt; &amp;quot;boolean&amp;quot;,&#x0a;																	&#x0a;																	&amp;quot;language&amp;quot;				=&amp;gt; &amp;quot;string&amp;quot;,&#x0a;																	&#x0a;																	&amp;quot;intro&amp;quot;						=&amp;gt; &amp;quot;string&amp;quot;,&#x0a;																	&amp;quot;intro_e&amp;quot;					=&amp;gt; &amp;quot;string&amp;quot;,&#x0a;																	&#x0a;																	&amp;quot;min_year_long&amp;quot;		=&amp;gt; &amp;quot;integer&amp;quot;,&#x0a;																	&amp;quot;max_year_long&amp;quot;		=&amp;gt; &amp;quot;integer&amp;quot;,&#x0a;																	&#x0a;																	&amp;quot;min_year_short&amp;quot;	=&amp;gt; &amp;quot;integer&amp;quot;,&#x0a;																	&amp;quot;max_year_short&amp;quot;	=&amp;gt; &amp;quot;integer&amp;quot;&#x0a;																)<doc><see type="var">$shared_optional_fields</see><see type="var">$required_fields</see><overriden src="form_element"/><description/><shortdescription>List of optional fields provided by a derived class.</shortdescription></doc></variable><inherited src="form_element" type="functions"><element>form_element</element><element>checkconfiguration</element><element>gettype</element><element>isbutton</element><element>getvalidator</element><element>setvalidator</element><element>freeze</element><element>unfreeze</element><element>thawout</element><element>getfrozen</element><element>show</element><element>validate</element><element>validatelength</element><element>validateregex</element><element>dovalidation</element><element>react</element><element>setvalue</element><element>getcommonhtmlattributes</element><element>getfrozenhiddenelement</element><element>getfrozentable</element><element>getjs</element><element>getname</element><element>ishidden</element></inherited><inherited src="form_commonobject" type="functions"><element>introspection</element></inherited><inherited src="form_element" type="variables"><element>$flag_config_ok</element><element>$elname</element><element>$name</element><element>$value</element><element>$additional_html</element><element>$frozen</element><element>$class</element><element>$id</element><element>$style</element><element>$shared_required_fields</element><element>$shared_optional_fields</element><element>$method</element><element>$val_events</element><element>$js_mode</element><element>$form_name</element><element>$validator</element><element>$js_validator</element></inherited><inherited src="form_commonobject" type="variables"><element>$cr_html</element><element>$exceptions</element></inherited><path><parent>form_element</parent><parent>form_commonobject</parent></path><baseclass>form_commonobject</baseclass></class></phpdoc>