<?xml version="1.0"?><phpdoc><class name="template_bridge" extends="form_commonobject" undoc="false" access="private" package="Form"><file>c:/www/apache/doc2//form/template_bridge.inc</file><doc><author email="ulf.wendel@phpdoc.de">Ulf Wendel</author><inherited src="Array"/><description>FIXME</description><shortdescription>Joins OOH Forms and Template to build automatically complex one column forms</shortdescription><version>$Id: template_bridge.inc,v 1.11 2001/01/02 15:49:44 uw Exp $</version></doc><function name="template_bridge" undoc="false" access="public"><doc><see type="var">$template_files</see><see type="var">$tpl</see><parameter name="$form" default="&amp;quot;&amp;quot;" type="string">to template file</parameter><parameter name="$template" default="&amp;quot;&amp;quot;" type="string">unknowns?</parameter><parameter name="$template_files" default="&amp;quot;&amp;quot;" type="mixed">files</parameter><return type="void"/><description/><shortdescription>Constructor.</shortdescription></doc></function><function name="setTemplatePath" undoc="false" access="public"><doc><see type="var">$template</see><parameter name="$template" type="string"/><return name="$ok" type="bool"/><throws>runtime_wrongparam</throws><description/><shortdescription>Sets the path to the template</shortdescription></doc></function><function name="setTemplateFiles" undoc="false" access="public"><doc><see type="var">$template_files</see><parameter name="$template_files" type="mixed"/><return name="$ok" type="bool"/><throws>runtime_wrongparam</throws><description/><shortdescription>Sets the template files</shortdescription></doc></function><function name="setForm" undoc="false" access="public"><doc><see type="var">$form</see><parameter name="$form" type="mixed"/><return type="void"/><throws>runtime_wrongparam</throws><description/><shortdescription>Defines the form to use</shortdescription></doc></function><function name="isValid" undoc="false" access="public"><doc><return name="$ok" type="bool"/><description/><shortdescription>Are there errors in this form?</shortdescription></doc></function><function name="setMethod" undoc="false" access="public"><doc><parameter name="$method" default="&amp;quot;POST&amp;quot;" type="string"/><return type="void"/><description>You set the method eighter by Start() or be setMethod()</description><shortdescription>Set the method used in the form. Form needs it for autoloadValues().</shortdescription></doc></function><function name="newTemplate" undoc="false" access="private"><doc><return name="$ok" type="bool"/><throws>runtime_wrongparam</throws><description/><shortdescription>Create a new instance of template</shortdescription></doc></function><function name="colorFlash" undoc="false" access="private"><doc><parameter name="$counter" type="int">row number in form</parameter><parameter name="$data" type="array">element data</parameter><parameter name="$error" type="string">validation result</parameter><return name="$bgcolor" type="string"/><description>write a function, that returns a bgcolor attribute or anempty stringFIXME</description><shortdescription>If you want to cycle colors on per row or per type base</shortdescription></doc></function><function name="setImagepath" undoc="false" access="public"><doc><parameter name="$path" type="string"/><return name="$ok" type="bool"/><throws>runtime_wrongparam</throws><description/><shortdescription>Were are the images stored?</shortdescription></doc></function><function name="setImages" undoc="false" access="public"><doc><see type="var">$images</see><see type="function">dropImages()</see><parameter name="$images" type="array"/><return name="$ok" type="bool"/><throws>runtime_wrongparam</throws><description/><shortdescription>If you want to use images to assign the status of a field, define them.</shortdescription></doc></function><function name="dropImages" undoc="false" access="public"><doc><see type="function">setImages()</see><see type="var">$images</see><parameter name="$images" type="array"/><return name="$ok" type="bool"/><throws>runtime_wrongparam</throws><description/><shortdescription>Drop some images</shortdescription></doc></function><function name="addElement" undoc="false" access="public"><doc><parameter name="$element_data" type="array"/><return name="$ok" type="bool"/><throws>runtime_wrongparam</throws><throws>notice</throws><description/><shortdescription>Adds a new element to the template</shortdescription></doc></function><function name="addComment" undoc="false" access="public"><doc><parameter name="$comment" type="string"/><parameter name="$bgcolor" default="&amp;quot;&amp;quot;" type="string"/><return name="$ok" type="bool"/><throws>runtime_wrongparam</throws><description/><shortdescription>Adds a comment to the form</shortdescription></doc></function><function name="addSubmit" undoc="false" access="public"><doc><see type="function">addReset()</see><see type="function">addNext()</see><see type="function">addPrev()</see><parameter name="$name" type="string"/><return name="$ok" type="bool"/><throws>runtime_wrongparam</throws><description/><shortdescription>Define a submit button - today there&amp;apos;s always just on submit button</shortdescription></doc></function><function name="addReset" undoc="false" access="public"><doc><see type="function">addSubmit()</see><see type="function">addNext()</see><see type="function">addPrev()</see><parameter name="$name" type="string"/><return name="$ok" type="bool"/><throws>runtime_wrongparam</throws><description/><shortdescription>Define a reset button</shortdescription></doc></function><function name="addNext" undoc="false" access="public"><doc><see type="function">addReset()</see><see type="function">addSubmit()</see><see type="function">addPrev()</see><parameter name="$name" type="string"/><return name="$ok" type="bool"/><description/><shortdescription>Define a next step submit button, tribute to tab styled forms</shortdescription></doc></function><function name="addPrev" undoc="false" access="public"><doc><see type="function">addSubmit()</see><see type="function">addReset()</see><see type="function">addNext()</see><parameter name="$name" type="string"/><return name="$ok" type="bool"/><throws>runtime_wrongparam</throws><description/><shortdescription>Define a previous step submit button, tribute to tab styled forms</shortdescription></doc></function><function name="dumpForm" undoc="false" access="public"><doc><return name="$html" type="string"/><throws>runtime</throws><description>function. Within init() you define labels, hints, comments and buttons. Thiscan&amp;apos;t be done with dumpForm.</description><shortdescription>Dumps a form to the template. This is no replacement for a custom init()</shortdescription></doc></function><function name="Start" undoc="false" access="public"><doc><see type="function">setStart()</see><see type="function">Finish()</see><see type="function">setFinish()</see><parameter name="$js_name" default="&amp;quot;&amp;quot;" type="string"/><parameter name="$method" default="&amp;quot;POST&amp;quot;" type="mixed"/><parameter name="$action" default="&amp;quot;&amp;quot;" type="string"/><parameter name="$target" default="&amp;quot;&amp;quot;" type="string"/><return type="void"/><description/><shortdescription>Generate &amp;lt;form&amp;gt;-Tag</shortdescription></doc></function><function name="setStart" undoc="false" access="public"><doc><see type="function">Start()</see><see type="function">Finish()</see><see type="function">setFinish()</see><parameter name="$html" type="string"/><return name="" type="boolean"/><description/><shortdescription>Sets the opening form tag</shortdescription></doc></function><function name="Finish" undoc="false" access="public"><doc><parameter name="$additional_html" default="&amp;quot;&amp;quot;" type="string">= &amp;quot;&amp;quot;</parameter><parameter name="$sess" default="&amp;quot;&amp;quot;" type="mixed">= &amp;quot;&amp;quot;</parameter><return name="$html" type="string"/><description/><shortdescription>Generate closing &amp;lt;/form&amp;gt;-Tag</shortdescription></doc></function><function name="setFinish" undoc="false" access="public"><doc><see type="function">Finish()</see><see type="function">Start()</see><see type="function">setStart()</see><parameter name="$html" type="string"/><return name="$ok" type="bool"/><throws>runtime</throws><description/><shortdescription>Sets the closing form tag</shortdescription></doc></function><function name="StatusImage" undoc="false" access="private"><doc><parameter name="$data" type="array"/><parameter name="$type" type="mixed"/><parameter name="$error" default="&amp;quot;&amp;quot;" type="string"/><return name="" type="string"/><throws>runtime_wrongparam</throws><description/><shortdescription>Return a status image if available</shortdescription></doc></function><function name="get" undoc="false" access="public"><doc><return name="$html" type="string"/><throws>runtime</throws><description/><shortdescription>Returns the Form</shortdescription></doc></function><function name="show" undoc="false" access="public"><doc><return name="$html" type="string"/><description/><shortdescription>Show the generated form</shortdescription></doc></function><function name="Init" undoc="true" access="private"><doc><return type="void"/></doc></function><variable name="$template" access="private" type="string">&amp;quot;&amp;quot;<doc><see type="function">template_bridge()</see><description/><shortdescription>Path to the template files, set by the constructor.</shortdescription></doc></variable><variable name="$unknowns" access="private" type="string">&amp;quot;remove&amp;quot;<doc><see type="function">template_bridge()</see><description/><shortdescription>How to handle unknown placeholder.</shortdescription></doc></variable><variable name="$template_files" access="private" type="array">array (&#x0a;																	&amp;quot;main&amp;quot;	=&amp;gt; &amp;quot;form_main.tpl&amp;quot;&#x0a;																	#&amp;quot;box&amp;quot;		=&amp;gt; &amp;quot;form_box.html&amp;quot;&#x0a;															)<doc><description/><shortdescription>Template files.</shortdescription></doc></variable><variable name="$tpl" access="private" type="object template"><doc><see type="function">template_bridge()</see><description/><shortdescription>Template object</shortdescription></doc></variable><variable name="$colors" access="private" type="array">array (&#x0a;													&amp;quot;comment&amp;quot;		=&amp;gt; &amp;quot;&amp;quot;, &#x0a;													&amp;quot;button&amp;quot;		=&amp;gt; &amp;quot;&amp;quot;&#x0a;											)<doc><description/><shortdescription>Array of background colors, override it in your class.</shortdescription></doc></variable><variable name="$images" access="private" type="array">array()<doc><see type="function">setImages()</see><see type="function">dropImages()</see><description/><shortdescription>Status Images.</shortdescription></doc></variable><variable name="$imagepath" access="private" type="string">&amp;quot;&amp;quot;<doc><see type="function">setImagepath()</see><description/><shortdescription>Path to the Images</shortdescription></doc></variable><variable name="$elements" access="private" type="array">array()<doc><description/><shortdescription>Array of all elements.</shortdescription></doc></variable><variable name="$form" access="private" type="object form"><doc><description/><shortdescription>Object of form we&amp;apos;re working on.</shortdescription></doc></variable><variable name="$start_form" access="private" type="string">&amp;quot;&amp;quot;<doc><see type="function">Start()</see><see type="function">setStart()</see><see type="function">Finish()</see><see type="function">setFinish()</see><see type="var">$end_form</see><description/><shortdescription>Opening form tag. Eigther generated by Start() or set by the user with setStart().</shortdescription></doc></variable><variable name="$end_form" access="private" type="string">&amp;quot;&amp;quot;<doc><see type="function">Finish()</see><see type="function">setFinish()</see><see type="function">Start()</see><see type="function">setStart()</see><see type="var">$start_form</see><description/><shortdescription>Closing form tag. Eighter generated by Finish() or set by the use with setFinish().</shortdescription></doc></variable><inherited src="form_commonobject" type="functions"><element>introspection</element></inherited><inherited src="form_commonobject" type="variables"><element>$cr_html</element><element>$cr_js</element><element>$exception</element></inherited><path><parent>form_commonobject</parent></path><baseclass>form_commonobject</baseclass></class></phpdoc>
