Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2992133
PhabricatorPhameBlogPHIDType.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
971 B
Referenced Files
None
Subscribers
None
PhabricatorPhameBlogPHIDType.php
View Options
<?php
final
class
PhabricatorPhameBlogPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'BLOG'
;
public
function
getTypeName
(
)
{
return
pht
(
'Phame Blog'
)
;
}
public
function
newObject
(
)
{
return
new
PhameBlog
(
)
;
}
public
function
getPHIDTypeApplicationClass
(
)
{
return
PhabricatorPhameApplication
::
class
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhameBlogQuery
(
)
)
->
withPHIDs
(
$phids
)
;
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$blog
=
$objects
[
$phid
]
;
$handle
->
setName
(
$blog
->
getName
(
)
)
;
$handle
->
setFullName
(
$blog
->
getName
(
)
)
;
$handle
->
setURI
(
'/phame/blog/view/'
.
$blog
->
getID
(
)
.
'/'
)
;
if
(
$blog
->
isArchived
(
)
)
{
$handle
->
setStatus
(
PhabricatorObjectHandle
::
STATUS_CLOSED
)
;
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Feb 23, 05:18 (1 d, 10 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1181178
Default Alt Text
PhabricatorPhameBlogPHIDType.php (971 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment