EC-CUBE
Public メソッド
クラス Calendar_Engine_Interface

Public メソッド

 stampCollection ($stamp)
 stampToYear ($stamp)
 stampToMonth ($stamp)
 stampToDay ($stamp)
 stampToHour ($stamp)
 stampToMinute ($stamp)
 stampToSecond ($stamp)
 dateToStamp ($y, $m, $d, $h, $i, $s)
 getMaxYears ()
 getMinYears ()
 getMonthsInYear ($y=null)
 getDaysInMonth ($y, $m)
 getFirstDayInMonth ($y, $m)
 getDaysInWeek ($y=NULL, $m=NULL, $d=NULL)
 getWeekNInYear ($y, $m, $d)
 getWeekNInMonth ($y, $m, $d, $firstDay=1)
 getWeeksInMonth ($y, $m)
 getDayOfWeek ($y, $m, $d)
 getWeekDays ($y=NULL, $m=NULL, $d=NULL)
 getFirstDayOfWeek ($y=NULL, $m=NULL, $d=NULL)
 getHoursInDay ($y=null, $m=null, $d=null)
 getMinutesInHour ($y=null, $m=null, $d=null, $h=null)
 getSecondsInMinute ($y=null, $m=null, $d=null, $h=null, $i=null)

関数

dateToStamp ( y,
m,
d,
h,
i,
s 
)

Returns a timestamp. Can be worth "caching" generated timestamps in a static variable, identified by the params this method accepts, to timestamp will only be calculated once.

引数:
intyear (e.g. 2003)
intmonth (e.g. 9)
intday (e.g. 13)
inthour (e.g. 13)
intminute (e.g. 34)
intsecond (e.g. 53)
戻り値:
int (depends on implementation) protected
getDayOfWeek ( y,
m,
d 
)

Returns the number of the day of the week (0=sunday, 1=monday...)

引数:
intyear (2003)
intmonth (9)
intday (4)
戻り値:
int weekday number protected
getDaysInMonth ( y,
m 
)

Returns the number of days in a month, given year and month

引数:
intyear (e.g. 2003)
intmonth (e.g. 9)
戻り値:
int days in month protected
getDaysInWeek ( y = NULL,
m = NULL,
d = NULL 
)

Returns the number of days in a week

引数:
intyear (2003)
intmonth (9)
intday (4)
戻り値:
int (e.g. 7) protected
getFirstDayInMonth ( y,
m 
)

Returns numeric representation of the day of the week in a month, given year and month

引数:
intyear (e.g. 2003)
intmonth (e.g. 9)
戻り値:
int protected
getFirstDayOfWeek ( y = NULL,
m = NULL,
d = NULL 
)

Returns the default first day of the week as an integer. Must be a member of the array returned from getWeekDays

引数:
intyear (2003)
intmonth (9)
intday (4)
戻り値:
int (e.g. 1 for Monday)
参照:
getWeekDays protected
getHoursInDay ( y = null,
m = null,
d = null 
)

Returns the number of hours in a day

引数:
int(optional) day to get hours for
戻り値:
int (e.g. 24) protected

The upper limit on years that the Calendar Engine can work with

戻り値:
int (e.g. 2037) protected
getMinutesInHour ( y = null,
m = null,
d = null,
h = null 
)

Returns the number of minutes in an hour

引数:
int(optional) hour to get minutes for
戻り値:
int protected

The lower limit on years that the Calendar Engine can work with

戻り値:
int (e.g 1902) protected
getMonthsInYear ( y = null)

Returns the number of months in a year

引数:
int(optional) year to get months for
戻り値:
int (e.g. 12) protected
getSecondsInMinute ( y = null,
m = null,
d = null,
h = null,
i = null 
)

Returns the number of seconds in a minutes

引数:
int(optional) minute to get seconds for
戻り値:
int protected
getWeekDays ( y = NULL,
m = NULL,
d = NULL 
)

Returns the numeric values of the days of the week.

引数:
intyear (2003)
intmonth (9)
intday (4)
戻り値:
array list of numeric values of days in week, beginning 0 protected
getWeekNInMonth ( y,
m,
d,
firstDay = 1 
)

Returns the number of the week in the month, given a date

引数:
intyear (2003)
intmonth (9)
intday (4)
intfirst day of the week (default: 1 - monday)
戻り値:
int week number protected
getWeekNInYear ( y,
m,
d 
)

Returns the number of the week in the year (ISO-8601), given a date

引数:
intyear (2003)
intmonth (9)
intday (4)
戻り値:
int week number protected
getWeeksInMonth ( y,
m 
)

Returns the number of weeks in the month

引数:
intyear (2003)
intmonth (9)
intfirst day of the week (default: 1 - monday)
戻り値:
int weeks number protected
stampCollection ( stamp)

Provides a mechansim to make sure parsing of timestamps into human dates is only performed once per timestamp. Typically called "internally" by methods like stampToYear. Return value can vary, depending on the specific implementation

引数:
inttimestamp (depending on implementation)
戻り値:
mixed protected
stampToDay ( stamp)

Returns a numeric day given a timestamp

引数:
inttimestamp (depending on implementation)
戻り値:
int day (e.g. 15) protected
stampToHour ( stamp)

Returns a numeric hour given a timestamp

引数:
inttimestamp (depending on implementation)
戻り値:
int hour (e.g. 13) protected
stampToMinute ( stamp)

Returns a numeric minute given a timestamp

引数:
inttimestamp (depending on implementation)
戻り値:
int minute (e.g. 34) protected
stampToMonth ( stamp)

Returns a numeric month given a timestamp

引数:
inttimestamp (depending on implementation)
戻り値:
int month (e.g. 9) protected
stampToSecond ( stamp)

Returns a numeric second given a timestamp

引数:
inttimestamp (depending on implementation)
戻り値:
int second (e.g. 51) protected
stampToYear ( stamp)

Returns a numeric year given a timestamp

引数:
inttimestamp (depending on implementation)
戻り値:
int year (e.g. 2003) protected

このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数