Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/storage/AlmanacService.php
<?php | <?php | ||||
final class AlmanacService | final class AlmanacService | ||||
extends AlmanacDAO | extends AlmanacDAO | ||||
implements | implements | ||||
PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
PhabricatorCustomFieldInterface, | PhabricatorCustomFieldInterface, | ||||
PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
PhabricatorProjectInterface, | PhabricatorProjectInterface, | ||||
AlmanacPropertyInterface, | AlmanacPropertyInterface, | ||||
PhabricatorDestructibleInterface { | PhabricatorDestructibleInterface, | ||||
PhabricatorNgramsInterface { | |||||
protected $name; | protected $name; | ||||
protected $nameIndex; | protected $nameIndex; | ||||
protected $mailKey; | protected $mailKey; | ||||
protected $viewPolicy; | protected $viewPolicy; | ||||
protected $editPolicy; | protected $editPolicy; | ||||
protected $serviceClass; | protected $serviceClass; | ||||
protected $isLocked; | protected $isLocked; | ||||
▲ Show 20 Lines • Show All 206 Lines • ▼ Show 20 Lines | $bindings = id(new AlmanacBindingQuery()) | ||||
->execute(); | ->execute(); | ||||
foreach ($bindings as $binding) { | foreach ($bindings as $binding) { | ||||
$engine->destroyObject($binding); | $engine->destroyObject($binding); | ||||
} | } | ||||
$this->delete(); | $this->delete(); | ||||
} | } | ||||
/* -( PhabricatorNgramInterface )------------------------------------------ */ | |||||
public function newNgrams() { | |||||
return array( | |||||
id(new AlmanacServiceNameNgrams()) | |||||
->setValue($this->getName()), | |||||
); | |||||
} | |||||
} | } |