Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890533
DrydockLeaseController.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
DrydockLeaseController.php
View Options
<?php
abstract
class
DrydockLeaseController
extends
DrydockController
{
private
$resource
;
public
function
setResource
(
$resource
)
{
$this
->
resource
=
$resource
;
return
$this
;
}
public
function
getResource
(
)
{
return
$this
->
resource
;
}
public
function
buildSideNavView
(
)
{
$nav
=
new
AphrontSideNavFilterView
(
)
;
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
(
)
)
)
;
$engine
=
id
(
new
DrydockLeaseSearchEngine
(
)
)
->
setViewer
(
$this
->
getRequest
(
)
->
getUser
(
)
)
;
if
(
$this
->
getResource
(
)
)
{
$engine
->
setResource
(
$this
->
getResource
(
)
)
;
}
$engine
->
addNavigationItems
(
$nav
->
getMenu
(
)
)
;
$nav
->
selectFilter
(
null
)
;
return
$nav
;
}
protected
function
buildApplicationCrumbs
(
)
{
$crumbs
=
parent
::
buildApplicationCrumbs
(
)
;
$resource
=
$this
->
getResource
(
)
;
if
(
$resource
)
{
$id
=
$resource
->
getID
(
)
;
$crumbs
->
addTextCrumb
(
pht
(
'Resources'
)
,
$this
->
getApplicationURI
(
'resource/'
)
)
;
$crumbs
->
addTextCrumb
(
$resource
->
getResourceName
(
)
,
$this
->
getApplicationURI
(
"resource/{$id}/"
)
)
;
$crumbs
->
addTextCrumb
(
pht
(
'Leases'
)
,
$this
->
getApplicationURI
(
"resource/{$id}/leases/"
)
)
;
}
else
{
$crumbs
->
addTextCrumb
(
pht
(
'Leases'
)
,
$this
->
getApplicationURI
(
'lease/'
)
)
;
}
return
$crumbs
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 13:44 (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125186
Default Alt Text
DrydockLeaseController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment