Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F431555
PhabricatorTokenGivenFeedStory.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
992 B
Referenced Files
None
Subscribers
None
PhabricatorTokenGivenFeedStory.php
View Options
<?php
final
class
PhabricatorTokenGivenFeedStory
extends
PhabricatorFeedStory
{
public
function
getPrimaryObjectPHID
()
{
return
$this
->
getValue
(
'objectPHID'
);
}
public
function
getRequiredHandlePHIDs
()
{
$phids
=
array
();
$phids
[]
=
$this
->
getValue
(
'objectPHID'
);
$phids
[]
=
$this
->
getValue
(
'authorPHID'
);
return
$phids
;
}
public
function
renderView
()
{
$view
=
new
PhabricatorFeedStoryView
();
$view
->
setViewed
(
$this
->
getHasViewed
());
$href
=
$this
->
getHandle
(
$this
->
getPrimaryObjectPHID
())->
getURI
();
$view
->
setHref
(
$href
);
$title
=
pht
(
'%s awarded %s a token.'
,
$this
->
linkTo
(
$this
->
getValue
(
'authorPHID'
)),
$this
->
linkTo
(
$this
->
getValue
(
'objectPHID'
)));
$view
->
setTitle
(
$title
);
$view
->
setOneLineStory
(
true
);
return
$view
;
}
public
function
renderText
()
{
// TODO: This is grotesque; the feed notification handler relies on it.
return
strip_tags
(
$this
->
renderView
()->
render
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 12:30 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
60722
Default Alt Text
PhabricatorTokenGivenFeedStory.php (992 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment