Calendar (Constructor) [line 178]
Calendar Calendar(
[int
$y = 2000], [int
$m = 1], [int
$d = 1], [int
$h = 0], [int
$i = 0], [int
$s = 0])
|
|
Constructs the Calendar
Parameters:
adjust [line 249]
Adjusts the date (helper method)
build [line 317]
fetch [line 350]
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_Second::fetch()
- Overwrite fetch
fetchAll [line 366]
Fetches all child from the current collection of children
Overridden in child classes as:
- Calendar_Second::fetchAll()
- Overwrite fetchAll
getTimestamp [line 216]
int|string getTimestamp(
)
|
|
Returns a timestamp from the current date / time values. Format of
timestamp depends on Calendar_Engine implementation being used
getValidator [line 400]
Returns an instance of Calendar_Validator
isSelected [line 239]
True if the calendar subclass object is selected (e.g. today)
isValid [line 389]
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 524]
int nextDay(
[string
$format = 'int'])
|
|
Returns the value for the next day
Parameters:
nextHour [line 563]
int nextHour(
[string
$format = 'int'])
|
|
Returns the value for the next hour
Parameters:
nextMinute [line 604]
int nextMinute(
[string
$format = 'int'])
|
|
Returns the value for the next minute
Parameters:
nextMonth [line 486]
int nextMonth(
[string
$format = 'int'])
|
|
Returns the value for next month
Parameters:
nextSecond [line 646]
int nextSecond(
[string
$format = 'int'])
|
|
Returns the value for the next second
Parameters:
nextYear [line 450]
int nextYear(
[string
$format = 'int'])
|
|
Returns the value for next year
Parameters:
prevDay [line 498]
int prevDay(
[string
$format = 'int'])
|
|
Returns the value for the previous day
Parameters:
prevHour [line 537]
int prevHour(
[string
$format = 'int'])
|
|
Returns the value for the previous hour
Parameters:
prevMinute [line 576]
int prevMinute(
[string
$format = 'int'])
|
|
Returns the value for the previous minute
Parameters:
prevMonth [line 462]
int prevMonth(
[string
$format = 'int'])
|
|
Returns the value for the previous month
Parameters:
prevSecond [line 618]
int prevSecond(
[string
$format = 'int'])
|
|
Returns the value for the previous second
Parameters:
prevYear [line 426]
int prevYear(
[string
$format = 'int'])
|
|
Returns the value for the previous year
Parameters:
setSelected [line 229]
void setSelected(
[boolean
$state = true])
|
|
Defines calendar object as selected (e.g. for today)
Parameters:
setSelection [line 333]
boolean setSelection(
array
$sDates)
|
|
Abstract method for selected data objects called from build
Parameters:
setTimestamp [line 200]
void setTimestamp(
int|string
$ts)
|
|
Defines the calendar by a timestamp (Unix or ISO-8601), replacing values
passed to the constructor
Overridden in child classes as:
- Calendar_Week::setTimestamp()
- Defines the calendar by a timestamp (Unix or ISO-8601), replacing values
Parameters:
size [line 377]
Get the number Calendar subclass objects stored in the internal collection.
Overridden in child classes as:
- Calendar_Second::size()
- Overwrite size
thisDay [line 511]
int thisDay(
[string
$format = 'int'])
|
|
Returns the value for this day
Parameters:
thisHour [line 550]
int thisHour(
[string
$format = 'int'])
|
|
Returns the value for this hour
Parameters:
thisMinute [line 590]
int thisMinute(
[string
$format = 'int'])
|
|
Returns the value for this minute
Parameters:
thisMonth [line 474]
int thisMonth(
[string
$format = 'int'])
|
|
Returns the value for this month
Parameters:
thisSecond [line 632]
int thisSecond(
[string
$format = 'int'])
|
|
Returns the value for this second
Parameters:
thisYear [line 438]
int thisYear(
[string
$format = 'int'])
|
|
Returns the value for this year
Parameters:
toArray [line 266]
array toArray(
[mixed
$stamp = null])
|
|
Returns the date as an associative array (helper method)
Parameters: