Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/storage/PhabricatorCalendarEvent.php
Show All 37 Lines | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'dateFrom' => 'epoch', | 'dateFrom' => 'epoch', | ||||
'dateTo' => 'epoch', | 'dateTo' => 'epoch', | ||||
'status' => 'uint32', | 'status' => 'uint32', | ||||
'description' => 'text', | 'description' => 'text', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'userPHID_dateFrom' => array( | |||||
'columns' => array('userPHID', 'dateTo'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
PhabricatorCalendarEventPHIDType::TYPECONST); | PhabricatorCalendarEventPHIDType::TYPECONST); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |