Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117187839
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
Thu, Jun 12, 02:01
Size
976 B
Mime Type
text/x-php
Expires
Sat, Jun 14, 02:01 (2 d)
Engine
blob
Format
Raw Data
Handle
26729647
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
->
setAppIcon
(
'calendar-dark'
);
$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
=
pht
(
'% supdated their status %s'
,
$author_name
,
$author_uri
);
return
$text
;
}
}
Event Timeline
Log In to Comment