[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/pholio/mail/ -> PholioMockMailReceiver.php (source)

   1  <?php
   2  
   3  final class PholioMockMailReceiver extends PhabricatorObjectMailReceiver {
   4  
   5    public function isEnabled() {
   6      $app_class = 'PhabricatorPholioApplication';
   7      return PhabricatorApplication::isClassInstalled($app_class);
   8    }
   9  
  10    protected function getObjectPattern() {
  11      return 'M[1-9]\d*';
  12    }
  13  
  14    protected function loadObject($pattern, PhabricatorUser $viewer) {
  15      $id = (int)trim($pattern, 'M');
  16  
  17      return id(new PholioMockQuery())
  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  }


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