Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/storage/PhabricatorDashboard.php
| Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Lines | /* -( PhabricatorPolicyInterface )----------------------------------------- */ | ||||
| } | } | ||||
| /* -( PhabricatorDestructibleInterface )----------------------------------- */ | /* -( PhabricatorDestructibleInterface )----------------------------------- */ | ||||
| public function destroyObjectPermanently( | public function destroyObjectPermanently( | ||||
| PhabricatorDestructionEngine $engine) { | PhabricatorDestructionEngine $engine) { | ||||
| $this->openTransaction(); | |||||
| $installs = id(new PhabricatorDashboardInstall())->loadAllWhere( | |||||
| 'dashboardPHID = %s', | |||||
| $this->getPHID()); | |||||
| foreach ($installs as $install) { | |||||
| $install->delete(); | |||||
| } | |||||
| $this->delete(); | $this->delete(); | ||||
| $this->saveTransaction(); | |||||
| } | } | ||||
| /* -( PhabricatorNgramInterface )------------------------------------------ */ | /* -( PhabricatorNgramInterface )------------------------------------------ */ | ||||
| public function newNgrams() { | public function newNgrams() { | ||||
| return array( | return array( | ||||
| Show All 12 Lines | |||||