Calendar (Constructor) [line 206]
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 295]
Adjusts the date (helper method)
build [line 369]
defineFirstDayOfWeek [line 489]
integer defineFirstDayOfWeek(
[integer
$firstDay = null])
|
|
Set the CALENDAR_FIRST_DAY_OF_WEEK constant to the $firstDay value if the constant is not set yet.
Parameters:
fetch [line 404]
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 421]
Fetches all child from the current collection of children
Overridden in child classes as:
- Calendar_Second::fetchAll()
- Overwrite fetchAll
getEngine [line 472]
object implementing &getEngine(
)
|
|
Returns a reference to the current Calendar_Engine being used. Useful for Calendar_Table_Helper and Calendar_Validator
getTimestamp [line 247]
int|string getTimestamp(
)
|
|
Returns a timestamp from the current date / time values. Format of timestamp depends on Calendar_Engine implementation being used
getValidator [line 456]
Returns an instance of Calendar_Validator
isSelected [line 273]
True if the calendar subclass object is selected (e.g. today)
isToday [line 284]
Checks if the current Calendar object is today's date
isValid [line 444]
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 632]
int nextDay(
[string
$format = 'int'])
|
|
Returns the value for the next day
Parameters:
nextHour [line 677]
int nextHour(
[string
$format = 'int'])
|
|
Returns the value for the next hour
Parameters:
nextMinute [line 724]
int nextMinute(
[string
$format = 'int'])
|
|
Returns the value for the next minute
Parameters:
nextMonth [line 588]
int nextMonth(
[string
$format = 'int'])
|
|
Returns the value for next month
Parameters:
nextSecond [line 772]
int nextSecond(
[string
$format = 'int'])
|
|
Returns the value for the next second
Parameters:
nextYear [line 546]
int nextYear(
[string
$format = 'int'])
|
|
Returns the value for next year
Parameters:
prevDay [line 602]
int prevDay(
[string
$format = 'int'])
|
|
Returns the value for the previous day
Parameters:
prevHour [line 647]
int prevHour(
[string
$format = 'int'])
|
|
Returns the value for the previous hour
Parameters:
prevMinute [line 692]
int prevMinute(
[string
$format = 'int'])
|
|
Returns the value for the previous minute
Parameters:
prevMonth [line 560]
int prevMonth(
[string
$format = 'int'])
|
|
Returns the value for the previous month
Parameters:
prevSecond [line 740]
int prevSecond(
[string
$format = 'int'])
|
|
Returns the value for the previous second
Parameters:
prevYear [line 518]
int prevYear(
[string
$format = 'int'])
|
|
Returns the value for the previous year
Parameters:
setSelected [line 262]
void setSelected(
[boolean
$state = true])
|
|
Defines calendar object as selected (e.g. for today)
Parameters:
setSelection [line 386]
boolean setSelection(
array
$sDates)
|
|
Abstract method for selected data objects called from build
Parameters:
setTimestamp [line 230]
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 passed to the constructor
Parameters:
size [line 432]
Get the number Calendar subclass objects stored in the internal collection
Overridden in child classes as:
- Calendar_Second::size()
- Overwrite size
thisDay [line 617]
int thisDay(
[string
$format = 'int'])
|
|
Returns the value for this day
Parameters:
thisHour [line 662]
int thisHour(
[string
$format = 'int'])
|
|
Returns the value for this hour
Parameters:
thisMinute [line 708]
int thisMinute(
[string
$format = 'int'])
|
|
Returns the value for this minute
Parameters:
thisMonth [line 574]
int thisMonth(
[string
$format = 'int'])
|
|
Returns the value for this month
Parameters:
thisSecond [line 756]
int thisSecond(
[string
$format = 'int'])
|
|
Returns the value for this second
Parameters:
thisYear [line 532]
int thisYear(
[string
$format = 'int'])
|
|
Returns the value for this year
Overridden in child classes as:
- Calendar_Week::thisYear()
- Returns the value for this year
Parameters:
toArray [line 314]
array toArray(
[mixed
$stamp = null])
|
|
Returns the date as an associative array (helper method)
Parameters: