Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/herald/PhrictionDocumentHeraldAdapter.php
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | foreach ($effects as $effect) { | ||||
foreach ($effect->getTarget() as $phid) { | foreach ($effect->getTarget() as $phid) { | ||||
$this->ccPHIDs[] = $phid; | $this->ccPHIDs[] = $phid; | ||||
} | } | ||||
$result[] = new HeraldApplyTranscript( | $result[] = new HeraldApplyTranscript( | ||||
$effect, | $effect, | ||||
true, | true, | ||||
pht('Added address to cc list.')); | pht('Added address to cc list.')); | ||||
break; | break; | ||||
case self::ACTION_FLAG: | |||||
$result[] = parent::applyFlagEffect( | |||||
$effect, | |||||
$this->getDocument()->getPHID()); | |||||
break; | |||||
case self::ACTION_EMAIL: | |||||
$result[] = $this->applyEmailEffect($effect); | |||||
break; | |||||
default: | default: | ||||
$custom_result = parent::handleCustomHeraldEffect($effect); | $result[] = $this->applyStandardEffect($effect); | ||||
if ($custom_result === null) { | |||||
throw new Exception(pht( | |||||
"No rules to handle action '%s'.", | |||||
$action)); | |||||
} | |||||
$result[] = $custom_result; | |||||
break; | break; | ||||
} | } | ||||
} | } | ||||
return $result; | return $result; | ||||
} | } | ||||
} | } |