Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F36622918
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
Thu, Feb 26, 6:27 PM (11 h, 41 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3d/d4/ec09022e56330ca2f626c083997e
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment