[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class ConpherenceThreadMailReceiver 4 extends PhabricatorObjectMailReceiver { 5 6 public function isEnabled() { 7 $app_class = 'PhabricatorConpherenceApplication'; 8 return PhabricatorApplication::isClassInstalled($app_class); 9 } 10 11 protected function getObjectPattern() { 12 return 'E[1-9]\d*'; 13 } 14 15 protected function loadObject($pattern, PhabricatorUser $viewer) { 16 $id = (int)trim($pattern, 'E'); 17 18 return id(new ConpherenceThreadQuery()) 19 ->setViewer($viewer) 20 ->withIDs(array($id)) 21 ->executeOne(); 22 } 23 24 protected function processReceivedObjectMail( 25 PhabricatorMetaMTAReceivedMail $mail, 26 PhabricatorLiskDAO $object, 27 PhabricatorUser $sender) { 28 29 $handler = id(new ConpherenceReplyHandler()) 30 ->setMailReceiver($object); 31 32 $handler->setActor($sender); 33 $handler->setExcludeMailRecipientPHIDs( 34 $mail->loadExcludeMailRecipientPHIDs()); 35 $handler->processEmail($mail); 36 } 37 38 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |