Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/herald/PhrictionDocumentHeraldAdapter.php
Show First 20 Lines • Show All 42 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_EMAIL, | |||||
), | |||||
parent::getActions($rule_type)); | |||||
case HeraldRuleTypeConfig::RULE_TYPE_PERSONAL: | |||||
return array_merge( | |||||
array( | |||||
self::ACTION_EMAIL, | |||||
), | |||||
parent::getActions($rule_type)); | |||||
} | |||||
} | |||||
public function getHeraldName() { | public function getHeraldName() { | ||||
return pht('Wiki Document %d', $this->getDocument()->getID()); | return pht('Wiki Document %d', $this->getDocument()->getID()); | ||||
} | } | ||||
} | } |