EC-CUBE
ネームスペース Calendar

説明

バージョン:
Id:
Calendar.php,v 1.3 2005/10/22 10:07:11 quipo Exp

Contains a factory method to return a Singleton instance of a class implementing the Calendar_Engine_Interface.
Note: this class must be modified to "register" alternative Calendar_Engines. The engine used can be controlled with the constant CALENDAR_ENGINE

参照:
Calendar_Engine_Interface

protected

Base class for Calendar API. This class should not be instantiated directly.

バージョン:
Id:
Day.php,v 1.1 2004/05/24 22:25:42 quipo Exp

Represents a Day and builds Hours. require_once 'Calendar'.DIRECTORY_SEPARATOR.'Day.php'; $Day = & new Calendar_Day(2003, 10, 21); // Oct 21st 2003 while ($Hour = & $Day->fetch()) { echo $Hour->thisHour().'
'; }

public

バージョン:
Id:
Textual.php,v 1.3 2004/08/16 13:02:44 hfuecks Exp

Load the Uri utility Decorator to help with fetching textual representations of months and days of the week. Note: for performance you should prefer Calendar_Util_Textual unless you have a specific need to use a decorator

public

バージョン:
Id:
Uri.php,v 1.3 2004/08/16 09:04:20 hfuecks Exp

Load the Uri utility Decorator to help with building HTML links for navigating the calendar
Note: for performance you should prefer Calendar_Util_Uri unless you have a specific need to use a decorator $Day = new Calendar_Day(2003, 10, 23); $Uri = & new Calendar_Decorator_Uri($Day); $Uri->setFragments('year', 'month', 'day'); echo $Uri->getPrev(); // Displays year=2003&month=10&day=22

参照:
Calendar_Util_Uri

public

バージョン:
Id:
Weekday.php,v 1.3 2004/08/16 12:25:15 hfuecks Exp

Load a Calendar_Day Decorator for fetching the day of the week $Day = new Calendar_Day(2003, 10, 23); $Weekday = & new Calendar_Decorator_Weekday($Day); $Weekday->setFirstDay(0); // Set first day of week to Sunday (default Mon) echo $Weekday->thisWeekDay(); // Displays 5 - fifth day of week relative to Sun

public

バージョン:
Id:
Wrapper.php,v 1.2 2005/11/03 20:35:03 quipo Exp

Decorator to help with wrapping built children in another decorator

public

バージョン:
Id:
Decorator.php,v 1.3 2005/10/22 10:29:46 quipo Exp

Decorates any calendar class. Create a subclass of this class for your own "decoration". Used for "selections" class DayDecorator extends Calendar_Decorator { function thisDay($format = 'int') { .* $day = parent::thisDay('timestamp'); .* return date('D', $day); } } $Day = & new Calendar_Day(2003, 10, 25); $DayDecorator = & new DayDecorator($Day); echo $DayDecorator->thisDay(); // Outputs "Sat"

バージョン:
Id:
Interface.php,v 1.5 2004/08/16 12:29:18 hfuecks Exp

The methods the classes implementing the Calendar_Engine must implement. Note this class is not used but simply to help development

protected

バージョン:
Id:
PearDate.php,v 1.8 2004/08/20 20:00:55 quipo Exp

Load PEAR::Date class Performs calendar calculations based on the PEAR::Date class Timestamps are in the ISO-8601 format (YYYY-MM-DD HH:MM:SS)

protected

バージョン:
Id:
UnixTS.php,v 1.9 2004/08/20 20:00:55 quipo Exp

