Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/storage/HeraldRule.php
Show First 20 Lines • Show All 326 Lines • ▼ Show 20 Lines | /* -( PhabricatorSubscribableInterface )----------------------------------- */ | ||||
public function isAutomaticallySubscribed($phid) { | public function isAutomaticallySubscribed($phid) { | ||||
return $this->isPersonalRule() && $phid == $this->getAuthorPHID(); | return $this->isPersonalRule() && $phid == $this->getAuthorPHID(); | ||||
} | } | ||||
public function shouldShowSubscribersProperty() { | public function shouldShowSubscribersProperty() { | ||||
return true; | return true; | ||||
} | } | ||||
public function shouldAllowSubscription($phid) { | |||||
return true; | |||||
} | |||||
/* -( PhabricatorDestructibleInterface )----------------------------------- */ | /* -( PhabricatorDestructibleInterface )----------------------------------- */ | ||||
public function destroyObjectPermanently( | public function destroyObjectPermanently( | ||||
PhabricatorDestructionEngine $engine) { | PhabricatorDestructionEngine $engine) { | ||||
$this->openTransaction(); | $this->openTransaction(); | ||||
$this->delete(); | $this->delete(); | ||||
$this->saveTransaction(); | $this->saveTransaction(); | ||||
} | } | ||||
} | } |