Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110211044
PhabricatorFeedStoryStatus.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
Fri, Apr 25, 05:04
Size
927 B
Mime Type
text/x-php
Expires
Sun, Apr 27, 05:04 (2 d)
Engine
blob
Format
Raw Data
Handle
25722501
Attached To
rPH Phabricator
PhabricatorFeedStoryStatus.php
View Options
<?php
final
class
PhabricatorFeedStoryStatus
extends
PhabricatorFeedStory
{
public
function
getPrimaryObjectPHID
()
{
return
$this
->
getAuthorPHID
();
}
public
function
renderView
()
{
$data
=
$this
->
getStoryData
();
$author_phid
=
$data
->
getAuthorPHID
();
$view
=
new
PhabricatorFeedStoryView
();
$view
->
setTitle
(
$this
->
linkTo
(
$author_phid
));
$view
->
setEpoch
(
$data
->
getEpoch
());
$view
->
setImage
(
$this
->
getHandle
(
$author_phid
)->
getImageURI
());
$content
=
$this
->
renderSummary
(
$data
->
getValue
(
'content'
),
$len
=
null
);
$view
->
appendChild
(
$content
);
return
$view
;
}
public
function
renderText
()
{
$author_handle
=
$this
->
getHandle
(
$this
->
getPrimaryObjectPHID
());
$author_name
=
$author_handle
->
getLinkName
();
$author_uri
=
PhabricatorEnv
::
getURI
(
$author_handle
->
getURI
());
$text
=
"{$author_name} updated their status {$author_url}"
;
return
$text
;
}
}
Event Timeline
Log In to Comment