Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890552
PhabricatorMetaMTAMailPHIDType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
887 B
Referenced Files
None
Subscribers
None
PhabricatorMetaMTAMailPHIDType.php
View Options
<?php
final
class
PhabricatorMetaMTAMailPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'MTAM'
;
public
function
getTypeName
(
)
{
return
pht
(
'MetaMTA Mail'
)
;
}
public
function
newObject
(
)
{
return
new
PhabricatorMetaMTAMail
(
)
;
}
public
function
getPHIDTypeApplicationClass
(
)
{
return
PhabricatorMetaMTAApplication
::
class
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorMetaMTAMailQuery
(
)
)
->
withPHIDs
(
$phids
)
;
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$mail
=
$objects
[
$phid
]
;
$id
=
$mail
->
getID
(
)
;
$name
=
pht
(
'Mail %d'
,
$id
)
;
$handle
->
setName
(
$name
)
->
setURI
(
'/mail/detail/'
.
$id
.
'/'
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 13:45 (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125197
Default Alt Text
PhabricatorMetaMTAMailPHIDType.php (887 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment