Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F32914258
PhabricatorTimelineView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
779 B
Subscribers
None
PhabricatorTimelineView.php
View Options
<?php
final
class
PhabricatorTimelineView
extends
AphrontView
{
private
$events
=
array
();
public
function
addEvent
(
PhabricatorTimelineEventView
$event
)
{
$this
->
events
[]
=
$event
;
return
$this
;
}
public
function
render
()
{
require_celerity_resource
(
'phabricator-timeline-view-css'
);
$events
=
array
();
foreach
(
$this
->
events
as
$event
)
{
$events
[]
=
phutil_render_tag
(
'div'
,
array
(
'class'
=>
'phabricator-timeline-event-view '
.
'phabricator-timeline-spacer'
,
),
''
);
$events
[]
=
$this
->
renderSingleView
(
$event
);
}
return
phutil_render_tag
(
'div'
,
array
(
'class'
=>
'phabricator-timeline-view'
,
),
implode
(
''
,
$events
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 17, 9:26 PM (1 d, 16 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
54/3e/36c5c0f938a6880146f4be860907
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment