Path: blob/master/src/applications/metamta/engine/PhabricatorMailEngineExtension.php
12256 views
<?php12abstract class PhabricatorMailEngineExtension3extends Phobject {45private $viewer;6private $editor;78final public function getExtensionKey() {9return $this->getPhobjectClassConstant('EXTENSIONKEY');10}1112final public function setViewer($viewer) {13$this->viewer = $viewer;14return $this;15}1617final public function getViewer() {18return $this->viewer;19}2021final public function setEditor(22PhabricatorApplicationTransactionEditor $editor) {23$this->editor = $editor;24return $this;25}2627final public function getEditor() {28return $this->editor;29}3031abstract public function supportsObject($object);32abstract public function newMailStampTemplates($object);33abstract public function newMailStamps($object, array $xactions);3435final public static function getAllExtensions() {36return id(new PhutilClassMapQuery())37->setAncestorClass(__CLASS__)38->setUniqueMethod('getExtensionKey')39->execute();40}4142final protected function getMailStamp($key) {43return $this->getEditor()->getMailStamp($key);44}4546}474849