static $map = array(
- 'hk' => 'http://www.1823.gov.hk/common/ical/gc/en.ics'
+ 'hk' => 'http://www.1823.gov.hk/common/ical/gc/en.ics',
+ 'cny' => 'https://raw.githubusercontent.com/andrewlkho/cny.ics/master/cny.ics', // CNY
);
DB_DAtaObject::debugLevel(1);
$d = DB_DataObject::factory('core_holiday');
$d->updateHolidays('hk');
-
+ $d->updateHolidays('cny');
}
function log($str)
if ( (is_numeric($v) && strlen($v) > 1 && substr($v,0,1) == '0' && substr($v,1,1) != '.' )
||
$dataFormat == 'string' ) {
+ //var_dump("Write ( {$r}, {$c} ) = " . $v);
$worksheet->writeString($start_row+$r, $c, $v, $format);
} else {
-
+ //var_dump("Write String ( {$r}, {$c} ) = " . $v);
$worksheet->write($start_row+$r, $c, $v, $format);
}