Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialDiff.php
Show First 20 Lines • Show All 415 Lines • ▼ Show 20 Lines | public function getAvailableBuildVariables() { | ||||
); | ); | ||||
} | } | ||||
/* -( PhabricatorApplicationTransactionInterface )------------------------- */ | /* -( PhabricatorApplicationTransactionInterface )------------------------- */ | ||||
public function getApplicationTransactionEditor() { | public function getApplicationTransactionEditor() { | ||||
if (!$this->getRevisionID()) { | |||||
return null; | return new DifferentialDiffEditor(); | ||||
} | |||||
return $this->getRevision()->getApplicationTransactionEditor(); | |||||
} | } | ||||
public function getApplicationTransactionObject() { | public function getApplicationTransactionObject() { | ||||
if (!$this->getRevisionID()) { | return $this; | ||||
return null; | |||||
} | |||||
return $this->getRevision(); | |||||
} | } | ||||
public function getApplicationTransactionTemplate() { | public function getApplicationTransactionTemplate() { | ||||
if (!$this->getRevisionID()) { | return new DifferentialDiffTransaction(); | ||||
return null; | |||||
} | |||||
return $this->getRevision()->getApplicationTransactionTemplate(); | |||||
} | } | ||||
/* -( PhabricatorDestructibleInterface )----------------------------------- */ | /* -( PhabricatorDestructibleInterface )----------------------------------- */ | ||||
public function destroyObjectPermanently( | public function destroyObjectPermanently( | ||||
PhabricatorDestructionEngine $engine) { | PhabricatorDestructionEngine $engine) { | ||||
Show All 19 Lines |