<html>
<head>
<title>Docs For Class FormHelper</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">PHPonTrax</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_PHPonTrax.html" class="menu">class tree: PHPonTrax</a> ]
[ <a href="../elementindex_PHPonTrax.html" class="menu">index: PHPonTrax</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">
<div id="todolist">
<p><a href="../todolist.html">Todo List</a></p>
</div>
<b>Packages:</b><br />
<a href="../li_PHPonTrax.html">PHPonTrax</a><br />
<a href="../li_PHPonTraxTest.html">PHPonTraxTest</a><br />
<br /><br />
<b>Tutorials/Manuals:</b><br />
<strong>Package-level:</strong>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_PHPonTrax.pkg.html">PHP On Trax</a>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_rails_examples.pkg.html">Examples From The Rails Book</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_simpleapp.pkg.html">Build A Simple Trax Application</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_database.pkg.html">Create A Database and User</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_advbuild.pkg.html">Advanced Application Build Topics</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_naming.pkg.html">The Trax Naming Convention</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_troubleshoot.pkg.html">Troubleshooting</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_reference.pkg.html">Reference</a>
</ul>
</li></ul>
<strong>Class-level:</strong>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActiveRecordHelper.cls.html">ActiveRecordHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_FormTagHelper.cls.html">FormTagHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_Helpers.cls.html">Helpers</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_UrlHelper.cls.html">UrlHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_FormHelper.cls.html">FormHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_InputFilter.cls.html">InputFilter</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActionMailer.cls.html">ActionMailer</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ApplicationController.cls.html">ApplicationController</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActionController.cls.html">ActionController</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActiveRecord.cls.html">ActiveRecord</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_DateHelper.cls.html">DateHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_Router.cls.html">Router</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_FormOptionsHelper.cls.html">FormOptionsHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_TraxGenerator.cls.html">TraxGenerator</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_Session.cls.html">Session</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_Inflector.cls.html">Inflector</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActiveRecordError.cls.html">ActiveRecordError</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActionControllerError.cls.html">ActionControllerError</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ScaffoldController.cls.html">ScaffoldController</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_Dispatcher.cls.html">Dispatcher</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_TraxError.cls.html">TraxError</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ApplicationMailer.cls.html">ApplicationMailer</a>
</ul>
<b>Files:</b><br />
<div class="package">
<a href="../PHPonTrax/_vendor_trax_action_controller_php.html"> action_controller.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_mailer_php.html"> action_mailer.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_php.html"> action_view.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_active_record_php.html"> active_record.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_active_record_helper_php.html"> active_record_helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_add_phtml.html"> add.phtml
</a><br>
<a href="../PHPonTrax/_data_app_controllers_application_php.html"> application.php
</a><br>
<a href="../PHPonTrax/_data_app_views_layouts_application_phtml.html"> application.phtml
</a><br>
<a href="../PHPonTrax/_data_app_helpers_application_helper_php.html"> application_helper.php
</a><br>
<a href="../PHPonTrax/_data_app_application_mailer_php.html"> application_mailer.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_asset_tag_helper_php.html"> asset_tag_helper.php
</a><br>
<a href="../PHPonTrax/_test_layouts_catalog_phtml.html"> catalog.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_controller_php.html"> controller.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_controller_php.html"> controller.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html"> date_helper.php
</a><br>
<a href="../PHPonTrax/_data_config_environments_development_php.html"> development.php
</a><br>
<a href="../PHPonTrax/_data_public_dispatch_php.html"> dispatch.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_dispatcher_php.html"> dispatcher.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_edit_phtml.html"> edit.phtml
</a><br>
<a href="../PHPonTrax/_data_config_environment_php.html"> environment.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_error_phtml.html"> error.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_helper_php.html"> form_helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_options_helper_php.html"> form_options_helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_form_scaffolding_phtml.html"> form_scaffolding.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_tag_helper_php.html"> form_tag_helper.php
</a><br>
<a href="../PHPonTrax/_data_script_generate_php.html"> generate.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_helper_php.html"> helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_php.html"> helpers.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_index_phtml.html"> index.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_inflector_php.html"> inflector.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_input_filter_php.html"> input_filter.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_javascript_helper_php.html"> javascript_helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_layout_phtml.html"> layout.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_layout_phtml.html"> layout.phtml
</a><br>
<a href="../PHPonTrax/_makepkg_php.html"> makepkg.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_model_php.html"> model.php
</a><br>
<a href="../PHPonTrax/_data_config_environments_production_php.html"> production.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_router_php.html"> router.php
</a><br>
<a href="../PHPonTrax/_data_config_routes_php.html"> routes.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_scaffold_controller_php.html"> scaffold_controller.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_session_php.html"> session.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_show_phtml.html"> show.phtml
</a><br>
<a href="../PHPonTrax/_data_config_environments_test_php.html"> test.php
</a><br>
<a href="../PHPonTrax/_trax_php.html"> trax.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_trax_exceptions_php.html"> trax_exceptions.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_trax_generator_php.html"> trax_generator.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_url_helper_php.html"> url_helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_view_phtml.html"> view.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_add_phtml.html"> view_add.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_edit_phtml.html"> view_edit.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_index_phtml.html"> view_index.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_show_phtml.html"> view_show.phtml
</a><br>
</div><br />
<b>Classes:</b><br />
<div class="package">
<a href="../PHPonTrax/.html"></a><br />
<a href="../PHPonTrax/ActionController.html">ActionController</a><br />
<a href="../PHPonTrax/ActionControllerError.html">ActionControllerError</a><br />
<a href="../PHPonTrax/ActionMailer.html">ActionMailer</a><br />
<a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a><br />
<a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a><br />
<a href="../PHPonTrax/ActiveRecordHelper.html">ActiveRecordHelper</a><br />
<a href="../PHPonTrax/ApplicationController.html">ApplicationController</a><br />
<a href="../PHPonTrax/ApplicationMailer.html">ApplicationMailer</a><br />
<a href="../PHPonTrax/AssetTagHelper.html">AssetTagHelper</a><br />
<a href="../PHPonTrax/DateHelper.html">DateHelper</a><br />
<a href="../PHPonTrax/Dispatcher.html">Dispatcher</a><br />
<a href="../PHPonTrax/FormHelper.html">FormHelper</a><br />
<a href="../PHPonTrax/FormOptionsHelper.html">FormOptionsHelper</a><br />
<a href="../PHPonTrax/FormTagHelper.html">FormTagHelper</a><br />
<a href="../PHPonTrax/Helpers.html">Helpers</a><br />
<a href="../PHPonTrax/Inflector.html">Inflector</a><br />
<a href="../PHPonTrax/InputFilter.html">InputFilter</a><br />
<a href="../PHPonTrax/JavaScriptHelper.html">JavaScriptHelper</a><br />
<a href="../PHPonTrax/Router.html">Router</a><br />
<a href="../PHPonTrax/ScaffoldController.html">ScaffoldController</a><br />
<a href="../PHPonTrax/Session.html">Session</a><br />
<a href="../PHPonTrax/TraxError.html">TraxError</a><br />
<a href="../PHPonTrax/TraxGenerator.html">TraxGenerator</a><br />
<a href="../PHPonTrax/UrlHelper.html">UrlHelper</a><br />
</div>
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<h1>Class: FormHelper</h1>
Source Location: /vendor/trax/action_view/helpers/form_helper.php<br /><br />
<table width="100%" border="0">
<tr><td valign="top">
<h3><a href="#class_details">Class Overview</a></h3>
<pre><a href="../PHPonTrax/Helpers.html">Helpers</a>
|
--FormHelper</pre><br />
<div class="description"></div><br /><br />
<h4>Author(s):</h4>
<ul>
</ul>
</td>
<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
<li><a href="../PHPonTrax/FormHelper.html#var$default_date_options">$default_date_options</a></li>
<li><a href="../PHPonTrax/FormHelper.html#var$default_field_options">$default_field_options</a></li>
<li><a href="../PHPonTrax/FormHelper.html#var$default_radio_options">$default_radio_options</a></li>
<li><a href="../PHPonTrax/FormHelper.html#var$default_text_area_options">$default_text_area_options</a></li>
</ul>
</td>
<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
<li><a href="../PHPonTrax/FormHelper.html#method__construct">__construct</a></li>
<li><a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">add_default_name_and_id</a></li>
<li><a href="../PHPonTrax/FormHelper.html#methoderror_wrapping">error_wrapping</a></li>
<li><a href="../PHPonTrax/FormHelper.html#methodtag_id">tag_id</a></li>
<li><a href="../PHPonTrax/FormHelper.html#methodtag_id_with_index">tag_id_with_index</a></li>
<li><a href="../PHPonTrax/FormHelper.html#methodtag_name">tag_name</a></li>
<li><a href="../PHPonTrax/FormHelper.html#methodtag_name_with_index">tag_name_with_index</a></li>
<li><a href="../PHPonTrax/FormHelper.html#methodto_boolean_select_tag">to_boolean_select_tag</a></li>
<li><a href="../PHPonTrax/FormHelper.html#methodto_check_box_tag">to_check_box_tag</a></li>
<li><a href="../PHPonTrax/FormHelper.html#methodto_input_field_tag">to_input_field_tag</a></li>
<li><a href="../PHPonTrax/FormHelper.html#methodto_radio_button_tag">to_radio_button_tag</a></li>
<li><a href="../PHPonTrax/FormHelper.html#methodto_text_area_tag">to_text_area_tag</a></li>
</ul>
</td>
</tr></table>
<hr />
<table width="100%" border="0"><tr>
<td valign="top">
<h3>Child classes:</h3>
<div class="tags">
<dl>
<dt><a href="../PHPonTrax/FormOptionsHelper.html">FormOptionsHelper</a></dt>
<dd></dd>
</dl>
</div>
</td>
<td valign="top">
<h3>Inherited Variables</h3>
<div class="tags">
<h4>Class: <a href="../PHPonTrax/Helpers.html">Helpers</a></h4>
<dl>
<dt>
<a href="../PHPonTrax/Helpers.html#var$attribute_name">Helpers::$attribute_name</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#var$auto_index">Helpers::$auto_index</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#var$controller_name">Helpers::$controller_name</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#var$controller_object">Helpers::$controller_object</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#var$controller_path">Helpers::$controller_path</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#var$object_name">Helpers::$object_name</a>
</dt>
<dd>
</dd>
</dl>
</div>
</td>
<td valign="top">
<h3>Inherited Methods</h3>
<div class="tags">
<h4>Class: <a href="../PHPonTrax/Helpers.html">Helpers</a></h4>
<dl>
<dt>
<a href="../PHPonTrax/Helpers.html#method__construct">Helpers::__construct()</a>
</dt>
<dd>
Construct a Helpers object
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodboolean_attribute">Helpers::boolean_attribute()</a>
</dt>
<dd>
Convert an attribute to proper XML boolean form
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodcdata_section">Helpers::cdata_section()</a>
</dt>
<dd>
Wrap CDATA begin and end tags around argument
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodcontent_tag">Helpers::content_tag()</a>
</dt>
<dd>
Generate an open/close pair of tags with optional attributes and content between
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodconvert_options">Helpers::convert_options()</a>
</dt>
<dd>
Convert selected attributes to proper XML boolean form
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodobject">Helpers::object()</a>
</dt>
<dd>
Given the name of an ActiveRecord subclass, find an instance
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodtag">Helpers::tag()</a>
</dt>
<dd>
Generate an HTML or XML tag with optional attributes and self-ending
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodtag_options">Helpers::tag_options()</a>
</dt>
<dd>
Convert array of tag attribute names and values to string
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodto_content_tag">Helpers::to_content_tag()</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodvalue">Helpers::value()</a>
</dt>
<dd>
Get value of current attribute in the current ActiveRecord object
</dd>
</dl>
</div>
</td>
</tr></table>
<hr />
<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a34">34</a>]<br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>todo:</b> </td><td>Document this class</td>
</tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<hr />
<a name="class_vars"></a>
<h3>Class Variables</h3>
<div class="tags">
<a name="var$default_date_options"></a>
<p></p>
<h4>$default_date_options = <span class="value">array()</span></h4>
<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a58">58</a>]</p>
Default attributes for dates<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#method__construct">FormHelper::__construct()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>private</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b> </td>
<td>string[]</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$default_field_options"></a>
<p></p>
<h4>$default_field_options = <span class="value">array()</span></h4>
<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a40">40</a>]</p>
Default attributes for input fields<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodto_input_field_tag">FormHelper::to_input_field_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#method__construct">FormHelper::__construct()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>private</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b> </td>
<td>string[]</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$default_radio_options"></a>
<p></p>
<h4>$default_radio_options = <span class="value">array()</span></h4>
<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a46">46</a>]</p>
Default attributes for radio buttons<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#method__construct">FormHelper::__construct()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>private</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b> </td>
<td>string[]</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<a name="var$default_text_area_options"></a>
<p></p>
<h4>$default_text_area_options = <span class="value">array()</span></h4>
<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a52">52</a>]</p>
Default attributes for text areas<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#method__construct">FormHelper::__construct()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>private</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b> </td>
<td>string[]</td>
</tr>
</table>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />
<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
<hr />
<a name="method__construct"></a>
<h3>constructor __construct <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a67">67</a>]</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>FormHelper __construct(
mixed
$object_name, mixed
$attribute_name)</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#var$default_text_area_options">FormHelper::$default_text_area_options</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#var$default_radio_options">FormHelper::$default_radio_options</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#var$default_field_options">FormHelper::$default_field_options</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#var$default_date_options">FormHelper::$default_date_options</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
Overrides <a href="../PHPonTrax/Helpers.html#method__construct">Helpers::__construct()</a> (Construct a Helpers object)<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodadd_default_name_and_id"></a>
<h3>method add_default_name_and_id <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a132">132</a>]</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 add_default_name_and_id(
string[]
$options)</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodto_check_box_tag">FormHelper::to_check_box_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodto_text_area_tag">FormHelper::to_text_area_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodto_boolean_select_tag">FormHelper::to_boolean_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormOptionsHelper.html#methodto_select_tag">FormOptionsHelper::to_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormOptionsHelper.html#methodto_country_select_tag">FormOptionsHelper::to_country_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormOptionsHelper.html#methodto_collection_select_tag">FormOptionsHelper::to_collection_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodto_radio_button_tag">FormHelper::to_radio_button_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodto_input_field_tag">FormHelper::to_input_field_tag()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodtag_id">FormHelper::tag_id()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#var$auto_index">Helpers::$auto_index</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodtag_name">FormHelper::tag_name()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodtag_id_with_index">FormHelper::tag_id_with_index()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodtag_name_with_index">FormHelper::tag_name_with_index()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string[] </td>
<td><b>$options</b> </td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methoderror_wrapping"></a>
<h3>method error_wrapping <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a304">304</a>]</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>string error_wrapping(
string
$html_tag, boolean
$has_error)</code>
</td></tr></table>
</td></tr></table><br />
If this tag has an error, wrap it with a visual indicator<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodto_input_field_tag">FormHelper::to_input_field_tag()</a></td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$html_tag</b> </td>
<td>HTML to be wrapped</td>
</tr>
<tr>
<td class="type">boolean </td>
<td><b>$has_error</b> </td>
<td>true=>error, false=>no error</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodtag_id"></a>
<h3>method tag_id <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a112">112</a>]</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 tag_id(
)</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">FormHelper::add_default_name_and_id()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodtag_id_with_index"></a>
<h3>method tag_id_with_index <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a119">119</a>]</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 tag_id_with_index(
mixed
$index)</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">FormHelper::add_default_name_and_id()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodtag_name"></a>
<h3>method tag_name <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a98">98</a>]</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 tag_name(
)</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">FormHelper::add_default_name_and_id()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodtag_name_with_index"></a>
<h3>method tag_name_with_index <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a105">105</a>]</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 tag_name_with_index(
mixed
$index)</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">FormHelper::add_default_name_and_id()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodto_boolean_select_tag"></a>
<h3>method to_boolean_select_tag <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a278">278</a>]</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 to_boolean_select_tag(
[mixed
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_helper_php.html#functionboolean_select">boolean_select()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/ActiveRecordHelper.html#methodto_tag">ActiveRecordHelper::to_tag()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">FormHelper::add_default_name_and_id()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodto_check_box_tag"></a>
<h3>method to_check_box_tag <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a244">244</a>]</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 to_check_box_tag(
[mixed
$options = array()], [mixed
$checked_value = "1"], [mixed
$unchecked_value = "0"])</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_helper_php.html#functioncheck_box">check_box()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">FormHelper::add_default_name_and_id()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodto_input_field_tag"></a>
<h3>method to_input_field_tag <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a178">178</a>]</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>string to_input_field_tag(
string
$field_type, [string[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate an HTML or XML input tag with optional attributes<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td><samp><input type="</samp><em>type</em> <samp>" maxlength="</samp><em>maxlength</em><samp>" .../>\n</samp></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_helper_php.html#functiontext_field">text_field()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/ActiveRecordHelper.html#methodto_tag">ActiveRecordHelper::to_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_helper_php.html#functionpassword_field">password_field()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_helper_php.html#functionhidden_field">hidden_field()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_helper_php.html#functionfile_field">file_field()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#methodvalue">Helpers::value()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#methodtag">Helpers::tag()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#var$attribute_name">Helpers::$attribute_name</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methoderror_wrapping">FormHelper::error_wrapping()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#var$default_field_options">FormHelper::$default_field_options</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#methodobject">Helpers::object()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">FormHelper::add_default_name_and_id()</a></td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$field_type</b> </td>
<td>Type of input field (<samp>'text'</samp>, <samp>'password'</samp>, <samp>'hidden'</samp> <em>etc.</em>)</td>
</tr>
<tr>
<td class="type">string[] </td>
<td><b>$options</b> </td>
<td>Attributes to apply to the input tag:<br /> <samp>array('attr1' => 'value1'[, 'attr2' => 'value2']...)</samp></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodto_radio_button_tag"></a>
<h3>method to_radio_button_tag <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a204">204</a>]</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 to_radio_button_tag(
mixed
$tag_value, [mixed
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_helper_php.html#functionradio_button">radio_button()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">FormHelper::add_default_name_and_id()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodto_text_area_tag"></a>
<h3>method to_text_area_tag <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_helper.php.html#a223">223</a>]</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 to_text_area_tag(
[mixed
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_helper_php.html#functiontext_area">text_area()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/ActiveRecordHelper.html#methodto_tag">ActiveRecordHelper::to_tag()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">FormHelper::add_default_name_and_id()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
</div><br />
<div class="credit">
<hr />
Documentation generated on Thu, 04 May 2006 19:47:41 -0600 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC4</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>