Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F546991
PonderController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
889 B
Referenced Files
None
Subscribers
None
PonderController.php
View Options
<?php
abstract
class
PonderController
extends
PhabricatorController
{
protected
function
buildSideNavView
(
$for_app
=
false
)
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
if
(
$for_app
)
{
$nav
->
addFilter
(
'question/create/'
,
pht
(
'Ask Question'
));
}
id
(
new
PonderQuestionSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
(
$for_app
=
true
)->
getMenu
();
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
id
(
new
PonderQuestionEditEngine
())
->
setViewer
(
$this
->
getViewer
())
->
addActionToCrumbs
(
$crumbs
);
return
$crumbs
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:25 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122375
Default Alt Text
PonderController.php (889 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment