Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80834706
DifferentialChangesetListController.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
Mon, Sep 2, 20:18
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Sep 4, 20:18 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20457798
Attached To
rPH Phabricator
DifferentialChangesetListController.php
View Options
<?php
final
class
DifferentialChangesetListController
extends
DifferentialController
{
private
$diff
;
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$diff
=
id
(
new
DifferentialDiffQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$request
->
getURIData
(
'id'
)))
->
executeOne
();
if
(!
$diff
)
{
return
new
Aphront404Response
();
}
$this
->
diff
=
$diff
;
return
id
(
new
DifferentialChangesetSearchEngine
())
->
setController
(
$this
)
->
setDiff
(
$diff
)
->
buildResponse
();
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$diff
=
$this
->
diff
;
if
(
$diff
)
{
$revision
=
$diff
->
getRevision
();
if
(
$revision
)
{
$crumbs
->
addTextCrumb
(
$revision
->
getMonogram
(),
$revision
->
getURI
());
}
$crumbs
->
addTextCrumb
(
pht
(
'Diff %d'
,
$diff
->
getID
()),
$diff
->
getURI
());
}
return
$crumbs
;
}
}
Event Timeline
Log In to Comment