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 | implements | ||||
PhabricatorPolicyInterface, | PhabricatorPolicyInterface, | ||||
PhabricatorMarkupInterface, | PhabricatorMarkupInterface, | ||||
PhabricatorDestructibleInterface { | PhabricatorDestructibleInterface, | ||||
PhabricatorFulltextInterface { | |||||
protected $bookPHID; | protected $bookPHID; | ||||
protected $repositoryPHID; | protected $repositoryPHID; | ||||
protected $context; | protected $context; | ||||
protected $type; | protected $type; | ||||
protected $name; | protected $name; | ||||
protected $atomIndex; | protected $atomIndex; | ||||
protected $graphHash; | protected $graphHash; | ||||
▲ Show 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | $this->openTransaction(); | ||||
'DELETE FROM %T WHERE symbolPHID = %s', | 'DELETE FROM %T WHERE symbolPHID = %s', | ||||
id(new DivinerLiveAtom())->getTableName(), | id(new DivinerLiveAtom())->getTableName(), | ||||
$this->getPHID()); | $this->getPHID()); | ||||
$this->delete(); | $this->delete(); | ||||
$this->saveTransaction(); | $this->saveTransaction(); | ||||
} | } | ||||
/* -( PhabricatorFulltextInterface )--------------------------------------- */ | |||||
public function newFulltextEngine() { | |||||
if (!$this->getIsDocumentable()) { | |||||
return null; | |||||
} | |||||
return new DivinerLiveSymbolFulltextEngine(); | |||||
} | |||||
} | } |