Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893048
FundBackerListController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
FundBackerListController.php
View Options
<?php
final
class
FundBackerListController
extends
FundController
{
private
$initiative
;
public
function
shouldAllowPublic
(
)
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
(
)
;
$id
=
$request
->
getURIData
(
'id'
)
;
$querykey
=
$request
->
getURIData
(
'queryKey'
)
;
if
(
$id
)
{
$this
->
initiative
=
id
(
new
FundInitiativeQuery
(
)
)
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
)
)
->
executeOne
(
)
;
if
(
!
$this
->
initiative
)
{
return
new
Aphront404Response
(
)
;
}
}
$controller
=
id
(
new
PhabricatorApplicationSearchController
(
)
)
->
setQueryKey
(
$querykey
)
->
setSearchEngine
(
$this
->
getEngine
(
)
)
->
setNavigation
(
$this
->
buildSideNavView
(
)
)
;
return
$this
->
delegateToController
(
$controller
)
;
}
public
function
buildSideNavView
(
)
{
$user
=
$this
->
getRequest
(
)
->
getUser
(
)
;
$nav
=
new
AphrontSideNavFilterView
(
)
;
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
(
)
)
)
;
$this
->
getEngine
(
)
->
addNavigationItems
(
$nav
->
getMenu
(
)
)
;
$nav
->
selectFilter
(
null
)
;
return
$nav
;
}
protected
function
buildApplicationCrumbs
(
)
{
$crumbs
=
parent
::
buildApplicationCrumbs
(
)
;
$crumbs
->
addTextCrumb
(
pht
(
'Backers'
)
,
$this
->
getApplicationURI
(
'backers/'
)
)
;
if
(
$this
->
initiative
)
{
$crumbs
->
addTextCrumb
(
$this
->
initiative
->
getMonogram
(
)
,
'/'
.
$this
->
initiative
->
getMonogram
(
)
)
;
}
return
$crumbs
;
}
private
function
getEngine
(
)
{
$viewer
=
$this
->
getViewer
(
)
;
$engine
=
id
(
new
FundBackerSearchEngine
(
)
)
->
setViewer
(
$viewer
)
;
if
(
$this
->
initiative
)
{
$engine
->
setInitiative
(
$this
->
initiative
)
;
}
return
$engine
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 17:46 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127109
Default Alt Text
FundBackerListController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment