Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2363170
ReleephController.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
ReleephController.php
View Options
<?php
abstract
class
ReleephController
extends
PhabricatorController
{
public
function
buildStandardPageResponse
(
$view
,
array
$data
)
{
$page
=
$this
->
buildStandardPageView
();
$page
->
setApplicationName
(
pht
(
'Releeph'
));
$page
->
setBaseURI
(
'/releeph/'
);
$page
->
setTitle
(
idx
(
$data
,
'title'
));
$page
->
setGlyph
(
"
\x
D3
\x
82"
);
$page
->
appendChild
(
$view
);
$response
=
new
AphrontWebpageResponse
();
return
$response
->
setContent
(
$page
->
render
());
}
public
function
buildSideNavView
(
$for_app
=
false
)
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
if
(
$for_app
)
{
$nav
->
addFilter
(
'project/create/'
,
pht
(
'Create Product'
));
}
id
(
new
ReleephProductSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
protected
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
(
true
)->
getMenu
();
}
protected
function
getProductViewURI
(
ReleephProject
$product
)
{
return
$this
->
getApplicationURI
(
'project/'
.
$product
->
getID
().
'/'
);
}
protected
function
getBranchViewURI
(
ReleephBranch
$branch
)
{
return
$this
->
getApplicationURI
(
'branch/'
.
$branch
->
getID
().
'/'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 4:55 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
439745
Default Alt Text
ReleephController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment