Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F37955021
DiffusionLastModifiedController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
DiffusionLastModifiedController.php
View Options
<?php
final
class
DiffusionLastModifiedController
extends
DiffusionController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
processRequest
()
{
$drequest
=
$this
->
getDiffusionRequest
();
$request
=
$this
->
getRequest
();
$commit
=
null
;
$commit_data
=
null
;
$conduit_result
=
$this
->
callConduitWithDiffusionRequest
(
'diffusion.lastmodifiedquery'
,
array
(
'commit'
=>
$drequest
->
getCommit
(),
'path'
=>
$drequest
->
getPath
()
));
$c_dict
=
$conduit_result
[
'commit'
];
if
(
$c_dict
)
{
$commit
=
PhabricatorRepositoryCommit
::
newFromDictionary
(
$c_dict
);
}
$c_d_dict
=
$conduit_result
[
'commitData'
];
if
(
$c_d_dict
)
{
$commit_data
=
PhabricatorRepositoryCommitData
::
newFromDictionary
(
$c_d_dict
);
}
$phids
=
array
();
if
(
$commit_data
)
{
if
(
$commit_data
->
getCommitDetail
(
'authorPHID'
))
{
$phids
[
$commit_data
->
getCommitDetail
(
'authorPHID'
)]
=
true
;
}
if
(
$commit_data
->
getCommitDetail
(
'committerPHID'
))
{
$phids
[
$commit_data
->
getCommitDetail
(
'committerPHID'
)]
=
true
;
}
}
$phids
=
array_keys
(
$phids
);
$handles
=
$this
->
loadViewerHandles
(
$phids
);
$view
=
new
DiffusionBrowseTableView
();
$view
->
setUser
(
$request
->
getUser
());
$output
=
$view
->
renderLastModifiedColumns
(
$drequest
,
$handles
,
$commit
,
$commit_data
);
return
id
(
new
AphrontAjaxResponse
())
->
setContent
(
$output
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Mar 19, 6:07 PM (1 d, 15 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
17/1d/f3484cbf84a45660fe7c4ebba9a9
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment