Changeset View
Changeset View
Standalone View
Standalone View
src/applications/slowvote/storage/PhabricatorSlowvotePoll.php
<?php | <?php | ||||
final class PhabricatorSlowvotePoll extends PhabricatorSlowvoteDAO | final class PhabricatorSlowvotePoll extends PhabricatorSlowvoteDAO | ||||
implements | implements | ||||
PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
PhabricatorSubscribableInterface, | PhabricatorSubscribableInterface, | ||||
PhabricatorFlaggableInterface, | PhabricatorFlaggableInterface, | ||||
PhabricatorTokenReceiverInterface, | PhabricatorTokenReceiverInterface, | ||||
PhabricatorProjectInterface, | PhabricatorProjectInterface, | ||||
PhabricatorDestructibleInterface, | PhabricatorDestructibleInterface, | ||||
PhabricatorSpacesInterface { | PhabricatorSpacesInterface, | ||||
PhabricatorFerretInterface, | |||||
PhabricatorFulltextInterface { | |||||
const RESPONSES_VISIBLE = 0; | const RESPONSES_VISIBLE = 0; | ||||
const RESPONSES_VOTERS = 1; | const RESPONSES_VOTERS = 1; | ||||
const RESPONSES_OWNER = 2; | const RESPONSES_OWNER = 2; | ||||
const METHOD_PLURALITY = 0; | const METHOD_PLURALITY = 0; | ||||
const METHOD_APPROVAL = 1; | const METHOD_APPROVAL = 1; | ||||
▲ Show 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | $this->openTransaction(); | ||||
$this->getID()); | $this->getID()); | ||||
foreach ($options as $option) { | foreach ($options as $option) { | ||||
$option->delete(); | $option->delete(); | ||||
} | } | ||||
$this->delete(); | $this->delete(); | ||||
$this->saveTransaction(); | $this->saveTransaction(); | ||||
} | } | ||||
/* -( PhabricatorSpacesInterface )--------------------------------------- */ | /* -( PhabricatorSpacesInterface )----------------------------------------- */ | ||||
public function getSpacePHID() { | public function getSpacePHID() { | ||||
return $this->spacePHID; | return $this->spacePHID; | ||||
} | } | ||||
/* -( PhabricatorFerretInterface )----------------------------------------- */ | |||||
public function newFerretEngine() { | |||||
return new PhabricatorSlowvotePollFerretEngine(); | |||||
} | |||||
/* -( PhabricatorFulltextInterface )--------------------------------------- */ | |||||
public function newFulltextEngine() { | |||||
return new PhabricatorSlowvotePollFulltextEngine(); | |||||
} | |||||
} | } |