Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93157298
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, 15:48
Size
666 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 15:48 (2 d)
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