Changeset 155 for trunk/trax/vendor/trax/action_view
- Timestamp:
- 02/28/06 12:49:52 (6 years ago)
- Location:
- trunk/trax/vendor/trax/action_view/helpers
- Files:
-
- 3 modified
-
date_helper.php (modified) (31 diffs)
-
form_options_helper.php (modified) (1 diff)
-
form_tag_helper.php (modified) (25 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_view/helpers/date_helper.php
r152 r155 31 31 /** 32 32 * 33 * @ package PHPonTrax33 * @todo Document this class 34 34 */ 35 35 class DateHelper extends Helpers { 36 36 public $selected_years = array(); 37 37 /** 38 * 38 * @todo Document this method 39 39 */ 40 40 function __construct($object_name = null, $attribute_name = null) { … … 42 42 } 43 43 44 /** 45 * @todo Document this method 46 */ 44 47 private function check_request_for_value() { 45 48 if(!$value = $_REQUEST[$this->object_name][$this->attribute_name]) { … … 69 72 /** 70 73 * 74 * @todo Document this method 71 75 */ 72 76 private function select_html($type, $options, $prefix = null, $include_blank = false, $discard_type = false) { … … 86 90 /** 87 91 * 92 * @todo Document this method 88 93 */ 89 94 private function leading_zero_on_single_digits($number) { … … 93 98 /** 94 99 * 100 * @todo Document this method 95 101 */ 96 102 protected function value() { … … 104 110 } 105 111 112 /** 113 * @todo Document this method 114 */ 106 115 function expiration_date_select($options = array()) { 107 116 return $this->to_expiration_date_select_tag($options); … … 111 120 * datetime_select("post", "written_on") 112 121 * datetime_select("post", "written_on", array("start_year" => 1995)) 122 * @todo Document this method 113 123 */ 114 124 function datetime_select($options = array()) { … … 119 129 * datetime_select("post", "written_on") 120 130 * datetime_select("post", "written_on", array("start_year" => 1995)) 131 * @todo Document this method 121 132 */ 122 133 function date_select($options = array()) { … … 124 135 } 125 136 137 /** 138 * @todo Document this method 139 */ 126 140 function select_expiration_date($date = null, $options = array()) { 127 141 $options['month_before_year'] = true; … … 146 160 /** 147 161 * Returns a set of html select-tags (one for year, month, and day) pre-selected with the +date+. 162 * @todo Document this method 148 163 */ 149 164 function select_date($date = null, $options = array()) { … … 156 171 /** 157 172 * Returns a set of html select-tags (one for year, month, day, hour, and minute) preselected the +datetime+. 173 * @todo Document this method 158 174 */ 159 175 function select_datetime($datetime = null, $options = array()) { … … 168 184 /** 169 185 * Returns a set of html select-tags (one for hour and minute) 186 * @todo Document this method 170 187 */ 171 188 function select_time($datetime = null, $options = array()) { … … 180 197 * The <tt>second</tt> can also be substituted for a second number. 181 198 * Override the field name using the <tt>:field_name</tt> option, 'second' by default. 199 * @todo Document this method 182 200 */ 183 201 function select_second($datetime, $options = array()) { … … 207 225 * The <tt>minute</tt> can also be substituted for a minute number. 208 226 * Override the field name using the <tt>:field_name</tt> option, 'minute' by default. 227 * @todo Document this method 209 228 */ 210 229 function select_minute($datetime, $options = array()) { … … 233 252 * The <tt>hour</tt> can also be substituted for a hour number. 234 253 * Override the field name using the <tt>:field_name</tt> option, 'hour' by default. 254 * @todo Document this method 235 255 */ 236 256 function select_hour($datetime, $options = array()) { … … 260 280 * The <tt>date</tt> can also be substituted for a hour number. 261 281 * Override the field name using the <tt>:field_name</tt> option, 'day' by default. 282 * @todo Document this method 262 283 */ 263 284 function select_day($datetime, $options = array()) { … … 294 315 * 295 316 * Override the field name using the <tt>:field_name</tt> option, 'month' by default. 317 * @todo Document this method 296 318 */ 297 319 function select_month($date, $options = array()) { … … 332 354 * 333 355 * Override the field name using the <tt>:field_name</tt> option, 'year' by default. 356 * @todo Document this method 334 357 */ 335 358 function select_year($date, $options = array()) { … … 359 382 /** 360 383 * 384 * @todo Document this method 361 385 */ 362 386 function to_date_select_tag($options = array()) { … … 406 430 /** 407 431 * 432 * @todo Document this method 408 433 */ 409 434 function to_datetime_select_tag($options = array()) { … … 436 461 } 437 462 463 /** 464 * @todo Document this method 465 */ 438 466 function to_expiration_date_select_tag($options = array()) { 439 467 $options['discard_day'] = true; … … 451 479 * Avialble functions for use in views 452 480 * select_date($date = null, $options = array()) 481 * @todo Document this function 453 482 */ 454 483 function select_date() { … … 460 489 /** 461 490 * Select_datetime($datetime = null, $options = array()) 491 * @todo Document this function 462 492 */ 463 493 function select_datetime() { … … 469 499 /** 470 500 * select_expiration_date($datetime = null, $options = array()) 501 * @todo Document this function 471 502 */ 472 503 function select_expiration_date() { … … 478 509 /** 479 510 * 511 * @todo Document this function 480 512 */ 481 513 function datetime_select($object, $attribute, $options = array()) { … … 486 518 /** 487 519 * 520 * @todo Document this function 488 521 */ 489 522 function date_select($object, $attribute, $options = array()) { … … 492 525 } 493 526 527 /** 528 * 529 * @todo Document this function 530 */ 494 531 function expiration_date_select($object, $attribute, $options = array()) { 495 532 $date_helper = new DateHelper($object, $attribute); … … 497 534 } 498 535 536 537 /** 538 * 539 * @todo Document this function 540 */ 499 541 function select_year() { 500 542 $date_helper = new DateHelper(); … … 503 545 } 504 546 547 548 /** 549 * 550 * @todo Document this function 551 */ 505 552 function select_month() { 506 553 $date_helper = new DateHelper(); … … 509 556 } 510 557 558 559 /** 560 * @todo Document this function 561 */ 511 562 function select_day() { 512 563 $date_helper = new DateHelper(); … … 515 566 } 516 567 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: 517 575 ?> -
trunk/trax/vendor/trax/action_view/helpers/form_options_helper.php
r144 r155 32 32 * All the countries included in the country_options output. 33 33 */ 34 if(! $GLOBALS['COUNTRIES']) {34 if(!array_key_exists('COUNTRIES',$GLOBALS)) { 35 35 $GLOBALS['COUNTRIES'] = 36 36 array("Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", -
trunk/trax/vendor/trax/action_view/helpers/form_tag_helper.php
r148 r155 36 36 37 37 /** 38 * 38 * @todo Document this method 39 39 */ 40 40 function form_tag($url_for_options = array(), $options = array()) { … … 51 51 52 52 /** 53 * @todo Document this method 53 54 * 54 55 */ … … 59 60 60 61 /** 62 * @todo Document this method 61 63 * 62 64 */ … … 66 68 67 69 /** 70 * @todo Document this method 68 71 * 69 72 */ … … 73 76 74 77 /** 78 * @todo Document this method 75 79 * 76 80 */ … … 80 84 81 85 /** 86 * @todo Document this method 82 87 * 83 88 */ … … 87 92 88 93 /** 94 * @todo Document this method 89 95 * 90 96 */ … … 94 100 95 101 /** 102 * @todo Document this method 96 103 * 97 104 */ … … 108 115 109 116 /** 117 * @todo Document this method 110 118 * 111 119 */ … … 117 125 118 126 /** 127 * @todo Document this method 119 128 * 120 129 */ … … 126 135 127 136 /** 137 * @todo Document this method 128 138 * 129 139 */ … … 134 144 /** 135 145 * 146 * @todo Document this method 136 147 */ 137 148 function image_submit_tag($source, $options = array()) { … … 142 153 143 154 /** 155 * @todo Document this method 144 156 * Avialble functions for use in views 145 157 */ … … 151 163 152 164 /** 165 * @todo Document this method 153 166 * 154 167 */ … … 159 172 160 173 /** 174 * @todo Document this method 161 175 * 162 176 */ … … 166 180 167 181 /** 182 * @todo Document this method 168 183 * 169 184 */ … … 175 190 176 191 /** 192 * @todo Document this method 177 193 * 178 194 */ … … 184 200 185 201 /** 202 * @todo Document this method 186 203 * 187 204 */ … … 194 211 /** 195 212 * 213 * @todo Document this method 196 214 */ 197 215 function file_field_tag() { … … 203 221 /** 204 222 * 223 * @todo Document this method 205 224 */ 206 225 function password_field_tag() { … … 212 231 /** 213 232 * 233 * @todo Document this method 214 234 */ 215 235 function text_area_tag() { … … 221 241 /** 222 242 * 243 * @todo Document this method 223 244 */ 224 245 function check_box_tag() { … … 230 251 /** 231 252 * 253 * @todo Document this method 232 254 */ 233 255 function radio_button_tag() { … … 239 261 /** 240 262 * 263 * @todo Document this method 241 264 */ 242 265 function submit_tag() { … … 247 270 248 271 /** 272 * @todo Document this method 249 273 * 250 274 */