Performs calendar calculations based on the PHP date() function and Unix timestamps (using PHP's mktime() function).

protected

バージョン:
Id:
Factory.php,v 1.3 2005/10/22 10:08:47 quipo Exp

Contains a factory method to return a Singleton instance of a class implementing the Calendar_Engine_Interface.
For Month objects, to control type of month returned, use CALENDAR_MONTH_STATE constact e.g.; require_once 'Calendar/Factory.php'; define ('CALENDAR_MONTH_STATE',CALENDAR_USE_MONTH_WEEKDAYS); // Use Calendar_Month_Weekdays // define ('CALENDAR_MONTH_STATE',CALENDAR_USE_MONTH_WEEKS); // Use Calendar_Month_Weeks // define ('CALENDAR_MONTH_STATE',CALENDAR_USE_MONTH); // Use Calendar_Month It defaults to building Calendar_Month objects.
Use the constract CALENDAR_FIRST_DAY_OF_WEEK to control the first day of the week for Month or Week objects (e.g. 0 = Sunday, 6 = Saturday)

protected

バージョン:
Id:
Hour.php,v 1.1 2004/05/24 22:25:42 quipo Exp

Represents an Hour and builds Minutes require_once 'Calendar'.DIRECTORY_SEPARATOR.'Hour.php'; $Hour = & new Calendar_Hour(2003, 10, 21, 15); // Oct 21st 2003, 3pm $Hour->build(); // Build Calendar_Minute objects while ($Minute = & $Hour->fetch()) { echo $Minute->thisMinute().'
'; }

public

バージョン:
Id:
Minute.php,v 1.1 2004/05/24 22:25:42 quipo Exp

Represents a Minute and builds Seconds require_once 'Calendar'.DIRECTORY_SEPARATOR.'Minute.php'; $Minute = & new Calendar_Minute(2003, 10, 21, 15, 31); // Oct 21st 2003, 3:31pm $Minute->build(); // Build Calendar_Second objects while ($Second = & $Minute->fetch()) { echo $Second->thisSecond().'
'; }

public

バージョン:
Id:
Weekdays.php,v 1.4 2005/10/22 10:28:49 quipo Exp

Load base month Represents a Month and builds Days in tabular form
require_once 'Calendar/Month/Weekdays.php'; $Month = & new Calendar_Month_Weekdays(2003, 10); // Oct 2003 $Month->build(); // Build Calendar_Day objects while ($Day = & $Month->fetch()) { if ($Day->isFirst()) { echo '

'; } if ($Day->isEmpty()) { echo '

 '; } else { echo '

'.$Day->thisDay().''; } if ($Day->isLast()) { echo ''; } }

public

バージョン:
Id:
Weeks.php,v 1.3 2005/10/22 10:28:49 quipo Exp

Load base month Represents a Month and builds Weeks require_once 'Calendar'.DIRECTORY_SEPARATOR.'Month'.DIRECTORY_SEPARATOR.'Weeks.php'; $Month = & new Calendar_Month_Weeks(2003, 10); // Oct 2003 $Month->build(); // Build Calendar_Day objects while ($Week = & $Month->fetch()) { echo $Week->thisWeek().'
'; }

public

バージョン:
Id:
Month.php,v 1.3 2005/10/22 10:10:26 quipo Exp

Represents a Month and builds Days require_once 'Calendar/Month.php'; $Month = & new Calendar_Month(2003, 10); // Oct 2003 $Month->build(); // Build Calendar_Day objects while ($Day = & $Month->fetch()) { echo $Day->thisDay().'
'; }

public

バージョン:
Id:
Second.php,v 1.1 2004/05/24 22:25:42 quipo Exp

Represents a Second
Note: Seconds do not build other objects so related methods are overridden to return NULL

バージョン:
Id:
Helper.php,v 1.5 2005/10/22 09:51:53 quipo Exp

Used by Calendar_Month_Weekdays, Calendar_Month_Weeks and Calendar_Week to help with building the calendar in tabular form

protected

バージョン:
Id:
Textual.php,v 1.2 2004/08/16 13:13:09 hfuecks Exp

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

public

バージョン:
Id:
Uri.php,v 1.1 2004/08/16 09:03:55 hfuecks Exp

Utility to help building HTML links for navigating the calendar
$Day = new Calendar_Day(2003, 10, 23); $Uri = & new Calendar_Util_Uri('year', 'month', 'day'); echo $Uri->prev($Day,'month'); // Displays year=2003&month=10 echo $Uri->prev($Day,'day'); // Displays year=2003&month=10&day=22 $Uri->seperator = '/'; $Uri->scalar = true; echo $Uri->prev($Day,'month'); // Displays 2003/10 echo $Uri->prev($Day,'day'); // Displays 2003/10/22

public

バージョン:
Id:
Validator.php,v 1.1 2004/05/24 22:25:42 quipo Exp

Validation Error Messages Used to validate any given Calendar date object. Instances of this class can be obtained from any data object using the getValidator method

参照:
Calendar::getValidator()

public

For Validation Error messages

参照:
Calendar::fetch()

public

バージョン:
Id:
Week.php,v 1.7 2005/10/22 10:26:49 quipo Exp

Represents a Week and builds Days in tabular format
require_once 'Calendar'.DIRECTORY_SEPARATOR.'Week.php'; $Week = & new Calendar_Week(2003, 10, 1); Oct 2003, 1st tabular week echo '

'; while ($Day = & $Week->fetch()) { if ($Day->isEmpty()) { echo '

 '; } else { echo '

'.$Day->thisDay().''; } } echo '';

public

バージョン:
Id:
Year.php,v 1.4 2005/10/22 10:25:39 quipo Exp

Represents a Year and builds Months
require_once 'Calendar'.DIRECTORY_SEPARATOR.'Year.php'; $Year = & new Calendar_Year(2003, 10, 21); // 21st Oct 2003 $Year->build(); // Build Calendar_Month objects while ($Month = & $Year->fetch()) { echo $Month->thisMonth().'
'; }

public

 全て データ構造 ネームスペース 関数 変数