public function shouldGenerateOldValue() { switch ($this->getTransactionType()) { case self::TYPE_INTERFACE: return false; } return parent::shouldGenerateOldValue(); }
public function shouldGenerateOldValue() { switch ($this->getTransactionType()) { case self::TYPE_PROJECT_COLUMN: case self::TYPE_EDGE: case self::TYPE_UNBLOCK: return false; } return parent::shouldGenerateOldValue(); }
private function adjustTransactionValues(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction) { if ($xaction->shouldGenerateOldValue()) { $old = $this->getTransactionOldValue($object, $xaction); $xaction->setOldValue($old); } $new = $this->getTransactionNewValue($object, $xaction); $xaction->setNewValue($new); }