Show
Ignore:
Timestamp:
02/28/06 12:49:52 (6 years ago)
Author:
haas
Message:

more documentation

Location:
trunk/trax/vendor/trax/action_view/helpers
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/action_view/helpers/date_helper.php

    r152 r155  
    3131/** 
    3232 * 
    33  *  @package PHPonTrax 
     33 *  @todo Document this class 
    3434 */ 
    3535class DateHelper extends Helpers { 
    3636    public $selected_years = array(); 
    3737    /** 
    38      * 
     38     *  @todo Document this method 
    3939     */ 
    4040    function __construct($object_name = null, $attribute_name = null) { 
     
    4242    } 
    4343     
     44    /** 
     45     *  @todo Document this method 
     46     */ 
    4447    private function check_request_for_value() { 
    4548        if(!$value = $_REQUEST[$this->object_name][$this->attribute_name]) { 
     
    6972    /** 
    7073     * 
     74     *  @todo Document this method 
    7175     */ 
    7276    private function select_html($type, $options, $prefix = null, $include_blank = false, $discard_type = false) { 
     
    8690    /** 
    8791     * 
     92     *  @todo Document this method 
    8893     */ 
    8994    private function leading_zero_on_single_digits($number) { 
     
    9398    /** 
    9499     * 
     100     *  @todo Document this method 
    95101     */ 
    96102    protected function value() { 
     
    104110    } 
    105111     
     112    /** 
     113     *  @todo Document this method 
     114     */ 
    106115    function expiration_date_select($options = array()) { 
    107116        return $this->to_expiration_date_select_tag($options);       
     
    111120     *   datetime_select("post", "written_on") 
    112121     *   datetime_select("post", "written_on", array("start_year" => 1995)) 
     122     *  @todo Document this method 
    113123     */ 
    114124    function datetime_select($options = array()) {      
     
    119129     *   datetime_select("post", "written_on") 
    120130     *   datetime_select("post", "written_on", array("start_year" => 1995)) 
     131     *  @todo Document this method 
    121132     */ 
    122133    function date_select($options = array()) {    
     
    124135    }   
    125136     
     137    /** 
     138     *  @todo Document this method 
     139     */ 
    126140    function select_expiration_date($date = null, $options = array()) { 
    127141        $options['month_before_year'] = true;       
     
    146160    /** 
    147161     * Returns a set of html select-tags (one for year, month, and day) pre-selected with the +date+. 
     162     *  @todo Document this method 
    148163     */ 
    149164    function select_date($date = null, $options = array()) { 
     
    156171    /** 
    157172     * Returns a set of html select-tags (one for year, month, day, hour, and minute) preselected the +datetime+. 
     173     *  @todo Document this method 
    158174     */ 
    159175    function select_datetime($datetime = null, $options = array()) { 
     
    168184    /** 
    169185     * Returns a set of html select-tags (one for hour and minute) 
     186     *  @todo Document this method 
    170187     */ 
    171188    function select_time($datetime = null, $options = array()) { 
     
    180197     *  The <tt>second</tt> can also be substituted for a second number. 
    181198     *  Override the field name using the <tt>:field_name</tt> option, 'second' by default. 
     199     *  @todo Document this method 
    182200     */ 
    183201    function select_second($datetime, $options = array()) { 
     
    207225     *  The <tt>minute</tt> can also be substituted for a minute number. 
    208226     *  Override the field name using the <tt>:field_name</tt> option, 'minute' by default. 
     227     *  @todo Document this method 
    209228     */ 
    210229    function select_minute($datetime, $options = array()) { 
     
    233252     *  The <tt>hour</tt> can also be substituted for a hour number. 
    234253     *  Override the field name using the <tt>:field_name</tt> option, 'hour' by default. 
     254     *  @todo Document this method 
    235255     */ 
    236256    function select_hour($datetime, $options = array()) { 
     
    260280     *  The <tt>date</tt> can also be substituted for a hour number. 
    261281     *  Override the field name using the <tt>:field_name</tt> option, 'day' by default. 
     282     *  @todo Document this method 
    262283     */ 
    263284    function select_day($datetime, $options = array()) { 
     
    294315    * 
    295316    *  Override the field name using the <tt>:field_name</tt> option, 'month' by default. 
     317     *  @todo Document this method 
    296318   */ 
    297319    function select_month($date, $options = array()) { 
     
    332354    * 
    333355    * Override the field name using the <tt>:field_name</tt> option, 'year' by default. 
     356     *  @todo Document this method 
    334357    */ 
    335358    function select_year($date, $options = array()) { 
     
    359382    /** 
    360383     * 
     384     *  @todo Document this method 
    361385     */ 
    362386    function to_date_select_tag($options = array()) { 
     
    406430    /** 
    407431     * 
     432     *  @todo Document this method 
    408433     */ 
    409434    function to_datetime_select_tag($options = array()) { 
     
    436461    } 
    437462     
     463    /** 
     464     *  @todo Document this method 
     465     */ 
    438466    function to_expiration_date_select_tag($options = array()) { 
    439467        $options['discard_day'] = true;  
     
    451479  *  Avialble functions for use in views 
    452480  *  select_date($date = null, $options = array()) 
     481  *  @todo Document this function 
    453482  */ 
    454483function select_date() { 
     
    460489/** 
    461490 *  Select_datetime($datetime = null, $options = array()) 
     491 *  @todo Document this function 
    462492 */ 
    463493function select_datetime() { 
     
    469499/** 
    470500 * select_expiration_date($datetime = null, $options = array()) 
     501 *  @todo Document this function 
    471502 */ 
    472503function select_expiration_date() { 
     
    478509/** 
    479510 * 
     511 *  @todo Document this function 
    480512 */ 
    481513function datetime_select($object, $attribute, $options = array()) { 
     
    486518/** 
    487519 * 
     520 *  @todo Document this function 
    488521 */ 
    489522function date_select($object, $attribute, $options = array()) { 
     
    492525} 
    493526 
     527/** 
     528 * 
     529 *  @todo Document this function 
     530 */ 
    494531function expiration_date_select($object, $attribute, $options = array()) { 
    495532    $date_helper = new DateHelper($object, $attribute); 
     
    497534} 
    498535 
     536 
     537/** 
     538 * 
     539 *  @todo Document this function 
     540 */ 
    499541function select_year() { 
    500542    $date_helper = new DateHelper(); 
     
    503545} 
    504546 
     547 
     548/** 
     549 * 
     550 *  @todo Document this function 
     551 */ 
    505552function select_month() { 
    506553    $date_helper = new DateHelper(); 
     
    509556} 
    510557 
     558 
     559/** 
     560 *  @todo Document this function 
     561 */ 
    511562function select_day() { 
    512563    $date_helper = new DateHelper(); 
     
    515566} 
    516567 
     568// -- set Emacs parameters -- 
     569// Local variables: 
     570// tab-width: 4 
     571// c-basic-offset: 4 
     572// c-hanging-comment-ender-p: nil 
     573// indent-tabs-mode: nil 
     574// End: 
    517575?> 
  • trunk/trax/vendor/trax/action_view/helpers/form_options_helper.php

    r144 r155  
    3232 * All the countries included in the country_options output. 
    3333 */ 
    34 if(!$GLOBALS['COUNTRIES']) { 
     34if(!array_key_exists('COUNTRIES',$GLOBALS)) { 
    3535    $GLOBALS['COUNTRIES'] =  
    3636        array("Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla",  
  • trunk/trax/vendor/trax/action_view/helpers/form_tag_helper.php

    r148 r155  
    3636 
    3737    /** 
    38      * 
     38     *  @todo Document this method 
    3939     */ 
    4040    function form_tag($url_for_options = array(), $options = array()) { 
     
    5151 
    5252    /** 
     53     *  @todo Document this method 
    5354     * 
    5455     */ 
     
    5960 
    6061    /** 
     62     *  @todo Document this method 
    6163     * 
    6264     */ 
     
    6668 
    6769    /** 
     70     *  @todo Document this method 
    6871     * 
    6972     */ 
     
    7376 
    7477    /** 
     78     *  @todo Document this method 
    7579     * 
    7680     */ 
     
    8084 
    8185    /** 
     86     *  @todo Document this method 
    8287     * 
    8388     */ 
     
    8792 
    8893    /** 
     94     *  @todo Document this method 
    8995     * 
    9096     */ 
     
    94100 
    95101    /** 
     102     *  @todo Document this method 
    96103     * 
    97104     */ 
     
    108115 
    109116    /** 
     117     *  @todo Document this method 
    110118     * 
    111119     */ 
     
    117125 
    118126    /** 
     127     *  @todo Document this method 
    119128     * 
    120129     */ 
     
    126135 
    127136    /** 
     137     *  @todo Document this method 
    128138     * 
    129139     */ 
     
    134144    /** 
    135145     * 
     146     *  @todo Document this method 
    136147     */ 
    137148    function image_submit_tag($source, $options = array()) { 
     
    142153 
    143154/** 
     155 *  @todo Document this method 
    144156 *  Avialble functions for use in views 
    145157 */ 
     
    151163 
    152164/** 
     165 *  @todo Document this method 
    153166 * 
    154167 */ 
     
    159172 
    160173/** 
     174 *  @todo Document this method 
    161175 * 
    162176 */ 
     
    166180 
    167181/** 
     182 *  @todo Document this method 
    168183 * 
    169184 */ 
     
    175190 
    176191/** 
     192 *  @todo Document this method 
    177193 * 
    178194 */ 
     
    184200 
    185201/** 
     202 *  @todo Document this method 
    186203 * 
    187204 */ 
     
    194211/** 
    195212 * 
     213 *  @todo Document this method 
    196214 */ 
    197215function file_field_tag() { 
     
    203221/** 
    204222 * 
     223 *  @todo Document this method 
    205224 */ 
    206225function password_field_tag() { 
     
    212231/** 
    213232 * 
     233 *  @todo Document this method 
    214234 */ 
    215235function text_area_tag() { 
     
    221241/** 
    222242 * 
     243 *  @todo Document this method 
    223244 */ 
    224245function check_box_tag() { 
     
    230251/** 
    231252 * 
     253 *  @todo Document this method 
    232254 */ 
    233255function radio_button_tag() { 
     
    239261/** 
    240262 * 
     263 *  @todo Document this method 
    241264 */ 
    242265function submit_tag() { 
     
    247270 
    248271/** 
     272 *  @todo Document this method 
    249273 * 
    250274 */