Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F539018
PhabricatorApplicationTransactionShowOlderController.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
PhabricatorApplicationTransactionShowOlderController.php
View Options
<?php
final
class
PhabricatorApplicationTransactionShowOlderController
extends
PhabricatorApplicationTransactionController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$object
=
id
(
new
PhabricatorObjectQuery
())
->
withPHIDs
(
array
(
$request
->
getURIData
(
'phid'
)))
->
setViewer
(
$viewer
)
->
executeOne
();
if
(!
$object
)
{
return
new
Aphront404Response
();
}
if
(!
$object
instanceof
PhabricatorApplicationTransactionInterface
)
{
return
new
Aphront404Response
();
}
$query
=
PhabricatorApplicationTransactionQuery
::
newQueryForObject
(
$object
);
if
(!
$query
)
{
return
new
Aphront404Response
();
}
$raw_view_data
=
$request
->
getStr
(
'viewData'
);
try
{
$view_data
=
phutil_json_decode
(
$raw_view_data
);
}
catch
(
Exception
$ex
)
{
$view_data
=
array
();
}
$timeline
=
$this
->
buildTransactionTimeline
(
$object
,
$query
,
null
,
$view_data
);
$phui_timeline
=
$timeline
->
buildPHUITimelineView
(
$with_hiding
=
false
);
$phui_timeline
->
setShouldAddSpacers
(
false
);
$events
=
$phui_timeline
->
buildEvents
();
return
id
(
new
AphrontAjaxResponse
())
->
setContent
(
array
(
'timeline'
=>
hsprintf
(
'%s'
,
$events
),
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 9:01 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
120087
Default Alt Text
PhabricatorApplicationTransactionShowOlderController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment