Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F426954
DifferentialChangesetListController.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
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 3:38 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
58520
Default Alt Text
DifferentialChangesetListController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment