Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93129998
PhabricatorProjectAddHeraldAction.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
Tue, Nov 26, 10:35
Size
666 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 10:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22578171
Attached To
rPH Phabricator
PhabricatorProjectAddHeraldAction.php
View Options
<?php
final
class
PhabricatorProjectAddHeraldAction
extends
PhabricatorProjectHeraldAction
{
const
ACTIONCONST
=
'projects.add'
;
public
function
getHeraldActionName
()
{
return
pht
(
'Add projects'
);
}
public
function
applyEffect
(
$object
,
HeraldEffect
$effect
)
{
return
$this
->
applyProjects
(
$effect
->
getTarget
(),
$is_add
=
true
);
}
public
function
getHeraldActionStandardType
()
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorProjectDatasource
();
}
public
function
renderActionDescription
(
$value
)
{
return
pht
(
'Add projects: %s.'
,
$this
->
renderHandleList
(
$value
));
}
}
Event Timeline
Log In to Comment