Page MenuHomePhorge

PhabricatorPhurlURLMailReceiver.php
No OneTemporary

Size
636 B
Referenced Files
None
Subscribers
None

PhabricatorPhurlURLMailReceiver.php

<?php
final class PhabricatorPhurlURLMailReceiver
extends PhabricatorObjectMailReceiver {
public function isEnabled() {
return PhabricatorApplication::isClassInstalled(
'PhabricatorPhurlApplication');
}
protected function getObjectPattern() {
return 'U[1-9]\d*';
}
protected function loadObject($pattern, PhabricatorUser $viewer) {
$id = (int)substr($pattern, 1);
return id(new PhabricatorPhurlURLQuery())
->setViewer($viewer)
->withIDs(array($id))
->executeOne();
}
protected function getTransactionReplyHandler() {
return new PhabricatorPhurlURLReplyHandler();
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, May 12, 1:00 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
121653
Default Alt Text
PhabricatorPhurlURLMailReceiver.php (636 B)

Event Timeline