<html>
<head>
<title>Docs For Class DateHelper</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: DateHelper</h1>
Source Location: /vendor/trax/action_view/helpers/date_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>
|
--DateHelper</pre><br />
<div class="description">Utility to help build HTML pulldown menus for date and time</div><br /><br />
</td>
<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
<li><a href="../PHPonTrax/DateHelper.html#var$request_days">$request_days</a></li>
<li><a href="../PHPonTrax/DateHelper.html#var$request_hours">$request_hours</a></li>
<li><a href="../PHPonTrax/DateHelper.html#var$request_minutes">$request_minutes</a></li>
<li><a href="../PHPonTrax/DateHelper.html#var$request_months">$request_months</a></li>
<li><a href="../PHPonTrax/DateHelper.html#var$request_seconds">$request_seconds</a></li>
<li><a href="../PHPonTrax/DateHelper.html#var$request_years">$request_years</a></li>
<li><a href="../PHPonTrax/DateHelper.html#var$selected_years">$selected_years</a></li>
</ul>
</td>
<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
<li><a href="../PHPonTrax/DateHelper.html#method__construct">__construct</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">check_request_for_value</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methoddatetime_select">datetime_select</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methoddate_select">date_select</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodexpiration_date_select">expiration_date_select</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodleading_zero_on_single_digits">leading_zero_on_single_digits</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodselect_date">select_date</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodselect_datetime">select_datetime</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodselect_day">select_day</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodselect_expiration_date">select_expiration_date</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodselect_hour">select_hour</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodselect_html">select_html</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodselect_minute">select_minute</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodselect_month">select_month</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodselect_second">select_second</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodselect_time">select_time</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodselect_year">select_year</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodtime_select">time_select</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">to_datetime_select_tag</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodto_date_select_tag">to_date_select_tag</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodto_expiration_date_select_tag">to_expiration_date_select_tag</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodvalue">value</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodyear_option">year_option</a></li>
<li><a href="../PHPonTrax/DateHelper.html#methodyear_select">year_select</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="../PHPonTraxTest/ExDateHelper.html">ExDateHelper</a></dt>
<dd>Extend the DateHelper class so we can access protected stuff</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_viewhelpersdate_helper.php.html#a34">34</a>]<br />
Utility to help build HTML pulldown menus for date and time<br /><br /></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$request_days"></a>
<p></p>
<h4>$request_days = <span class="value"></span></h4>
<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a67">67</a>]</p>
Day of month values parsed from $_REQUEST<br /><br /><p>Set by <a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">check_request_for_value()</a>. An array whose keys are the names of attributes of the <a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a> subclass named by <a href="../PHPonTrax/Helpers.html#var$object_name">$object_name</a>, and whose values are the strings parsed from $_REQUEST.</p><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/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_day">DateHelper::select_day()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">DateHelper::check_request_for_value()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>public</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$request_hours"></a>
<p></p>
<h4>$request_hours = <span class="value"></span></h4>
<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a78">78</a>]</p>
Hour values parsed from $_REQUEST<br /><br /><p>Set by <a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">check_request_for_value()</a>. An array whose keys are the names of attributes of the <a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a> subclass named by <a href="../PHPonTrax/Helpers.html#var$object_name">$object_name</a>, and whose values are the strings parsed from $_REQUEST.</p><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/DateHelper.html#methodtime_select">DateHelper::time_select()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_hour">DateHelper::select_hour()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">DateHelper::check_request_for_value()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>public</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$request_minutes"></a>
<p></p>
<h4>$request_minutes = <span class="value"></span></h4>
<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a89">89</a>]</p>
Minute values parsed from $_REQUEST<br /><br /><p>Set by <a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">check_request_for_value()</a>. An array whose keys are the names of attributes of the <a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a> subclass named by <a href="../PHPonTrax/Helpers.html#var$object_name">$object_name</a>, and whose values are the strings parsed from $_REQUEST.</p><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/DateHelper.html#methodtime_select">DateHelper::time_select()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_minute">DateHelper::select_minute()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">DateHelper::check_request_for_value()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>public</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$request_months"></a>
<p></p>
<h4>$request_months = <span class="value">array()</span></h4>
<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a56">56</a>]</p>
Month values parsed from $_REQUEST<br /><br /><p>Set by <a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">check_request_for_value()</a>. An array whose keys are the names of attributes of the <a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a> subclass named by <a href="../PHPonTrax/Helpers.html#var$object_name">$object_name</a>, and whose values are the strings parsed from $_REQUEST.</p><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/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_month">DateHelper::select_month()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">DateHelper::check_request_for_value()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>public</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$request_seconds"></a>
<p></p>
<h4>$request_seconds = <span class="value"></span></h4>
<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a100">100</a>]</p>
Second values parsed from $_REQUEST<br /><br /><p>Set by <a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">check_request_for_value()</a>. An array whose keys are the names of attributes of the <a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a> subclass named by <a href="../PHPonTrax/Helpers.html#var$object_name">$object_name</a>, and whose values are the strings parsed from $_REQUEST.</p><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/DateHelper.html#methodtime_select">DateHelper::time_select()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_second">DateHelper::select_second()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">DateHelper::check_request_for_value()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>public</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$request_years"></a>
<p></p>
<h4>$request_years = <span class="value"></span></h4>
<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a45">45</a>]</p>
Year values parsed from $_REQUEST<br /><br /><p>Set by <a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">check_request_for_value()</a>. An array whose keys are the names of attributes of the <a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a> subclass named by <a href="../PHPonTrax/Helpers.html#var$object_name">$object_name</a>, and whose values are the strings parsed from $_REQUEST.</p><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/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_year">DateHelper::select_year()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">DateHelper::check_request_for_value()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>public</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$selected_years"></a>
<p></p>
<h4>$selected_years = <span class="value">array()</span></h4>
<p>[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a105">105</a>]</p>
<strong>FIXME:</strong> Dead code?<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>access:</b> </td><td>public</td>
</tr>
</table>
</div>
<br />
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type:</b> </td>
<td>mixed</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_viewhelpersdate_helper.php.html#a114">114</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>DateHelper __construct(
[string
$object_name = null], [string
$attribute_name = null])</code>
</td></tr></table>
</td></tr></table><br />
Constructor<br /><br /><p>Construct an instance of Helpers with the same arguments</p><br /><br /><br />
Overrides <a href="../PHPonTrax/Helpers.html#method__construct">Helpers::__construct()</a> (Construct a Helpers object)<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$object_name</b> </td>
<td>Name of an ActiveRecord subclass</td>
</tr>
<tr>
<td class="type">string </td>
<td><b>$attribute_name</b> </td>
<td>Name of an attribute of $object</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodcheck_request_for_value"></a>
<h3>method check_request_for_value <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a136">136</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>mixed check_request_for_value(
)</code>
</td></tr></table>
</td></tr></table><br />
Check whether $_REQUEST holds value for this attribute<br /><br /><p>Called with the name of an ActiveRecord subclass in $this->object_name and the name of one of its attributes in $this->attribute_name. Check whether $_REQUEST contains a value for this attribute; if so return it.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>String value if attribute was found in $_REQUEST, otherwise false</td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_minutes">DateHelper::$request_minutes</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_seconds">DateHelper::$request_seconds</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>private</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodvalue">DateHelper::value()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_hours">DateHelper::$request_hours</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_days">DateHelper::$request_days</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#var$object_name">Helpers::$object_name</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_years">DateHelper::$request_years</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_months">DateHelper::$request_months</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#var$attribute_name">Helpers::$attribute_name</a></td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methoddatetime_select"></a>
<h3>method datetime_select <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a310">310</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 datetime_select(
[mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Call to_datetime_select_tag()<br /><br /><p>Alias for <a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">to_datetime_select_tag()</a></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html#functiondatetime_select">datetime_select()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_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">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methoddate_select"></a>
<h3>method date_select <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a322">322</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 date_select(
[mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Call to_date_select_tag()<br /><br /><p>Alias for <a href="../PHPonTrax/DateHelper.html#methodto_date_select_tag">to_date_select_tag()</a></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html#functiondate_select">date_select()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_date_select_tag">DateHelper::to_date_select_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">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodexpiration_date_select"></a>
<h3>method expiration_date_select <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a298">298</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 expiration_date_select(
[mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Call to_expiration_date_select_tag()<br /><br /><p>Alias for <a href="../PHPonTrax/DateHelper.html#methodto_expiration_date_select_tag">to_expiration_date_select_tag()</a></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html#functionexpiration_date_select">expiration_date_select()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_expiration_date_select_tag">DateHelper::to_expiration_date_select_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">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodleading_zero_on_single_digits"></a>
<h3>method leading_zero_on_single_digits <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a247">247</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 leading_zero_on_single_digits(
string
$number)</code>
</td></tr></table>
</td></tr></table><br />
Prefix a leading zero to single digit numbers<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Number with zero prefix if value <= 9</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_day">DateHelper::select_day()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_month">DateHelper::select_month()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_hour">DateHelper::select_hour()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_minute">DateHelper::select_minute()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_second">DateHelper::select_second()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>private</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>$number</b> </td>
<td>A number</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodselect_date"></a>
<h3>method select_date <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a443">443</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 select_date(
[string
$date = null], [mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for year, month and day selector pull-down menus<br /><br /><p>Returns <samp><select>...</select></samp> HTML with options for a number of years, months and days. The first argument, if present, specifies the initially selected date. The second argument controls the format of the generated HTML.</p><p>Examples: <ul><li><samp>select_date();</samp><br /> Generates a group of
three pulldown menus in the order year, month and day with
the current date initially selected.</li><li><samp>select_date('August 4, 1998');</samp><br /> Generates a
group of three pulldown menus in the order year, month and
day with the date August 4, 1998 initially selected.</li></ul></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html#functionselect_date">select_date()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_year">DateHelper::select_year()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_month">DateHelper::select_month()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_day">DateHelper::select_day()</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>$date</b> </td>
<td>Date to display as initially selected if none was found in <a href="../PHPonTrax/DateHelper.html#var$request_years">$request_years</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>], <a href="../PHPonTrax/DateHelper.html#var$request_months">$request_months</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>] and <a href="../PHPonTrax/DateHelper.html#var$request_days">$request_days</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>]. Character string is any US English date representation supported by <a href="http://www.php.net/strtotime">http://www.php.net/strtotime</a>. If omitted, the current date is initially selected.</td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options are all of the options of <a href="../PHPonTrax/DateHelper.html#methodselect_year">select_year()</a>, <a href="../PHPonTrax/DateHelper.html#methodselect_month">select_month()</a> and <a href="../PHPonTrax/DateHelper.html#methodselect_day">select_day()</a>.</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodselect_datetime"></a>
<h3>method select_datetime <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a488">488</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 select_datetime(
[string
$datetime = null], [mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for year-month-day-hour-minute selector pulldowns<br /><br /><p>Returns <samp><select>...</select></samp> HTML with options for a number of years, months, days, hours and minutes. The first argument, if present, specifies the initially selected date. The second argument controls the format of the generated HTML.</p><p>Examples: <ul><li><samp>select_datetime();</samp><br /> Generates a group of
five pulldown menus in the order year, month, day, hour and
minute with the current date and time initially
selected.</li><li><samp>select_datetime('1998-04-08 13:21:17');</samp><br />
Generates a group of five pulldown menus in the order year,
month, day, hour and minute with the date/time
1998 August 4 13:21 initially selected.</li></ul></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_year">DateHelper::select_year()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html#functionselect_datetime">select_datetime()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_month">DateHelper::select_month()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_minute">DateHelper::select_minute()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_hour">DateHelper::select_hour()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_day">DateHelper::select_day()</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>$datetime</b> </td>
<td>Date/time to display as initially selected. Character string is any US English date representation supported by <a href="http://www.php.net/strtotime">http://www.php.net/strtotime</a>. If omitted, the current date/time is initially selected.</td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options are all of the options of <a href="../PHPonTrax/DateHelper.html#methodselect_year">select_year()</a>, <a href="../PHPonTrax/DateHelper.html#methodselect_month">select_month()</a>, <a href="../PHPonTrax/DateHelper.html#methodselect_day">select_day()</a>, <a href="../PHPonTrax/DateHelper.html#methodselect_hour">select_hour()</a> and <a href="../PHPonTrax/DateHelper.html#methodselect_minute">select_minute()</a>.</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodselect_day"></a>
<h3>method select_day <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a838">838</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 select_day(
[string
$datetime = null], [mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for day selector pull-down menu<br /><br /><p>Returns <samp><select>...</select></samp> HTML with an option for each of the thirty-one days. The first argument, if present, specifies the initially selected day. The second argument controls the format of the generated HTML.</p><p>Examples: <ul><li><samp>select_day();</samp><br />
Generates menu '01', '02', ..., '31'. Initially selected
day is the day in
<a href="../PHPonTrax/DateHelper.html#var$request_days">$request_days</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>], or if that
is not defined, the current calendar day.</li><li><samp>select_day(null,array('include_blank' => true));</samp>
<br />Generates menu ' ', '01', '02',..., '31'. Initially
selected day same as above.</li></ul></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_date_select_tag">DateHelper::to_date_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html#functionselect_day">select_day()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_datetime">DateHelper::select_datetime()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_date">DateHelper::select_date()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodleading_zero_on_single_digits">DateHelper::leading_zero_on_single_digits()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_days">DateHelper::$request_days</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_html">DateHelper::select_html()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#var$attribute_name">Helpers::$attribute_name</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>$datetime</b> </td>
<td>Initially selected day as two-digit number. If a value for this field is specified in <a href="../PHPonTrax/DateHelper.html#var$request_days">$request_days</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>], then that day is initially selected regardless of the value of this argument. Otherwise, if the first argument is present and is a character string of two decimal digits with a value in the range '01'..'31' then that day is initially selected. Otherwise, if the first argument is a date in some US English date format, the day of the month from that date is initially selected. If this argument is absent or invalid, the current calendar day is initially selected.</td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options: <ul><li><samp>'include_blank' => true</samp> Show a blank
as the first option.</li><li><samp>'field_name' => '</samp><em>somestring</em><samp>'</samp>
Generate output<br />
<samp><select name="</samp><em>somestring</em><samp>">...</select></samp> .
<br />If absent, generate output<br />
<samp><select name="day">...</select></samp>.</li><li><samp>'discard_type' => ???</samp> FIXME</li><li><samp>'prefix' => ???</samp> FIXME</li></ul></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodselect_expiration_date"></a>
<h3>method select_expiration_date <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a366">366</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 select_expiration_date(
[string
$date = null], [mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for expiration month and year selector pulldowns<br /><br /><p>Generates HTML for a month and year pulldown. The year pulldown has a range of years from the initially selected year to seven years after.</p><p>When called, $_REQUEST[] may have initial date values in fields with default names of 'expiration_month' and 'expiration_year'. If these values exist they override the first parameter.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html#functionselect_expiration_date">select_expiration_date()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_year">DateHelper::select_year()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_month">DateHelper::select_month()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_html">DateHelper::select_html()</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>$date</b> </td>
<td>Date to display as initially selected if none was found in $_REQUEST[]. If omitted, default value is the current calendar date.<strong>FIXME:</strong> this doesn't work</td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options: <ul><li><samp>'field_separator' => '</samp><em>somestring</em><samp>'</samp><br />
String to insert between the month and year selectors. If
none is specified, default value is <samp>' / '</samp></li><li><samp>'month_before_year' => 'false'<br />
Output year selector first, then month selector.
If option not specified, the month selector will be output
first.</li>
<li><samp>'month_name' =>'</samp><em>somestring</em><samp>'</samp><br />
Set the name of the generated month selector to
<em>somestring</em>. If option not specified, default name is
<samp>expiration_month</samp></li><li><samp>'year_name' => '</samp><em>somestring</em><samp>'</samp><br />
Set the name of the generated year selector to
<em>somestring</em>. If option not specified, default name is
<samp>expiration_year</samp></li></ul></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodselect_hour"></a>
<h3>method select_hour <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a744">744</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 select_hour(
[string
$datetime = null], [mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for hour selector pull-down menu<br /><br /><p>Returns <samp><select>...</select></samp> HTML with an option for each of the twenty-four hours. The first argument, if present, specifies the initially selected hour. The second argument controls the format of the generated HTML.</p><p>Examples: <ul><li><samp>select_hour();</samp><br />
Generates menu '00', '01', ..., '23'. Initially selected
hour is the hour in
<a href="../PHPonTrax/DateHelper.html#var$request_hours">$request_hours</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>], or if that
is not defined, the current hour.</li><li><samp>select_hour(null,array('include_blank' => true));</samp>
<br />Generates menu ' ', '00', '01',..., '23'. Initially
selected hour same as above.</li></ul></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_time">DateHelper::select_time()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_datetime">DateHelper::select_datetime()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_html">DateHelper::select_html()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodleading_zero_on_single_digits">DateHelper::leading_zero_on_single_digits()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_hours">DateHelper::$request_hours</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#var$attribute_name">Helpers::$attribute_name</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>$datetime</b> </td>
<td>Initially selected hour as two-digit number. If a value for this field is specified in <a href="../PHPonTrax/DateHelper.html#var$request_hours">$request_hours</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>], then that hour is initially selected regardless of the value of this argument. Otherwise, if the first argument is present and is a character string of two decimal digits with a value in the range '00'..'23' then that hour is initially selected. If this argument is absent or invalid, the current hour is initially selected.</td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options: <ul><li><samp>'include_blank' => true</samp> Show a blank
as the first option.</li><li><samp>'field_name' => '</samp><em>somestring</em><samp>'</samp>
Generate output<br />
<samp><select name="</samp><em>somestring</em><samp>">...</select></samp> .
<br />If absent, generate output<br />
<samp><select name="hour">...</select></samp>.</li><li><samp>'discard_type' => ???</samp> FIXME</li><li><samp>'prefix' => ???</samp> FIXME</li></ul></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodselect_html"></a>
<h3>method select_html <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a226">226</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 select_html(
string
$type, string
$options, [string
$prefix = null], [boolean
$include_blank = false], [boolean
$discard_type = false])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for select to enclose option list<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_day">DateHelper::select_day()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_month">DateHelper::select_month()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_year">DateHelper::select_year()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_hour">DateHelper::select_hour()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_minute">DateHelper::select_minute()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_expiration_date">DateHelper::select_expiration_date()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_second">DateHelper::select_second()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>private</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>$type</b> </td>
<td>Name attribute for <samp><select name=... ></samp></td>
</tr>
<tr>
<td class="type">string </td>
<td><b>$options</b> </td>
<td></td>
</tr>
<tr>
<td class="type">string </td>
<td><b>$prefix</b> </td>
<td>Prefix of name attribute, to be enclosed in square brackets</td>
</tr>
<tr>
<td class="type">boolean </td>
<td><b>$include_blank</b> </td>
<td>Whether to include a blank in the list of select options</td>
</tr>
<tr>
<td class="type">boolean </td>
<td><b>$discard_type</b> </td>
<td>Whether to discard the type</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodselect_minute"></a>
<h3>method select_minute <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a668">668</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 select_minute(
[string
$datetime = null], [mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for minute selector pull-down menu<br /><br /><p>Returns <samp><select>...</select></samp> HTML with an option for each of the sixty minutes. The first argument, if present, specifies the initially selected minute. The second argument controls the format of the generated HTML.</p><p>Examples: <ul><li><samp>select_minute();</samp><br />
Generates menu '00', '01', ..., '59'. Initially selected
minute is the minute in
<a href="../PHPonTrax/DateHelper.html#var$request_minutes">$request_minutes</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>], or if that
is not defined, the current minute.</li><li><samp>select_minute(null,array('include_blank' => true));</samp>
<br />Generates menu ' ', '00', '01',..., '59'. Initially
selected minute same as above.</li></ul></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_time">DateHelper::select_time()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_datetime">DateHelper::select_datetime()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_html">DateHelper::select_html()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodleading_zero_on_single_digits">DateHelper::leading_zero_on_single_digits()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_minutes">DateHelper::$request_minutes</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#var$attribute_name">Helpers::$attribute_name</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>$datetime</b> </td>
<td>Initially selected minute as two-digit number. If a value for this field is specified in <a href="../PHPonTrax/DateHelper.html#var$request_minutes">$request_minutes</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>], then that minute is initially selected regardless of the value of this argument. Otherwise, if the first argument is present and is a character string of two decimal digits with a value in the range '00'..'59' then that minute is initially selected. If this argument is absent or invalid, the current minute is initially selected.</td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options: <ul><li><samp>'include_blank' => true</samp> Show a blank
as the first option.</li><li><samp>'field_name' => '</samp><em>somestring</em><samp>'</samp>
Generate output<br />
<samp><select name="</samp><em>somestring</em><samp>">...</select></samp> .
<br />If absent, generate output<br />
<samp><select name="minute">...</select></samp>.</li><li><samp>'discard_type' => ???</samp> FIXME</li><li><samp>'prefix' => ???</samp> FIXME</li></ul></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodselect_month"></a>
<h3>method select_month <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a935">935</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 select_month(
[string
$date = null], [mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for month selector pull-down menu<br /><br /><p>Returns <samp><select>...</select></samp> HTML with an option for each of the twelve months. The first argument, if present, specifies the initially selected month. The second argument controls the format of the generated HTML.</p><p>Examples: <ul><li><samp>select_month();</samp> Generates menu January,
February etc.</li><li><samp>select_month(null,array('use_month_number' => true));</samp>
Generates menu 1, 2 etc.</li><li><samp>select_month(null,array('add_month_number' => true));</samp>
Generates menu 1 - January, 2 - February etc.</li></ul></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_datetime">DateHelper::select_datetime()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_date_select_tag">DateHelper::to_date_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html#functionselect_month">select_month()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_date">DateHelper::select_date()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_expiration_date">DateHelper::select_expiration_date()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodleading_zero_on_single_digits">DateHelper::leading_zero_on_single_digits()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_months">DateHelper::$request_months</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_html">DateHelper::select_html()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#var$attribute_name">Helpers::$attribute_name</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>$date</b> </td>
<td>Initially selected month as two-digit number. If a value for this field is specified in <a href="../PHPonTrax/DateHelper.html#var$request_months">$request_months</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>], then that month is initially selected regardless of the value of this argument. Otherwise, if the first argument is present and is a character string of two decimal digits with a value in the range '01'..'12' then that month is initially selected. Otherwise, if the first argument is a date in some US English date format, the month from that date is initially selected. If this argument is absent or invalid, the current calendar month is initially selected.</td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options: <ul><li><samp>'include_blank' => true</samp> Show a blank
as the first option.</li><li><samp>'use_month_number' => true</samp> Show months in
the menu by their month number (1, 2 ...). Default is to
show English month name (January, February ...).</li><li><samp>'add_month_number' => true</samp> Show both month
number and month name in the menu.</li><li><samp>'field_name' => '</samp><em>somestring</em><samp>'</samp>
Generate output<br />
<samp><select name="</samp><em>somestring</em><samp>">...</select></samp> .
<br />If absent, generate output<br />
<samp><select name="month">...</select></samp>.</li><li><samp>'discard_type' => ???</samp> FIXME</li><li><samp>'prefix' => ???</samp> FIXME</li></ul> In all cases the value sent to the server is the two digit month number in the range '01'..'12'.</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodselect_second"></a>
<h3>method select_second <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a590">590</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 select_second(
[string
$datetime = null], [mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for second selector pull-down menu<br /><br /><p>Returns <samp><select>...</select></samp> HTML with an option for each of the sixty seconds. The first argument, if present, specifies the initially selected second. The second argument controls the format of the generated HTML.</p><p>Examples: <ul><li><samp>select_second();</samp><br />
Generates menu '00', '01', ..., '59'. Initially selected
second is the second in
<a href="../PHPonTrax/DateHelper.html#var$request_seconds">$request_seconds</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>], or if that
is not defined, the current second.</li><li><samp>select_second(null,array('include_blank' => true));</samp>
<br />Generates menu ' ', '00', '01',..., '59'. Initially
selected second same as above.</li></ul></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_time">DateHelper::select_time()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_html">DateHelper::select_html()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_seconds">DateHelper::$request_seconds</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodleading_zero_on_single_digits">DateHelper::leading_zero_on_single_digits()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#var$attribute_name">Helpers::$attribute_name</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>$datetime</b> </td>
<td>Initially selected second as two-digit number. If a value for this field is specified in <a href="../PHPonTrax/DateHelper.html#var$request_seconds">$request_seconds</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>], then that second is initially selected regardless of the value of this argument. Otherwise, if the first argument is present and is a character string of two decimal digits with a value in the range '00'..'59' then that second is initially selected. If this argument is absent or invalid, the current second is initially selected.</td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options: <ul><li><samp>'include_blank' => true</samp> Show a blank
as the first option.</li><li><samp>'field_name' => '</samp><em>somestring</em><samp>'</samp>
Generate output<br />
<samp><select name="</samp><em>somestring</em><samp>">...</select></samp> .
<br />If absent, generate output<br />
<samp><select name="second">...</select></samp>.</li><li><samp>'discard_type' => ???</samp> FIXME</li><li><samp>'prefix' => ???</samp> FIXME</li></ul></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodselect_time"></a>
<h3>method select_time <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a533">533</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 select_time(
[string
$datetime = null], [mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for hour, minute and second selector pull-down menus<br /><br /><p>Returns <samp><select>...</select></samp> HTML with options for a number of hours, minutes and seconds. The first argument, if present, specifies the initially selected time. The second argument controls the format of the generated HTML.</p><p>Examples: <ul><li><samp>select_time();</samp><br /> Generates two pulldown
menus in the order hour : minute with
the current time initially selected.</li><li><samp>select_time('August 4, 1998 8:12');</samp><br /> Generates
two pulldown menus in the order hour : minute with the
time 8:12 initially selected.</li></ul></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html#functiontime_select">time_select()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodtime_select">DateHelper::time_select()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_second">DateHelper::select_second()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_minute">DateHelper::select_minute()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_hour">DateHelper::select_hour()</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>$datetime</b> </td>
<td>Time to display as initially selected if none was found in <a href="../PHPonTrax/DateHelper.html#var$request_hours">$request_hours</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>], <a href="../PHPonTrax/DateHelper.html#var$request_minutes">$request_minutes</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>] and <a href="../PHPonTrax/DateHelper.html#var$request_seconds">$request_seconds</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>]. Character string is any US English date/time representation supported by <a href="http://www.php.net/strtotime">http://www.php.net/strtotime</a>. If omitted, the current time is initially selected.</td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options are all of the options of <a href="../PHPonTrax/DateHelper.html#methodselect_hour">select_hour()</a>, <a href="../PHPonTrax/DateHelper.html#methodselect_minute">select_minute()</a> and <a href="../PHPonTrax/DateHelper.html#methodselect_second">select_second()</a>.</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodselect_year"></a>
<h3>method select_year <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a1049">1049</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 select_year(
[string
$date = null], [mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for year selector pull-down menu<br /><br /><p>Returns <samp><select>...</select></samp> HTML with options for a number of years. The first argument, if present, specifies the initially selected year. The second argument controls the format of the generated HTML.</p><p>Examples: <ul><li><samp>select_year();</samp><br /> Generates a pulldown menu with
with a range of +/- five years. If a year is specified in
<a href="../PHPonTrax/DateHelper.html#var$request_years">$request_years</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>] then it is
selected initially, otherwise the current calendar year is
selected.</li><li><samp>select_year(null,array('start_year' => '1900));</samp><br />
Generates year options from 1900 to five years after the
initially selected year, which is chosen as in the previous
example.</li><li><samp>select_year(null,array('start_year'=>date('Y')+5, 'end_year'=>date('Y')-5);</samp><br />
Generates year options starting five years after the current year,
ending five years before the current year.</li></ul></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_datetime">DateHelper::select_datetime()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_date_select_tag">DateHelper::to_date_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodyear_select">DateHelper::year_select()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_date">DateHelper::select_date()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_expiration_date">DateHelper::select_expiration_date()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_years">DateHelper::$request_years</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_html">DateHelper::select_html()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodyear_option">DateHelper::year_option()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#var$attribute_name">Helpers::$attribute_name</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>$date</b> </td>
<td>Year to display as initially selected if none was found in <a href="../PHPonTrax/DateHelper.html#var$request_years">$request_years</a>[<a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a>]. Character string is either exactly four decimal digits or some English date representation. If omitted, the current year is initially selected.</td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options: <ul><li><samp>'start_year'=>'</samp><em>startyear</em><samp>'</samp>
If specified, <em>startyear</em> will be the first year in
the output menu, otherwise the first year in the menu will
be five years before the initially selected year.</li><li><samp>'end_year'=>'</samp><em>endyear</em><samp>'</samp>
If specified, <em>endyear</em> will be the last year in
the output menu, otherwise the last year in the menu will
be five years after the initially selected year.</li><li><samp>'field_name' => '</samp><em>somestring</em><samp>'</samp>
Generate output<br />
<samp><select name="</samp><em>somestring</em><samp>">...</select></samp> .
<br />If absent, generate output<br />
<samp><select name="year">...</select></samp>.</li><li><samp>'discard_type' => ???</samp> FIXME</li><li><samp>'prefix' => ???</samp> FIXME</li></ul> To generate a list with most recent year first, define that year as the start year and the oldest year as the end year.</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodtime_select"></a>
<h3>method time_select <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a1421">1421</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 time_select(
[mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for time pulldown<br /><br /><p>When called, <a href="../PHPonTrax/Helpers.html#var$object_name">$object_name</a> describes the <a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a> subclass and <a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a> describes the attribute whose value will be set by the generated pull-down menu. The value to be displayed initially is from $_REQUEST if present, otherwise from the database.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodvalue">DateHelper::value()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_time">DateHelper::select_time()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_seconds">DateHelper::$request_seconds</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_minutes">DateHelper::$request_minutes</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_hours">DateHelper::$request_hours</a></td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodto_datetime_select_tag"></a>
<h3>method to_datetime_select_tag <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a1319">1319</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_datetime_select_tag(
[string
$options = array()], mixed[]
1)</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for date/time pulldown menus<br /><br /><p>Returns <samp><select>...</select></samp> HTML with options for a number of years, months, days, hours and minutes. The first argument, if present, specifies the initially selected date. The second argument controls the format of the generated HTML.</p><p>Examples: <ul><li><samp>to_datetime_select_tag();</samp><br /> Generates a
group of five pulldown menus in the order year, month, day,
hour and minute with the current date and time initially
selected.</li><li></li><li><samp>to_datetime_select_tag(array('discard_second' => false);</samp><br />
Generates a group of six pulldown menus in the order year,
month, day, hour, minute and second with the current date
and time initially selected.</li><li><samp>to_datetime_select_tag('1998-04-08 13:21:17');</samp><br />
Generates a group of five pulldown menus in the order year,
month, day, hour and minute with the date/time
1998 August 4 13:21 initially selected.</li></ul></p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_second">DateHelper::select_second()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_month">DateHelper::select_month()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_year">DateHelper::select_year()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodvalue">DateHelper::value()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/ActiveRecordHelper.html#methodto_datetime_select_tag_without_error_wrapping">ActiveRecordHelper::to_datetime_select_tag_without_error_wrapping()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methoddatetime_select">DateHelper::datetime_select()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_minute">DateHelper::select_minute()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_hour">DateHelper::select_hour()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_minutes">DateHelper::$request_minutes</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_hours">DateHelper::$request_hours</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_months">DateHelper::$request_months</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_seconds">DateHelper::$request_seconds</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_day">DateHelper::select_day()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_years">DateHelper::$request_years</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#var$request_days">DateHelper::$request_days</a></td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">mixed[] </td>
<td><b>1</b> </td>
<td>Output format options: <ul><li><samp>'discard_month' => true</samp><br />
Output selector for only the year.</li><li><samp>'discard_day' => true</samp><br />
Output selector for only the year and month.</li><li><samp>'discard_hour' => true</samp><br />
Output selector for only the year, month and day.</li><li><samp>'discard_minute' => true</samp><br />
Output selector for only the year, month, day and
hour.</li><li><samp>'discard_second' => false</samp><br />
Output selector for year, month, day, hour, minute and
second.</li></ul></td>
</tr>
<tr>
<td class="type">string </td>
<td><b>$options</b> </td>
<td>Date/time to display as initially selected. Character string is any US English date representation supported by <a href="http://www.php.net/strtotime">http://www.php.net/strtotime</a>. If omitted, the current date/time is initially selected.</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodto_date_select_tag"></a>
<h3>method to_date_select_tag <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a1169">1169</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_date_select_tag(
[mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for day/month/year selector pull-down menus<br /><br /><p>When called, <a href="../PHPonTrax/Helpers.html#var$object_name">$object_name</a> describes the <a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a> subclass and <a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a> describes the attribute whose value will be set by the generated pull-down menus. The value to be displayed initially in each menu is from $_REQUEST if present, otherwise from the database.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_expiration_date_select_tag">DateHelper::to_expiration_date_select_tag()</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/ActiveRecordHelper.html#methodto_date_select_tag_without_error_wrapping">ActiveRecordHelper::to_date_select_tag_without_error_wrapping()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methoddate_select">DateHelper::date_select()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodvalue">DateHelper::value()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_month">DateHelper::select_month()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_year">DateHelper::select_year()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_day">DateHelper::select_day()</a></td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options <ul><li><samp>'discard_day' => true</samp> Don't show a day of
month menu. If absent or false, day menu will be output.</li><li><samp>'discard_month' => true</samp> Don't show a month
or day of the month menu. If absent or false, month menu
will be output.</li><li><samp>'discard_type' => true</samp> (true is the
default) Don't show name of individual field, for example
<samp>[year]</samp>, as part of the <samp>name</samp> value
of the generated <samp><select ...></samp>. The
information to identify the field is available as a suffix
<samp>(</samp><em>n</em><samp>i)</samp> of the attribute
name.</li><li><samp>'discard_year' => true</samp> Don't show a year
menu. If absent or false, year menu will be output.</li><li><samp>'field_separator' => '</samp><em>string</em><samp>'</samp>
String to insert between the submenus in the output. If
absent, one blank will be inserted.</li><li><samp>'include_blank' => true</samp> Initially show a blank
selection in the menu. If absent or false, the current
date will be shown as the initial selection. If a value
was parsed from $_REQUEST, it will be used for the initial
selection regardless of this option.</li><li><samp>'month_before_year' => true</samp> Equivalent to
<samp>'order' => array('month', 'day', 'year')</samp></li><li><samp>'order' => array(</samp><em>elements</em><samp>)</samp>
A list of the elements <samp>'month', 'day'</samp> and
<samp>'year'</samp> in the order in which the menus should
appear in the output. Default is
<samp>'year', 'month', 'day'</samp></li><li><strong>Also:</strong> options provided by <a href="../PHPonTrax/DateHelper.html#methodselect_month">select_month()</a>,
<a href="../PHPonTrax/DateHelper.html#methodselect_day">select_day()</a> and <a href="../PHPonTrax/DateHelper.html#methodselect_year">select_year()</a></li></ul></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodto_expiration_date_select_tag"></a>
<h3>method to_expiration_date_select_tag <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a1394">1394</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_expiration_date_select_tag(
[mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for expiration month and year pulldown.<br /><br /><p>Calls <a href="../PHPonTrax/DateHelper.html#methodto_date_select_tag">to_date_select_tag()</a> with options for month with number, followed by year starting this year and going seven years in the future.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodexpiration_date_select">DateHelper::expiration_date_select()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_date_select_tag">DateHelper::to_date_select_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">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodvalue"></a>
<h3>method value <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a272">272</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>mixed value(
)</code>
</td></tr></table>
</td></tr></table><br />
Get attribute value from $_REQUEST if there, otherwise from database<br /><br /><p>When called, <a href="../PHPonTrax/Helpers.html#var$object_name">$object_name</a> describes the <a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a> subclass and <a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a> describes the attribute whose value is desired.</p><p>An attempt is made to find the value in $_REQUEST, where it would be found after the browser POSTed a form. If no value is found there, then the database is accessed for the value. When accessing the database, the assumption is made that the <a href="../PHPonTrax/ActionController.html">ActionController</a> object refers to a single <a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a> subclass object which correctly identifies the table and record containing the attribute value.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Attribute value if found</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_datetime_select_tag">DateHelper::to_datetime_select_tag()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodtime_select">DateHelper::time_select()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodyear_select">DateHelper::year_select()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodto_date_select_tag">DateHelper::to_date_select_tag()</a></td>
</tr>
<tr>
<td><b>access:</b> </td><td>protected</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/Helpers.html#methodobject">Helpers::object()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/ActiveRecord.html#methodsend">ActiveRecord::send()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodcheck_request_for_value">DateHelper::check_request_for_value()</a></td>
</tr>
</table>
</div>
<br /><br />
<p>Overridden in child classes as:<br />
<dl>
<dt><a href="../PHPonTraxTest/ExDateHelper.html#methodvalue">ExDateHelper::value()</a></dt>
<dd></dd>
</dl>
</p>
Overrides <a href="../PHPonTrax/Helpers.html#methodvalue">Helpers::value()</a> (Get value of current attribute in the current ActiveRecord object)<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodyear_option"></a>
<h3>method year_option <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a1113">1113</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 year_option(
integer
$year, integer
$date_year)</code>
</td></tr></table>
</td></tr></table><br />
Return one HTML/XML year option, selected if so specified<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>HTML for one year option</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_year">DateHelper::select_year()</a></td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">integer </td>
<td><b>$year</b> </td>
<td>Year to put in the option</td>
</tr>
<tr>
<td class="type">integer </td>
<td><b>$date_year</b> </td>
<td>Year that should be selected</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodyear_select"></a>
<h3>method year_select <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersdate_helper.php.html#a1470">1470</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 year_select(
[mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate HTML/XML for year pulldown<br /><br /><p>When called, <a href="../PHPonTrax/Helpers.html#var$object_name">$object_name</a> describes the <a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a> subclass and <a href="../PHPonTrax/Helpers.html#var$attribute_name">$attribute_name</a> describes the attribute whose value will be set by the generated pull-down menu. The value to be displayed initially is from $_REQUEST if present, otherwise from the database.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b> </td><td>Generated HTML</td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html#functionyear_select">year_select()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodvalue">DateHelper::value()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/DateHelper.html#methodselect_year">DateHelper::select_year()</a></td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td>Output format options</td>
</tr>
</table>
</div><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:26 -0600 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC4</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>