Differential D10519 Diff 25284 src/applications/notification/storage/PhabricatorFeedStoryNotification.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/storage/PhabricatorFeedStoryNotification.php
<?php | <?php | ||||
final class PhabricatorFeedStoryNotification extends PhabricatorFeedDAO { | final class PhabricatorFeedStoryNotification extends PhabricatorFeedDAO { | ||||
protected $userPHID; | protected $userPHID; | ||||
protected $primaryObjectPHID; | protected $primaryObjectPHID; | ||||
protected $chronologicalKey; | protected $chronologicalKey; | ||||
protected $hasViewed; | protected $hasViewed; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_IDS => self::IDS_MANUAL, | self::CONFIG_IDS => self::IDS_MANUAL, | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'chronologicalKey' => 'uint64', | |||||
'hasViewed' => 'bool', | |||||
'id' => null, | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'PRIMARY' => null, | |||||
'userPHID' => array( | |||||
'columns' => array('userPHID', 'chronologicalKey'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
static public function updateObjectNotificationViews( | static public function updateObjectNotificationViews( | ||||
PhabricatorUser $user, | PhabricatorUser $user, | ||||
$object_phid) { | $object_phid) { | ||||
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); | $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); | ||||
Show All 33 Lines |