Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/storage/ManiphestTransaction.php
<?php | <?php | ||||
final class ManiphestTransaction | final class ManiphestTransaction | ||||
extends PhabricatorApplicationTransaction { | extends PhabricatorApplicationTransaction { | ||||
const TYPE_TITLE = 'title'; | const TYPE_TITLE = 'title'; | ||||
const TYPE_STATUS = 'status'; | const TYPE_STATUS = 'status'; | ||||
const TYPE_DESCRIPTION = 'description'; | const TYPE_DESCRIPTION = 'description'; | ||||
const TYPE_OWNER = 'reassign'; | const TYPE_OWNER = 'reassign'; | ||||
const TYPE_CCS = 'ccs'; | const TYPE_CCS = 'ccs'; | ||||
const TYPE_PROJECTS = 'projects'; | const TYPE_PROJECTS = 'projects'; | ||||
const TYPE_PRIORITY = 'priority'; | const TYPE_PRIORITY = 'priority'; | ||||
const TYPE_EDGE = 'edge'; | const TYPE_EDGE = 'edge'; | ||||
const TYPE_ATTACH = 'attach'; | const TYPE_ATTACH = 'attach'; | ||||
const TYPE_SUBPRIORITY = 'subpriority'; | |||||
public function getApplicationName() { | public function getApplicationName() { | ||||
return 'maniphest'; | return 'maniphest'; | ||||
} | } | ||||
public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
return ManiphestPHIDTypeTask::TYPECONST; | return ManiphestPHIDTypeTask::TYPECONST; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
case self::TYPE_DESCRIPTION: | case self::TYPE_DESCRIPTION: | ||||
case self::TYPE_PRIORITY: | case self::TYPE_PRIORITY: | ||||
if ($this->getOldValue() === null) { | if ($this->getOldValue() === null) { | ||||
return true; | return true; | ||||
} else { | } else { | ||||
return false; | return false; | ||||
} | } | ||||
break; | break; | ||||
case self::TYPE_SUBPRIORITY: | |||||
return true; | |||||
} | } | ||||
return false; | return false; | ||||
} | } | ||||
public function getActionStrength() { | public function getActionStrength() { | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case self::TYPE_STATUS: | case self::TYPE_STATUS: | ||||
▲ Show 20 Lines • Show All 574 Lines • Show Last 20 Lines |