Calendar_Decorator (Constructor) [line 59]
Calendar_Decorator Calendar_Decorator(
object subclass
&$calendar)
|
|
Constructs the Calendar_Decorator
Parameters:
adjust [line 113]
Adjusts the date (helper method)
build [line 228]
fetch [line 241]
Iterator method for fetching child Calendar subclass objects (e.g. a minute from an hour object). On reaching the end of the collection, returns false and resets the collection for further iteratations.
Overridden in child classes as:
- Calendar_Decorator_Wrapper::fetch()
- Wraps objects returned from fetch in the named Decorator class
- MonthPayload_Decorator::fetch()
fetchAll [line 251]
Fetches all child from the current collection of children
Overridden in child classes as:
- Calendar_Decorator_Wrapper::fetchAll()
- Wraps the returned calendar objects from fetchAll in the named decorator
getTimestamp [line 82]
Returns a timestamp from the current date / time values. Format of
timestamp depends on Calendar_Engine implementation being used
getValidator [line 284]
Returns an instance of Calendar_Validator
isEmpty [line 214]
isFirst [line 177]
Returns true if Day object is first in a Week
Only relevant when Day is created by Calendar_Month_Weekdays::build()
isLast [line 189]
Returns true if Day object is last in a Week
Only relevant when Day is created by Calendar_Month_Weekdays::build()
isSelected [line 103]
True if the calendar subclass object is selected (e.g. today)
isValid [line 274]
Determine whether this date is valid, with the bounds determined by
the Calendar_Engine. The call is passed on to Calendar_Validator::isValid
nextDay [line 453]
int nextDay(
[string
$format = 'int'])
|
|
Returns the value for the next day
Parameters:
nextHour [line 486]
int nextHour(
[string
$format = 'int'])
|
|
Returns the value for the next hour
Parameters:
nextMinute [line 519]
int nextMinute(
[string
$format = 'int'])
|
|
Returns the value for the next minute
Parameters:
nextMonth [line 361]
int nextMonth(
[string
$format = 'int'])
|
|
Returns the value for next month
Overridden in child classes as:
- MonthDecorator::nextMonth()
- Override the nextMonth method to format the output
Parameters:
nextSecond [line 552]
int nextSecond(
[string
$format = 'int'])
|
|
Returns the value for the next second
Parameters:
nextWeek [line 412]
int nextWeek(
[string
$format = 'n_in_month'])
|
|
Returns the value for next week
Parameters:
nextYear [line 328]
int nextYear(
[string
$format = 'int'])
|
|
Returns the value for next year
Parameters:
prevDay [line 432]
int prevDay(
[string
$format = 'int'])
|
|
Returns the value for the previous day
Parameters:
prevHour [line 464]
int prevHour(
[string
$format = 'int'])
|
|
Returns the value for the previous hour
Parameters:
prevMinute [line 497]
int prevMinute(
[string
$format = 'int'])
|
|
Returns the value for the previous minute
Parameters:
prevMonth [line 339]
int prevMonth(
[string
$format = 'int'])
|
|
Returns the value for the previous month
Overridden in child classes as:
- MonthDecorator::prevMonth()
- Override the prevMonth method to format the output
Parameters:
prevSecond [line 530]
int prevSecond(
[string
$format = 'int'])
|
|
Returns the value for the previous second
Parameters:
prevWeek [line 372]
int prevWeek(
[string
$format = 'n_in_month'])
|
|
Returns the value for the previous week
Parameters:
prevYear [line 306]
int prevYear(
[string
$format = 'int'])
|
|
Returns the value for the previous year
Parameters:
setSelected [line 93]
void setSelected(
[boolean
$state = true])
|
|
Defines calendar object as selected (e.g. for today)
Parameters:
setTimestamp [line 71]
void setTimestamp(
int
$ts)
|
|
Defines the calendar by a Unix timestamp, replacing values
passed to the constructor
Parameters:
size [line 262]
Get the number Calendar subclass objects stored in the internal collection.
thisDay [line 442]
int thisDay(
[string
$format = 'int'])
|
|
Returns the value for this day
Overridden in child classes as:
- MyBoldDecorator::thisDay()
Parameters:
thisHour [line 475]
int thisHour(
[string
$format = 'int'])
|
|
Returns the value for this hour
Parameters:
thisMinute [line 508]
int thisMinute(
[string
$format = 'int'])
|
|
Returns the value for this minute
Parameters:
thisMonth [line 350]
int thisMonth(
[string
$format = 'int'])
|
|
Returns the value for this month
Overridden in child classes as:
- MonthDecorator::thisMonth()
- Override the thisMonth method to format the output
Parameters:
thisSecond [line 541]
int thisSecond(
[string
$format = 'int'])
|
|
Returns the value for this second
Parameters:
thisWeek [line 392]
int thisWeek(
[string
$format = 'n_in_month'])
|
|
Returns the value for this week
Parameters:
thisYear [line 317]
int thisYear(
[string
$format = 'int'])
|
|
Returns the value for this year
Parameters:
toArray [line 124]
array toArray(
[mixed
$stamp = null])
|
|
Returns the date as an associative array (helper method)
Parameters: