Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/storage/PhabricatorMetaMTAMail.php
| <?php | <?php | ||||
| /** | /** | ||||
| * @task recipients Managing Recipients | * @task recipients Managing Recipients | ||||
| */ | */ | ||||
| final class PhabricatorMetaMTAMail | final class PhabricatorMetaMTAMail | ||||
| extends PhabricatorMetaMTADAO | extends PhabricatorMetaMTADAO | ||||
| implements PhabricatorPolicyInterface { | implements PhabricatorPolicyInterface { | ||||
| const RETRY_DELAY = 5; | const RETRY_DELAY = 5; | ||||
| protected $actorPHID; | protected $actorPHID; | ||||
| protected $parameters; | protected $parameters = array(); | ||||
| protected $status; | protected $status; | ||||
| protected $message; | protected $message; | ||||
| protected $relatedPHID; | protected $relatedPHID; | ||||
| private $recipientExpansionMap; | private $recipientExpansionMap; | ||||
| private $routingMap; | private $routingMap; | ||||
| public function __construct() { | public function __construct() { | ||||
| ▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | final class PhabricatorMetaMTAMail | ||||
| } | } | ||||
| protected function setParam($param, $value) { | protected function setParam($param, $value) { | ||||
| $this->parameters[$param] = $value; | $this->parameters[$param] = $value; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| protected function getParam($param, $default = null) { | protected function getParam($param, $default = null) { | ||||
| // Some old mail was saved without parameters because no parameters were | |||||
| // set or encoding failed. Recover in these cases so we can perform | |||||
| // mail migrations, see T9251. | |||||
| if (!is_array($this->parameters)) { | |||||
| $this->parameters = array(); | |||||
| } | |||||
| return idx($this->parameters, $param, $default); | return idx($this->parameters, $param, $default); | ||||
| } | } | ||||
| /** | /** | ||||
| * These tags are used to allow users to opt out of receiving certain types | * These tags are used to allow users to opt out of receiving certain types | ||||
| * of mail, like updates when a task's projects change. | * of mail, like updates when a task's projects change. | ||||
| * | * | ||||
| * @param list<const> | * @param list<const> | ||||
| ▲ Show 20 Lines • Show All 1,110 Lines • Show Last 20 Lines | |||||