示例#1
0
 /**
  * Create the necessary shims to emulate the ext/calendar package.
  *
  * @return void
  */
 public static function create()
 {
     self::$french_calendar = new FrenchCalendar();
     self::$gregorian_calendar = new GregorianCalendar();
     self::$jewish_calendar = new JewishCalendar(array(JewishCalendar::EMULATE_BUG_54254 => self::shouldEmulateBug54254()));
     self::$julian_calendar = new JulianCalendar();
 }
示例#2
0
文件: Shim.php 项目: Roeljj/webtrees
 /**
  * Create the necessary shims to emulate the ext/calendar package.
  *
  * @return void
  */
 public static function create()
 {
     self::$french_calendar = new FrenchCalendar();
     self::$gregorian_calendar = new GregorianCalendar();
     self::$jewish_calendar = new JewishCalendar(array(JewishCalendar::EMULATE_BUG_54254 => self::shouldEmulateBug54254()));
     self::$julian_calendar = new JulianCalendar();
     defined('CAL_NUM_CALS') || (require __DIR__ . '/shims.php');
 }