Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92656877
PonderController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 22, 11:23
Size
750 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 11:23 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22479915
Attached To
rPH Phabricator
PonderController.php
View Options
<?php
abstract
class
PonderController
extends
PhabricatorController
{
protected
function
buildSideNavView
()
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
id
(
new
PonderQuestionSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
public
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Create Question'
))
->
setHref
(
'/ponder/question/edit/'
)
->
setIcon
(
'fa-plus-square'
));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment