Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F971768
PonderController.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
PonderController.php
View Options
<?php
abstract
class
PonderController
extends
PhabricatorController
{
public
function
buildStandardPageResponse
(
$view
,
array
$data
)
{
$page
=
$this
->
buildStandardPageView
();
$page
->
setApplicationName
(
'Ponder!'
);
$page
->
setBaseURI
(
'/ponder/'
);
$page
->
setTitle
(
idx
(
$data
,
'title'
));
$page
->
setGlyph
(
"
\x
E2
\x
97
\x
B3"
);
$page
->
appendChild
(
$view
);
$page
->
setSearchDefaultScope
(
PhabricatorSearchScope
::
SCOPE_QUESTIONS
);
$response
=
new
AphrontWebpageResponse
();
return
$response
->
setContent
(
$page
->
render
());
}
protected
function
buildSideNavView
(
PonderQuestion
$question
=
null
)
{
$side_nav
=
new
AphrontSideNavFilterView
();
$side_nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
if
(
$question
&&
$question
->
getID
())
{
$side_nav
->
addFilter
(
null
,
'Q'
.
$question
->
getID
(),
'Q'
.
$question
->
getID
());
}
$side_nav
->
addLabel
(
'Create'
);
$side_nav
->
addFilter
(
'question/ask'
,
'Ask a Question'
);
$side_nav
->
addLabel
(
'Questions'
);
$side_nav
->
addFilter
(
'feed'
,
'All Questions'
);
$side_nav
->
addLabel
(
'User'
);
$side_nav
->
addFilter
(
'questions'
,
'Your Questions'
);
$side_nav
->
addFilter
(
'answers'
,
'Your Answers'
);
return
$side_nav
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 5:55 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
229236
Default Alt Text
PonderController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment