Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/storage/PhabricatorCalendarHoliday.php
Show All 9 Lines | return array( | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'day' => 'date', | 'day' => 'date', | ||||
'name' => 'text64', | 'name' => 'text64', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'day' => array( | 'day' => array( | ||||
'columns' => array('day'), | 'columns' => array('day'), | ||||
'unique' => true, | |||||
), | ), | ||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public static function getNthBusinessDay($epoch, $n) { | public static function getNthBusinessDay($epoch, $n) { | ||||
// Sadly, there are not many holidays. So we can load all of them. | // Sadly, there are not many holidays. So we can load all of them. | ||||
$holidays = id(new PhabricatorCalendarHoliday())->loadAll(); | $holidays = id(new PhabricatorCalendarHoliday())->loadAll(); | ||||
Show All 16 Lines |