PHPonTrax
[ class tree: PHPonTrax ] [ index: PHPonTrax ] [ all elements ]

Procedural File: date_helper.php

Source Location: /vendor/trax/action_view/helpers/date_helper.php



Classes:

DateHelper
Utility to help build HTML pulldown menus for date and time


Page Details:

File containing the DateHelper class and support functions

(PHP 5)




Tags:

filesource:  Source Code for this file
copyright:  

(c) 2005 John Peterson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

version:  $Id$








datetime_select [line 1528]

void datetime_select( string $object, string $attribute, [mixed[] $options = array()])

Make a new DateHelper object and call its datetime_select() method



Tags:



Parameters

string   $object   Name of an ActiveRecord subclass
string   $attribute   Name of an attribute of $object
mixed[]   $options   Format options
[ Top ]



date_select [line 1542]

string date_select( string $object, string $attribute, [mixed[] $options = array()])

Make a new DateHelper object and call its date_select() method



Tags:

return:  Generated HTML
see:  ActiveRecordHelper::to_scaffold_tag()
uses:  DateHelper::date_select()


Parameters

string   $object   Name of an ActiveRecord subclass
string   $attribute   Name of an attribute of $object
mixed[]   $options   Output format options
[ Top ]



expiration_date_select [line 1580]

void expiration_date_select( string $object, string $attribute, [mixed[] $options = array()])

Make a new DateHelper object and call its expiration_date_select() method



Tags:



Parameters

string   $object   Name of an ActiveRecord subclass
string   $attribute   Name of an attribute of $object
mixed[]   $options   Format options
[ Top ]



select_date [line 1494]

void select_date( )

Make a new DateHelper object and call its select_date() method



Tags:



[ Top ]



select_datetime [line 1504]

void select_datetime( )

Make a new DateHelper object and call its select_datetime() method



Tags:



[ Top ]



select_day [line 1606]

void select_day( )

Make a new DateHelper object and call its select_day() method



Tags:



[ Top ]



select_expiration_date [line 1514]

void select_expiration_date( )

Make a new DateHelper object and call its select_expiration_date() method



Tags:



[ Top ]



select_month [line 1596]

void select_month( )

Make a new DateHelper object and call its select_month() method

Generate HTML/XML for month selector pull-down menu using only explicit month specification.
NB: An attempt to get value of an attribute will always fail because there is no way to set DateHelper::object_name and DateHelper::attribute_name.




Tags:



[ Top ]



time_select [line 1568]

void time_select( string $object, string $attribute, [mixed[] $options = array()])

Make a new DateHelper object and call its select_time() method



Tags:



Parameters

string   $object   Name of an ActiveRecord subclass
string   $attribute   Name of an attribute of $object
mixed[]   $options   Format options
[ Top ]



year_select [line 1555]

void year_select( string $object, string $attribute, [mixed[] $options = array()])

Make a new DateHelper object and call its year_select() method



Tags:



Parameters

string   $object   Name of an ActiveRecord subclass
string   $attribute   Name of an attribute of $object
mixed[]   $options   Format options
[ Top ]



Documentation generated on Thu, 04 May 2006 19:47:24 -0600 by phpDocumentor 1.3.0RC4