| [ Index ] |
PHP Cross Reference of MantisBT |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 334 lines (9 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Period:: (24 methods):
Period()
a_week()
this_week()
last_week()
week_to_date()
a_month()
this_month()
last_month()
month_to_date()
a_quarter()
this_quarter()
last_quarter()
quarter_to_date()
a_year()
this_year()
year_to_date()
last_year()
get_start_timestamp()
get_end_timestamp()
get_start_formatted()
get_end_formatted()
get_elapsed_days()
period_selector()
set_period_from_selector()
| Period() X-Ref |
| Constructor |
| a_week( $p_when, $p_weeks = 1 ) X-Ref |
| set dates for a week param: string $p_when date string to expand to a week (Sun to Sat) param: int $p_weeks number of weeks |
| this_week() X-Ref |
| set dates for this week |
| last_week( $p_weeks = 1 ) X-Ref |
| set dates for last week param: int $p_weeks number of weeks |
| week_to_date() X-Ref |
| set dates for this week to date |
| a_month( $p_when ) X-Ref |
| set dates for a month param: string $p_when date string to expand to a month |
| this_month() X-Ref |
| set dates for this month |
| last_month() X-Ref |
| set dates for last month |
| month_to_date() X-Ref |
| set dates for this month to date |
| a_quarter( $p_when ) X-Ref |
| set dates for a quarter param: string $p_when date string to expand to a quarter |
| this_quarter() X-Ref |
| set dates for this quarter |
| last_quarter() X-Ref |
| set dates for last month |
| quarter_to_date() X-Ref |
| set dates for this quarter to date |
| a_year( $p_when ) X-Ref |
| set dates for a year param: string $p_when date string to expand to a year |
| this_year() X-Ref |
| set dates for this year |
| year_to_date() X-Ref |
| set dates for current year, ending today |
| last_year() X-Ref |
| set dates for last year |
| get_start_timestamp() X-Ref |
| get start date in unix timestamp format |
| get_end_timestamp() X-Ref |
| get end date in unix timestamp format |
| get_start_formatted() X-Ref |
| get formatted start date |
| get_end_formatted() X-Ref |
| get formatted end date |
| get_elapsed_days() X-Ref |
| get number of days in interval |
| period_selector( $p_control_name ) X-Ref |
| print a period selector param: string $p_control_name |
| set_period_from_selector( $p_control_name, $p_start_field = 'start_date', $p_end_field = 'end_date' ) X-Ref |
| set date based on period selector param: string $p_control_name param: string $p_start_field param: string $p_end_field |
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |