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]
defineFirstDayOfWeek [line 430]
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 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
getEngine [line 415]
object implementing &getEngine(
)
|
|
Returns a reference to the current Calendar_Engine being used. Useful
for Calendar_Table_Helper and Calendar_Validator
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 555]
int nextDay(
[string
$format = 'int'])
|
|
Returns the value for the next day
Parameters:
nextHour [line 594]
int nextHour(
[string
$format = 'int'])
|
|
Returns the value for the next hour
Parameters:
nextMinute [line 635]
int nextMinute(
[string
$format = 'int'])
|
|
Returns the value for the next minute
Parameters:
nextMonth [line 517]
int nextMonth(
[string
$format = 'int'])
|
|
Returns the value for next month
Parameters:
nextSecond [line 677]
int nextSecond(
[string
$format = 'int'])
|
|
Returns the value for the next second
Parameters:
nextYear [line 481]
int nextYear(
[string
$format = 'int'])
|
|
Returns the value for next year
Parameters:
prevDay [line 529]
int prevDay(
[string
$format = 'int'])
|
|
Returns the value for the previous day
Parameters:
prevHour [line 568]
int prevHour(
[string
$format = 'int'])
|
|
Returns the value for the previous hour
Parameters:
prevMinute [line 607]
int prevMinute(
[string
$format = 'int'])
|
|
Returns the value for the previous minute
Parameters:
prevMonth [line 493]
int prevMonth(
[string
$format = 'int'])
|
|
Returns the value for the previous month
Parameters:
prevSecond [line 649]
int prevSecond(
[string
$format = 'int'])
|
|
Returns the value for the previous second
Parameters:
prevYear [line 457]
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 542]
int thisDay(
[string
$format = 'int'])
|
|
Returns the value for this day
Parameters:
thisHour [line 581]
int thisHour(
[string
$format = 'int'])
|
|
Returns the value for this hour
Parameters:
thisMinute [line 621]
int thisMinute(
[string
$format = 'int'])
|
|
Returns the value for this minute
Parameters:
thisMonth [line 505]
int thisMonth(
[string
$format = 'int'])
|
|
Returns the value for this month
Parameters:
thisSecond [line 663]
int thisSecond(
[string
$format = 'int'])
|
|
Returns the value for this second
Parameters:
thisYear [line 469]
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: