Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/storage/AlmanacNetwork.php
<?php | <?php | ||||
final class AlmanacNetwork | final class AlmanacNetwork | ||||
extends AlmanacDAO | extends AlmanacDAO | ||||
implements | implements | ||||
PhabricatorApplicationTransactionInterface, | PhabricatorApplicationTransactionInterface, | ||||
PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
PhabricatorDestructibleInterface { | PhabricatorDestructibleInterface, | ||||
PhabricatorNgramsInterface { | |||||
protected $name; | protected $name; | ||||
protected $mailKey; | protected $mailKey; | ||||
protected $viewPolicy; | protected $viewPolicy; | ||||
protected $editPolicy; | protected $editPolicy; | ||||
public static function initializeNewNetwork() { | public static function initializeNewNetwork() { | ||||
return id(new AlmanacNetwork()) | return id(new AlmanacNetwork()) | ||||
▲ Show 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | public function destroyObjectPermanently( | ||||
foreach ($interfaces as $interface) { | foreach ($interfaces as $interface) { | ||||
$engine->destroyObject($interface); | $engine->destroyObject($interface); | ||||
} | } | ||||
$this->delete(); | $this->delete(); | ||||
} | } | ||||
/* -( PhabricatorNgramInterface )------------------------------------------ */ | |||||
public function newNgrams() { | |||||
return array( | |||||
id(new AlmanacNetworkNameNgrams()) | |||||
->setValue($this->getName()), | |||||
); | |||||
} | |||||
} | } |