Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F19081924
PhabricatorPhamePostPHIDType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
969 B
Referenced Files
None
Subscribers
None
PhabricatorPhamePostPHIDType.php
View Options
<?php
final
class
PhabricatorPhamePostPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'POST'
;
public
function
getTypeName
()
{
return
pht
(
'Phame Post'
);
}
public
function
newObject
()
{
return
new
PhamePost
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorPhameApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhamePostQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$post
=
$objects
[
$phid
];
$handle
->
setName
(
$post
->
getTitle
());
$handle
->
setFullName
(
pht
(
'Blog Post: '
).
$post
->
getTitle
());
$handle
->
setURI
(
'/J'
.
$post
->
getID
());
if
(
$post
->
isArchived
())
{
$handle
->
setStatus
(
PhabricatorObjectHandle
::
STATUS_CLOSED
);
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Dec 4, 8:45 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8253755
Default Alt Text
PhabricatorPhamePostPHIDType.php (969 B)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment