Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/herald/HeraldPholioMockAdapter.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | final class HeraldPholioMockAdapter extends HeraldAdapter { | ||||
public function getActions($rule_type) { | 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_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_FLAG, | self::ACTION_FLAG, | ||||
self::ACTION_NOTHING, | |||||
), | ), | ||||
parent::getActions($rule_type)); | parent::getActions($rule_type)); | ||||
} | } | ||||
} | } | ||||
public function getHeraldName() { | public function getHeraldName() { | ||||
return 'M'.$this->getMock()->getID(); | return 'M'.$this->getMock()->getID(); | ||||
} | } | ||||
} | } |