Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/editor/PhortuneAccountEditor.php
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | final class PhortuneAccountEditor | ||||
protected function applyCustomInternalTransaction( | protected function applyCustomInternalTransaction( | ||||
PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
switch ($xaction->getTransactionType()) { | switch ($xaction->getTransactionType()) { | ||||
case PhortuneAccountTransaction::TYPE_NAME: | case PhortuneAccountTransaction::TYPE_NAME: | ||||
$object->setName($xaction->getNewValue()); | $object->setName($xaction->getNewValue()); | ||||
return; | return; | ||||
case PhabricatorTransactions::TYPE_EDGE: | |||||
return; | |||||
} | } | ||||
return parent::applyCustomInternalTransaction($object, $xaction); | return parent::applyCustomInternalTransaction($object, $xaction); | ||||
} | } | ||||
protected function applyCustomExternalTransaction( | protected function applyCustomExternalTransaction( | ||||
PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
switch ($xaction->getTransactionType()) { | switch ($xaction->getTransactionType()) { | ||||
case PhortuneAccountTransaction::TYPE_NAME: | case PhortuneAccountTransaction::TYPE_NAME: | ||||
return; | return; | ||||
case PhabricatorTransactions::TYPE_EDGE: | |||||
return; | |||||
} | } | ||||
return parent::applyCustomExternalTransaction($object, $xaction); | return parent::applyCustomExternalTransaction($object, $xaction); | ||||
} | } | ||||
protected function validateTransaction( | protected function validateTransaction( | ||||
PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
$type, | $type, | ||||
array $xactions) { | array $xactions) { | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |