Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102361907
PhabricatorPonderApplication.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
Wed, Feb 19, 22:11
Size
2 KB
Mime Type
text/x-php
Expires
Fri, Feb 21, 22:11 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24338726
Attached To
rPH Phabricator
PhabricatorPonderApplication.php
View Options
<?php
final
class
PhabricatorPonderApplication
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/ponder/'
;
}
public
function
getName
()
{
return
pht
(
'Ponder'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Questions and Answers'
);
}
public
function
getFontIcon
()
{
return
'fa-university'
;
}
public
function
getFactObjectsForAnalysis
()
{
return
array
(
new
PonderQuestion
(),
);
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
97
\x
B3"
;
}
public
function
loadStatus
(
PhabricatorUser
$user
)
{
// Replace with "x new unanswered questions" or some such
// make sure to use `self::formatStatusCount` and friends...!
$status
=
array
();
return
$status
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
PonderRemarkupRule
(),
);
}
public
function
isPrototype
()
{
return
true
;
}
public
function
getRoutes
()
{
return
array
(
'/Q(?P<id>[1-9]
\d
*)'
=>
'PonderQuestionViewController'
,
'/ponder/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PonderQuestionListController'
,
'answer/add/'
=>
'PonderAnswerSaveController'
,
'answer/edit/(?P<id>
\d
+)/'
=>
'PonderAnswerEditController'
,
'answer/comment/(?P<id>
\d
+)/'
=>
'PonderAnswerCommentController'
,
'answer/history/(?P<id>
\d
+)/'
=>
'PonderAnswerHistoryController'
,
'question/edit/(?:(?P<id>
\d
+)/)?'
=>
'PonderQuestionEditController'
,
'question/comment/(?P<id>
\d
+)/'
=>
'PonderQuestionCommentController'
,
'question/history/(?P<id>
\d
+)/'
=>
'PonderQuestionHistoryController'
,
'preview/'
=>
'PhabricatorMarkupPreviewController'
,
'question/(?P<status>open|close)/(?P<id>[1-9]
\d
*)/'
=>
'PonderQuestionStatusController'
,
'vote/'
=>
'PonderVoteSaveController'
,
),
);
}
public
function
getMailCommandObjects
()
{
return
array
(
'question'
=>
array
(
'name'
=>
pht
(
'Email Commands: Questions'
),
'header'
=>
pht
(
'Interacting with Ponder Questions'
),
'object'
=>
new
PonderQuestion
(),
'summary'
=>
pht
(
'This page documents the commands you can use to interact with '
.
'questions in Ponder.'
),
),
);
}
public
function
getApplicationSearchDocumentTypes
()
{
return
array
(
PonderQuestionPHIDType
::
TYPECONST
,
);
}
}
Event Timeline
Log In to Comment