<?xml version="1.0"?><phpdoc><class name="form_element_file" extends="form_element_buttonobject" undoc="false" access="public" package="Form"><file>c:/www/apache/doc2//form/form_element_file.inc</file><doc><author email="uw@netuse.de">Ulf Wendel</author><inherited src="Array"/><overriden src="Array"/><description>You can do a simple validation of the file that the user attempts toupload by checking the file name using length and regexp attributes.</description><shortdescription>Generates a file upload button.</shortdescription><version>$Id: form_element_file.inc,v 1.5 2000/12/12 01:37:36 uw Exp $</version></doc><function name="getInputFileTag" undoc="false" access="private"><doc><see type="function">get()</see><return name="$html" type="string"/><description/><shortdescription>Returns the input type = file tag.</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="getfrozen" undoc="true" access="private"><doc><see type="function">get()</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 thr HTML code of the frozen element.</shortdescription><brother>get</brother></doc></function><function name="validate" undoc="true" access="private"><doc><see type="function">validateLength()</see><see type="function">validateRegEx()</see><see type="function">doValidation()</see><return type="void"/><overriden src="form_element"/><description/><shortdescription>Returns the result of the (serverside) validation.</shortdescription></doc></function><variable name="$size" access="private" type="integer">-1<doc><description/><shortdescription>HTML size attribute.</shortdescription></doc></variable><variable name="$accept" access="private" type="string">&amp;quot;&amp;quot;<doc><description>Note that not all browsers support that attribute.</description><shortdescription>HTML accept attribute.</shortdescription></doc></variable><variable name="$length_e" access="private" type="string">&amp;quot;&amp;quot;<doc><see type="var">$minlength</see><see type="var">$maxlength</see><description>Error message used to indicate that the length of the value of the elementis eigther smaller than minlength or bigger than maxlength. If no messageis given the length gets not validated. Used together with maxlengthand minlength you can control the length of the user input.</description><shortdescription>Length error message.</shortdescription></doc></variable><variable name="$minlength" access="private" type="integer"><doc><see type="var">$length_e</see><see type="var">$maxlength</see><description/><shortdescription>Minimal length of the value of the element ( = user input)</shortdescription></doc></variable><variable name="$maxlength" access="private" type="integer">-1<doc><see type="var">$length_e</see><see type="var">$minlength</see><description>Used as HTML attribute (only form_element_text)as well as for the serverside validation.</description><shortdescription>Maximum length of the value of the element ( = user input)</shortdescription></doc></variable><variable name="$valid_e" access="private" type="string">&amp;quot;&amp;quot;<doc><see type="var">$valid_regex</see><see type="var">$valid_icase</see><description>Error message used to indicate that the value of the elementdoesn&amp;apos;t math the regular expression specified with valid_regex.If no message is given the value gets not validated. Used withvalid_regex and optionally valid_icase you can make sure thatthe user input follows certain rules, e.g. some that doa simple e-mail validation. As with to old oohforms ereg() and eregi()are used to test the value.</description><shortdescription>Regular expression error message</shortdescription></doc></variable><variable name="$valid_regex" access="private" type="string">&amp;quot;&amp;quot;<doc><see type="var">$valid_e</see><see type="var">$valid_icase</see><description/><shortdescription>Regular expression used to validate the value of the element ( = user input)</shortdescription></doc></variable><variable name="$valid_icase" access="private" type="boolean">false<doc><see type="var">$valid_e</see><see type="var">$valid_regex</see><description/><shortdescription>Regular expression validation case insensitive?</shortdescription></doc></variable><variable name="$optional_fields" access="private" type="array">array (&#x0a;																	&amp;quot;accesskey&amp;quot;				=&amp;gt; &amp;quot;string&amp;quot;,&#x0a;																	&amp;quot;tabindex&amp;quot;				=&amp;gt; &amp;quot;integer&amp;quot;,&#x0a;																	&#x0a;																	&amp;quot;size&amp;quot;						=&amp;gt; &amp;quot;integer&amp;quot;,&#x0a;																	&amp;quot;accept&amp;quot;					=&amp;gt; &amp;quot;string&amp;quot;,&#x0a;																	&#x0a;																	&amp;quot;length_e&amp;quot;				=&amp;gt; &amp;quot;string&amp;quot;,&#x0a;																	&amp;quot;minlength&amp;quot;				=&amp;gt; &amp;quot;integer&amp;quot;,&#x0a;																	&amp;quot;maxlength&amp;quot;				=&amp;gt; &amp;quot;integer&amp;quot;,&#x0a;																	&#x0a;																	&amp;quot;valid_e&amp;quot;					=&amp;gt; &amp;quot;string&amp;quot;,&#x0a;																	&amp;quot;valid_regex&amp;quot;			=&amp;gt; &amp;quot;string&amp;quot;,&#x0a;																	&amp;quot;valid_icase&amp;quot;			=&amp;gt; &amp;quot;boolean&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_buttonobject" type="variables"><element>$accesskey</element><element>$tabindex</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>$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><inherited src="form_element" type="functions"><element>form_element</element><element>setup</element><element>checkconfiguration</element><element>getvalue</element><element>gettype</element><element>isbutton</element><element>getvalidator</element><element>setvalidator</element><element>freeze</element><element>unfreeze</element><element>thawout</element><element>show</element><element>validatelength</element><element>validateregex</element><element>dovalidation</element><element>react</element><element>setvalue</element><element>getjsonactivation</element><element>getcommonhtmlattributes</element><element>getfrozenhiddenelement</element><element>getfrozentable</element><element>getjs</element><element>getjsvalue</element><element>getextrajs</element><element>getname</element><element>ishidden</element></inherited><inherited src="form_commonobject" type="functions"><element>introspection</element></inherited><path><parent>form_element_buttonobject</parent><parent>form_element</parent><parent>form_commonobject</parent></path><baseclass>form_commonobject</baseclass><subclasses><subclass>form_element_fileupload</subclass></subclasses></class></phpdoc>