Path: blob/master/src/applications/metamta/herald/PhabricatorMetaMTAEmailSelfHeraldAction.php
12256 views
<?php12final class PhabricatorMetaMTAEmailSelfHeraldAction3extends PhabricatorMetaMTAEmailHeraldAction {45const ACTIONCONST = 'email.self';67public function getHeraldActionName() {8return pht('Send me an email');9}1011public function supportsRuleType($rule_type) {12return ($rule_type == HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);13}1415public function applyEffect($object, HeraldEffect $effect) {16$phid = $effect->getRule()->getAuthorPHID();1718// For personal rules, we'll force delivery of a real email. This effect19// is stronger than notification preferences, so you get an actual email20// even if your preferences are set to "Notify" or "Ignore".2122return $this->applyEmail(array($phid), $force = true);23}2425public function getHeraldActionStandardType() {26return self::STANDARD_NONE;27}2829public function renderActionDescription($value) {30return pht('Send an email to rule author.');31}3233}343536