Changeset View
Changeset View
Standalone View
Standalone View
src/applications/badges/storage/PhabricatorBadgesBadge.php
<?php | <?php | ||||
final class PhabricatorBadgesBadge extends PhabricatorBadgesDAO | final class PhabricatorBadgesBadge extends PhabricatorBadgesDAO | ||||
implements | implements | ||||
PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
PhabricatorSubscribableInterface, | PhabricatorSubscribableInterface, | ||||
PhabricatorTokenReceiverInterface, | |||||
PhabricatorFlaggableInterface, | PhabricatorFlaggableInterface, | ||||
PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
PhabricatorConduitResultInterface, | PhabricatorConduitResultInterface, | ||||
PhabricatorNgramsInterface { | PhabricatorNgramsInterface { | ||||
protected $name; | protected $name; | ||||
protected $flavor; | protected $flavor; | ||||
protected $description; | protected $description; | ||||
▲ Show 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | |||||
/* -( PhabricatorSubscribableInterface )----------------------------------- */ | /* -( PhabricatorSubscribableInterface )----------------------------------- */ | ||||
public function isAutomaticallySubscribed($phid) { | public function isAutomaticallySubscribed($phid) { | ||||
return ($this->creatorPHID == $phid); | return ($this->creatorPHID == $phid); | ||||
} | } | ||||
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */ | |||||
public function getUsersToNotifyOfTokenGiven() { | |||||
return array($this->getCreatorPHID()); | |||||
} | |||||
/* -( PhabricatorDestructibleInterface )----------------------------------- */ | /* -( PhabricatorDestructibleInterface )----------------------------------- */ | ||||
public function destroyObjectPermanently( | public function destroyObjectPermanently( | ||||
PhabricatorDestructionEngine $engine) { | PhabricatorDestructionEngine $engine) { | ||||
$awards = id(new PhabricatorBadgesAwardQuery()) | $awards = id(new PhabricatorBadgesAwardQuery()) | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |