Calendar
[ class tree: Calendar ] [ index: Calendar ] [ all elements ]

Class: Calendar_Util_Textual

Source Location: /Calendar-0.5.2/Util/Textual.php

Class Overview


Static utlities to help with fetching textual representations of months and days of the week.


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 47]
Static utlities to help with fetching textual representations of months and days of the week.
  • Access: public


[ Top ]


Method Detail

monthNames   [line 57]

array monthNames( [string $format = 'long'])

Returns an array of 12 month names (first index = 1)
  • Access: public

Parameters:

string   $format   —  (optional) format of returned months (one,two,short or long)

[ Top ]

nextDayName   [line 197]

string nextDayName( object subclass $Calendar, [string $format = 'long'])

Returns textual representation of the next day of week of the decorated calendar object
  • Access: public

Parameters:

object subclass   $Calendar   —  of Calendar e.g. Calendar_Month
string   $format   —  (optional) format of returned months (one,two,short or long)

[ Top ]

nextMonthName   [line 146]

string nextMonthName( object subclass $Calendar, [string $format = 'long'])

Returns textual representation of the next month of the decorated calendar object
  • Access: public

Parameters:

object subclass   $Calendar   —  of Calendar e.g. Calendar_Month
string   $format   —  (optional) format of returned months (one,two,short or long)

[ Top ]

orderedWeekdays   [line 218]

array orderedWeekdays( object subclass $Calendar, [string $format = 'long'])

Returns the days of the week using the order defined in the decorated

calendar object. Only useful for Calendar_Month_Weekdays, Calendar_Month_Weeks and Calendar_Week. Otherwise the returned array will begin on Sunday

  • Return: ordered array of week day names
  • Access: public

Parameters:

object subclass   $Calendar   —  of Calendar e.g. Calendar_Month
string   $format   —  (optional) format of returned months (one,two,short or long)

[ Top ]

prevDayName   [line 161]

string prevDayName( object subclass $Calendar, [string $format = 'long'])

Returns textual representation of the previous day of week of the decorated calendar object

Note: Requires PEAR::Date

  • Access: public

Parameters:

object subclass   $Calendar   —  of Calendar e.g. Calendar_Month
string   $format   —  (optional) format of returned months (one,two,short or long)

[ Top ]

prevMonthName   [line 118]

string prevMonthName( object subclass $Calendar, [string $format = 'long'])

Returns textual representation of the previous month of the decorated calendar object
  • Access: public

Parameters:

object subclass   $Calendar   —  of Calendar e.g. Calendar_Month
string   $format   —  (optional) format of returned months (one,two,short or long)

[ Top ]

thisDayName   [line 181]

string thisDayName( object subclass $Calendar, [string $format = 'long'])

Returns textual representation of the day of week of the decorated calendar object

Note: Requires PEAR::Date

  • Access: public

Parameters:

object subclass   $Calendar   —  of Calendar e.g. Calendar_Month
string   $format   —  (optional) format of returned months (one,two,short or long)

[ Top ]

thisMonthName   [line 132]

string thisMonthName( object subclass $Calendar, [string $format = 'long'])

Returns textual representation of the month of the decorated calendar object
  • Access: public

Parameters:

object subclass   $Calendar   —  of Calendar e.g. Calendar_Month
string   $format   —  (optional) format of returned months (one,two,short or long)

[ Top ]

weekdayNames   [line 87]

array weekdayNames( [string $format = 'long'])

Returns an array of 7 week day names (first index = 0)
  • Access: public

Parameters:

string   $format   —  (optional) format of returned days (one,two,short or long)

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:54:44 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.