Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122345296
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, Jul 17, 08:08
Size
926 B
Mime Type
text/x-php
Expires
Sat, Jul 19, 08:08 (2 d)
Engine
blob
Format
Raw Data
Handle
27262376
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
=
$this
->
newStoryView
();
$view
->
setAppIcon
(
'calendar-dark'
);
$view
->
setTitle
(
$this
->
linkTo
(
$author_phid
));
$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
(
'% updated their status %s'
,
$author_name
,
$author_uri
);
return
$text
;
}
}
Event Timeline
Log In to Comment