Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F111952087
DiffusionCommitTimelineEngine.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, May 6, 07:17
Size
704 B
Mime Type
text/x-php
Expires
Thu, May 8, 07:17 (2 d)
Engine
blob
Format
Raw Data
Handle
25986712
Attached To
rPH Phabricator
DiffusionCommitTimelineEngine.php
View Options
<?php
final
class
DiffusionCommitTimelineEngine
extends
PhabricatorTimelineEngine
{
protected
function
newTimelineView
()
{
$xactions
=
$this
->
getTransactions
();
$path_ids
=
array
();
foreach
(
$xactions
as
$xaction
)
{
if
(
$xaction
->
hasComment
())
{
$path_id
=
$xaction
->
getComment
()->
getPathID
();
if
(
$path_id
)
{
$path_ids
[]
=
$path_id
;
}
}
}
$path_map
=
array
();
if
(
$path_ids
)
{
$path_map
=
id
(
new
DiffusionPathQuery
())
->
withPathIDs
(
$path_ids
)
->
execute
();
$path_map
=
ipull
(
$path_map
,
'path'
,
'id'
);
}
return
id
(
new
PhabricatorAuditTransactionView
())
->
setPathMap
(
$path_map
);
}
}
Event Timeline
Log In to Comment