Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97240983
PhabricatorTimelineView.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
Fri, Jan 3, 17:41
Size
779 B
Mime Type
text/x-php
Expires
Sun, Jan 5, 17:41 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23362542
Attached To
rPH Phabricator
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
));
}
}
Event Timeline
Log In to Comment