Location: PHPKode > projects > PHP on Trax > johnpipi-trax-f599562/trax/doc/PHPonTrax/FormOptionsHelper.html
<html>
<head>
<title>Docs For Class FormOptionsHelper</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: FormOptionsHelper</h1>
Source Location: /vendor/trax/action_view/helpers/form_options_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>
   |
   --<a href="../PHPonTrax/FormHelper.html">FormHelper</a>
      |
      --FormOptionsHelper</pre><br />
<div class="description"></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="../PHPonTrax/FormOptionsHelper.html#methodadd_options">add_options</a></li>
    <li><a href="../PHPonTrax/FormOptionsHelper.html#methodcountry_options_for_select">country_options_for_select</a></li>
    <li><a href="../PHPonTrax/FormOptionsHelper.html#methodoptions_for_select">options_for_select</a></li>
    <li><a href="../PHPonTrax/FormOptionsHelper.html#methodoptions_from_collection_for_select">options_from_collection_for_select</a></li>
    <li><a href="../PHPonTrax/FormOptionsHelper.html#methodto_collection_select_tag">to_collection_select_tag</a></li>
    <li><a href="../PHPonTrax/FormOptionsHelper.html#methodto_country_select_tag">to_country_select_tag</a></li>
    <li><a href="../PHPonTrax/FormOptionsHelper.html#methodto_select_tag">to_select_tag</a></li>
  </ul>
</td>

</tr></table>
<hr />

<table width="100%" border="0"><tr>




<td valign="top">
<h3>Inherited Variables</h3>
<div class="tags">
<h4>Class: <a href="../PHPonTrax/FormHelper.html">FormHelper</a></h4>
<dl>
<dt>
  <a href="../PHPonTrax/FormHelper.html#var$default_date_options">FormHelper::$default_date_options</a>
  </dt>
<dd>
   
</dd>
<dt>
  <a href="../PHPonTrax/FormHelper.html#var$default_field_options">FormHelper::$default_field_options</a>
  </dt>
<dd>
   
</dd>
<dt>
  <a href="../PHPonTrax/FormHelper.html#var$default_radio_options">FormHelper::$default_radio_options</a>
  </dt>
<dd>
   
</dd>
<dt>
  <a href="../PHPonTrax/FormHelper.html#var$default_text_area_options">FormHelper::$default_text_area_options</a>
  </dt>
<dd>
   
</dd>
</dl>
</div>
<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/FormHelper.html">FormHelper</a></h4>
<dl>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#method__construct">FormHelper::__construct()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">FormHelper::add_default_name_and_id()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#methoderror_wrapping">FormHelper::error_wrapping()</a>
  </dt>
  <dd>
    If this tag has an error, wrap it with a visual indicator
  </dd>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#methodtag_id">FormHelper::tag_id()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#methodtag_id_with_index">FormHelper::tag_id_with_index()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#methodtag_name">FormHelper::tag_name()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#methodtag_name_with_index">FormHelper::tag_name_with_index()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#methodto_boolean_select_tag">FormHelper::to_boolean_select_tag()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#methodto_check_box_tag">FormHelper::to_check_box_tag()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#methodto_input_field_tag">FormHelper::to_input_field_tag()</a>
  </dt>
  <dd>
    Generate an HTML or XML input tag with optional attributes
  </dd>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#methodto_radio_button_tag">FormHelper::to_radio_button_tag()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PHPonTrax/FormHelper.html#methodto_text_area_tag">FormHelper::to_text_area_tag()</a>
  </dt>
  <dd>
    
  </dd>
  </dl>
<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_options_helper.php.html#a85">85</a>]<br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</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_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
  <hr />
	<a name="methodadd_options"></a>
	<h3>method add_options <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_options_helper.php.html#a268">268</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_options(
string
$option_tags, string[]
$options, [string
$value = null])</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>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/FormOptionsHelper.html#methodto_collection_select_tag">FormOptionsHelper::to_collection_select_tag()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/FormOptionsHelper.html#methodto_country_select_tag">FormOptionsHelper::to_country_select_tag()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/FormOptionsHelper.html#methodto_select_tag">FormOptionsHelper::to_select_tag()</a></td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>private</td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td>Document this method</td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Helpers.html#methodvalue">Helpers::value()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td><strong>FIXME:</strong> Why the third argument?  It's overwritten!</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>$option_tags</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type">string[]&nbsp;&nbsp;</td>
        <td><b>$options</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$value</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcountry_options_for_select"></a>
	<h3>method country_options_for_select <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_options_helper.php.html#a175">175</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 country_options_for_select(
[integer
$selected = null], [mixed
$priority_countries = array()])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Generate HTML options for world countries<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</td><td><strong>FIXME:</strong> Second argument doesn't work</td>
  </tr>
</table>
</div>
<br /><br />


        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">integer&nbsp;&nbsp;</td>
        <td><b>$selected</b>&nbsp;&nbsp;</td>
        <td>Array key of country initially selected   NOTE: Only the option tags are returned, you have to wrap this   call in a regular HTML select tag.</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodoptions_for_select"></a>
	<h3>method options_for_select <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_options_helper.php.html#a108">108</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 options_for_select(
string[]
$choices, [integer
$selected = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Generate HTML option tags from a list of choices<br /><br /><p>Accepts an array of possible choices and returns a string of   option tags.  The value of each array element becomes the   visible text of an option, and the key of the element becomes   the value returned to the server.  For example:<br />   <samp>options_for_select(array('foo','bar'));</samp><br />   will return:<br />   <samp>&lt;option value=&quot;0&quot;&gt;foo&lt;/option&gt;\n</samp><br />   <samp>&lt;option value=&quot;1&quot;&gt;bar&lt;/option&gt;</samp><br /></p><p>The optional second argument specifies the array key of an   option to be initially selected.</p><p>NOTE: Only the option tags are returned, you have to wrap this   call in a regular HTML select tag.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_options_helper_php.html#functionoptions_for_select">options_for_select()</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[]&nbsp;&nbsp;</td>
        <td><b>$choices</b>&nbsp;&nbsp;</td>
        <td>Choices</td>
      </tr>
          <tr>
        <td class="type">integer&nbsp;&nbsp;</td>
        <td><b>$selected</b>&nbsp;&nbsp;</td>
        <td>Selected choice</td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodoptions_from_collection_for_select"></a>
	<h3>method options_from_collection_for_select <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_options_helper.php.html#a152">152</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 options_from_collection_for_select(
mixed
$collection, mixed
$attribute_value, mixed
$attribute_text, [mixed
$selected_value = null])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns a string of option tags that have been compiled by<br /><br /><p>iterating over the +collection+ and assigning the result of a   call to the +value_method+ as the option value and the   +text_method+ as the option text. If +selected_value+ is   specified, the element returning a match on +value_method+ will   get the selected option tag.</p><p>Example (call, result). Imagine a loop iterating over each   +person+ in &lt;tt&gt;@project.people&lt;/tt&gt; to generate an input tag:    options_from_collection_for_select(@project.people, &quot;id&quot;, &quot;name&quot;)      &lt;option value=&quot;#{person.id}&quot;&gt;#{person.name}&lt;/option&gt;</p><p>NOTE: Only the option tags are returned, you have to wrap this call   in a regular HTML select tag.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/FormOptionsHelper.html#methodto_collection_select_tag">FormOptionsHelper::to_collection_select_tag()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</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_collection_select_tag"></a>
	<h3>method to_collection_select_tag <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_options_helper.php.html#a222">222</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_collection_select_tag(
mixed
$collection, mixed
$attribute_value, mixed
$attribute_text, mixed
$options, mixed
$html_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>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Helpers.html#methodvalue">Helpers::value()</a></td>
  </tr>
  <tr>
    <td><b>usedby:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_options_helper_php.html#functioncollection_select">collection_select()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/FormOptionsHelper.html#methodoptions_from_collection_for_select">FormOptionsHelper::options_from_collection_for_select()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Helpers.html#methodcontent_tag">Helpers::content_tag()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/FormHelper.html#methodadd_default_name_and_id">FormHelper::add_default_name_and_id()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/FormOptionsHelper.html#methodadd_options">FormOptionsHelper::add_options()</a></td>
  </tr>
  <tr>
    <td><b>todo:</b>&nbsp;&nbsp;</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_country_select_tag"></a>
	<h3>method to_country_select_tag <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_options_helper.php.html#a246">246</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_country_select_tag(
mixed
$priority_countries, mixed
$options, mixed
$html_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>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Helpers.html#methodvalue">Helpers::value()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Helpers.html#methodcontent_tag">Helpers::content_tag()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/FormOptionsHelper.html#methodadd_options">FormOptionsHelper::add_options()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</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>&nbsp;&nbsp;</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_select_tag"></a>
	<h3>method to_select_tag <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersform_options_helper.php.html#a202">202</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_select_tag(
mixed
$choices, mixed
$options, mixed
$html_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>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Helpers.html#methodvalue">Helpers::value()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/Helpers.html#methodcontent_tag">Helpers::content_tag()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</td><td><a href="../PHPonTrax/FormOptionsHelper.html#methodadd_options">FormOptionsHelper::add_options()</a></td>
  </tr>
  <tr>
    <td><b>uses:</b>&nbsp;&nbsp;</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>&nbsp;&nbsp;</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:42 -0600 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC4</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>
Return current item: PHP on Trax