Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113326831
PhabricatorFeedDetailController.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
Sat, May 17, 05:30
Size
1 KB
Mime Type
text/x-php
Expires
Mon, May 19, 05:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26221174
Attached To
rPH Phabricator
PhabricatorFeedDetailController.php
View Options
<?php
final
class
PhabricatorFeedDetailController
extends
PhabricatorFeedController
{
private
$id
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
id
=
$data
[
'id'
];
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$story
=
id
(
new
PhabricatorFeedQuery
())
->
setViewer
(
$user
)
->
withChronologicalKeys
(
array
(
$this
->
id
))
->
executeOne
();
if
(!
$story
)
{
return
new
Aphront404Response
();
}
$feed
=
array
(
$story
);
$builder
=
new
PhabricatorFeedBuilder
(
$feed
);
$builder
->
setUser
(
$user
);
$feed_view
=
$builder
->
buildView
();
$title
=
pht
(
'Story'
);
$feed_view
=
hsprintf
(
'<div class="phabricator-feed-frame">%s</div>'
,
$feed_view
);
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addCrumb
(
id
(
new
PhabricatorCrumbView
())
->
setName
(
$title
));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$feed_view
,
),
array
(
'title'
=>
$title
,
'device'
=>
true
,
'dust'
=>
true
,
));
}
}
Event Timeline
Log In to Comment