Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/herald/HeraldManiphestTaskAdapter.php
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | public function getActions($rule_type) { | ||||
switch ($rule_type) { | switch ($rule_type) { | ||||
case HeraldRuleTypeConfig::RULE_TYPE_GLOBAL: | case HeraldRuleTypeConfig::RULE_TYPE_GLOBAL: | ||||
return array_merge( | return array_merge( | ||||
array( | array( | ||||
self::ACTION_ADD_CC, | self::ACTION_ADD_CC, | ||||
self::ACTION_REMOVE_CC, | self::ACTION_REMOVE_CC, | ||||
self::ACTION_EMAIL, | self::ACTION_EMAIL, | ||||
self::ACTION_ASSIGN_TASK, | self::ACTION_ASSIGN_TASK, | ||||
self::ACTION_NOTHING, | |||||
), | ), | ||||
parent::getActions($rule_type)); | parent::getActions($rule_type)); | ||||
case HeraldRuleTypeConfig::RULE_TYPE_PERSONAL: | case HeraldRuleTypeConfig::RULE_TYPE_PERSONAL: | ||||
return array_merge( | return array_merge( | ||||
array( | array( | ||||
self::ACTION_ADD_CC, | self::ACTION_ADD_CC, | ||||
self::ACTION_REMOVE_CC, | self::ACTION_REMOVE_CC, | ||||
self::ACTION_EMAIL, | self::ACTION_EMAIL, | ||||
self::ACTION_FLAG, | self::ACTION_FLAG, | ||||
self::ACTION_ASSIGN_TASK, | self::ACTION_ASSIGN_TASK, | ||||
self::ACTION_NOTHING, | |||||
), | ), | ||||
parent::getActions($rule_type)); | parent::getActions($rule_type)); | ||||
} | } | ||||
} | } | ||||
public function getHeraldName() { | public function getHeraldName() { | ||||
return 'T'.$this->getTask()->getID(); | return 'T'.$this->getTask()->getID(); | ||||
} | } | ||||
Show All 26 Lines |