Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/storage/DivinerLiveSymbol.php
<?php | <?php | ||||
final class DivinerLiveSymbol extends DivinerDAO | final class DivinerLiveSymbol extends DivinerDAO | ||||
implements PhabricatorPolicyInterface, PhabricatorMarkupInterface { | implements | ||||
PhabricatorPolicyInterface, | |||||
PhabricatorMarkupInterface, | |||||
PhabricatorDestructibleInterface { | |||||
protected $bookPHID; | protected $bookPHID; | ||||
protected $context; | protected $context; | ||||
protected $type; | protected $type; | ||||
protected $name; | protected $name; | ||||
protected $atomIndex; | protected $atomIndex; | ||||
protected $graphHash; | protected $graphHash; | ||||
protected $identityHash; | protected $identityHash; | ||||
▲ Show 20 Lines • Show All 224 Lines • ▼ Show 20 Lines | public function didMarkupText( | ||||
return $output; | return $output; | ||||
} | } | ||||
public function shouldUseMarkupCache($field) { | public function shouldUseMarkupCache($field) { | ||||
return true; | return true; | ||||
} | } | ||||
/* -( PhabricatorDestructibleInterface )----------------------------------- */ | |||||
public function destroyObjectPermanently( | |||||
PhabricatorDestructionEngine $engine) { | |||||
$this->openTransaction(); | |||||
$conn_w = $this->establishConnection('w'); | |||||
queryfx( | |||||
$conn_w, | |||||
'DELETE FROM %T WHERE symbolPHID = %s', | |||||
id(new DivinerLiveAtom())->getTableName(), | |||||
$this->getPHID()); | |||||
$this->delete(); | |||||
$this->saveTransaction(); | |||||
} | |||||
} | } |