Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/herald/HeraldPholioMockAdapter.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | switch ($rule_type) { | ||||
case HeraldRuleTypeConfig::RULE_TYPE_PERSONAL: | case HeraldRuleTypeConfig::RULE_TYPE_PERSONAL: | ||||
return true; | return true; | ||||
case HeraldRuleTypeConfig::RULE_TYPE_OBJECT: | case HeraldRuleTypeConfig::RULE_TYPE_OBJECT: | ||||
default: | default: | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
public function getActions($rule_type) { | |||||
switch ($rule_type) { | |||||
case HeraldRuleTypeConfig::RULE_TYPE_GLOBAL: | |||||
return array_merge( | |||||
array( | |||||
self::ACTION_ADD_CC, | |||||
self::ACTION_REMOVE_CC, | |||||
), | |||||
parent::getActions($rule_type)); | |||||
case HeraldRuleTypeConfig::RULE_TYPE_PERSONAL: | |||||
return array_merge( | |||||
array( | |||||
self::ACTION_ADD_CC, | |||||
self::ACTION_REMOVE_CC, | |||||
), | |||||
parent::getActions($rule_type)); | |||||
} | |||||
} | |||||
public function getHeraldName() { | public function getHeraldName() { | ||||
return 'M'.$this->getMock()->getID(); | return 'M'.$this->getMock()->getID(); | ||||
} | } | ||||
} | } |