Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94927054
PhabricatorCalendarEventMailReceiver.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Dec 11, 11:25
Size
671 B
Mime Type
text/x-php
Expires
Fri, Dec 13, 11:25 (2 d)
Engine
blob
Format
Raw Data
Handle
22901196
Attached To
rPH Phabricator
PhabricatorCalendarEventMailReceiver.php
View Options
<?php
final
class
PhabricatorCalendarEventMailReceiver
extends
PhabricatorObjectMailReceiver
{
public
function
isEnabled
()
{
$app_class
=
'PhabricatorCalendarApplication'
;
return
PhabricatorApplication
::
isClassInstalled
(
$app_class
);
}
protected
function
getObjectPattern
()
{
return
'E[1-9]
\d
*'
;
}
protected
function
loadObject
(
$pattern
,
PhabricatorUser
$viewer
)
{
$id
=
(
int
)
trim
(
$pattern
,
'E'
);
return
id
(
new
PhabricatorCalendarEventQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
}
protected
function
getTransactionReplyHandler
()
{
return
new
PhabricatorCalendarReplyHandler
();
}
}
Event Timeline
Log In to Comment