[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/releeph/mail/ -> ReleephRequestMailReceiver.php (source)

   1  <?php
   2  
   3  final class ReleephRequestMailReceiver extends PhabricatorObjectMailReceiver {
   4  
   5    public function isEnabled() {
   6      $app_class = 'PhabricatorReleephApplication';
   7      return PhabricatorApplication::isClassInstalled($app_class);
   8    }
   9  
  10    protected function getObjectPattern() {
  11      return 'RQ[1-9]\d*';
  12    }
  13  
  14    protected function loadObject($pattern, PhabricatorUser $viewer) {
  15      $id = (int)substr($pattern, 2);
  16  
  17      return id(new ReleephRequestQuery())
  18        ->setViewer($viewer)
  19        ->withIDs(array($id))
  20        ->executeOne();
  21    }
  22  
  23    protected function processReceivedObjectMail(
  24      PhabricatorMetaMTAReceivedMail $mail,
  25      PhabricatorLiskDAO $object,
  26      PhabricatorUser $sender) {
  27  
  28      // TODO: For now, we just drop this mail on the floor.
  29  
  30    }
  31  
  32  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1