Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/editor/PhameBlogEditor.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | final class PhameBlogEditor | ||||
protected function getCustomTransactionNewValue( | protected function getCustomTransactionNewValue( | ||||
PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
switch ($xaction->getTransactionType()) { | switch ($xaction->getTransactionType()) { | ||||
case PhameBlogTransaction::TYPE_NAME: | case PhameBlogTransaction::TYPE_NAME: | ||||
case PhameBlogTransaction::TYPE_DESCRIPTION: | case PhameBlogTransaction::TYPE_DESCRIPTION: | ||||
case PhameBlogTransaction::TYPE_DOMAIN: | |||||
case PhameBlogTransaction::TYPE_STATUS: | case PhameBlogTransaction::TYPE_STATUS: | ||||
return $xaction->getNewValue(); | return $xaction->getNewValue(); | ||||
case PhameBlogTransaction::TYPE_DOMAIN: | |||||
$domain = $xaction->getNewValue(); | |||||
if (!strlen($xaction->getNewValue())) { | |||||
return null; | |||||
} | |||||
return $domain; | |||||
} | } | ||||
} | } | ||||
protected function applyCustomInternalTransaction( | protected function applyCustomInternalTransaction( | ||||
PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
switch ($xaction->getTransactionType()) { | switch ($xaction->getTransactionType()) { | ||||
▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines |