Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2354712
PhabricatorActionListView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorActionListView.php
View Options
<?php
final
class
PhabricatorActionListView
extends
AphrontView
{
private
$actions
=
array
();
private
$object
;
public
function
setObject
(
PhabricatorLiskDAO
$object
)
{
$this
->
object
=
$object
;
return
$this
;
}
public
function
addAction
(
PhabricatorActionView
$view
)
{
$this
->
actions
[]
=
$view
;
return
$this
;
}
public
function
render
()
{
if
(!
$this
->
user
)
{
throw
new
Exception
(
"Call setUser() before render()!"
);
}
$event
=
new
PhabricatorEvent
(
PhabricatorEventType
::
TYPE_UI_DIDRENDERACTIONS
,
array
(
'object'
=>
$this
->
object
,
'actions'
=>
$this
->
actions
,
));
$event
->
setUser
(
$this
->
user
);
PhutilEventEngine
::
dispatchEvent
(
$event
);
$actions
=
$event
->
getValue
(
'actions'
);
if
(!
$actions
)
{
return
null
;
}
require_celerity_resource
(
'phabricator-action-list-view-css'
);
return
phutil_tag
(
'ul'
,
array
(
'class'
=>
'phabricator-action-list-view'
,
),
$this
->
renderHTMLView
(
$actions
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 1:27 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
418655
Default Alt Text
PhabricatorActionListView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment