Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97214923
PhabricatorManiphestApplication.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, Jan 3, 12:46
Size
3 KB
Mime Type
text/x-php
Expires
Sun, Jan 5, 12:46 (2 d)
Engine
blob
Format
Raw Data
Handle
23356306
Attached To
rPH Phabricator
PhabricatorManiphestApplication.php
View Options
<?php
final
class
PhabricatorManiphestApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'Maniphest'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Tasks and Bugs'
);
}
public
function
getBaseURI
()
{
return
'/maniphest/'
;
}
public
function
getIcon
()
{
return
'fa-anchor'
;
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
9A
\x
93"
;
}
public
function
isPinnedByDefault
(
PhabricatorUser
$viewer
)
{
return
true
;
}
public
function
getApplicationOrder
()
{
return
0.110
;
}
public
function
getFactObjectsForAnalysis
()
{
return
array
(
new
ManiphestTask
(),
);
}
public
function
getRemarkupRules
()
{
return
array
(
new
ManiphestRemarkupRule
(),
);
}
public
function
getRoutes
()
{
return
array
(
'/T(?P<id>[1-9]
\d
*)'
=>
'ManiphestTaskDetailController'
,
'/maniphest/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'ManiphestTaskListController'
,
'report/(?:(?P<view>
\w
+)/)?'
=>
'ManiphestReportController'
,
'batch/'
=>
'ManiphestBatchEditController'
,
'task/'
=>
array
(
$this
->
getEditRoutePattern
(
'edit/'
)
=>
'ManiphestTaskEditController'
,
),
'export/(?P<key>[^/]+)/'
=>
'ManiphestExportController'
,
'subpriority/'
=>
'ManiphestSubpriorityController'
,
),
);
}
public
function
supportsEmailIntegration
()
{
return
true
;
}
public
function
getAppEmailBlurb
()
{
return
pht
(
'Send email to these addresses to create tasks. %s'
,
phutil_tag
(
'a'
,
array
(
'href'
=>
$this
->
getInboundEmailSupportLink
(),
),
pht
(
'Learn More'
)));
}
protected
function
getCustomCapabilities
()
{
return
array
(
ManiphestDefaultViewCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for newly created tasks.'
),
'template'
=>
ManiphestTaskPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_VIEW
,
),
ManiphestDefaultEditCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default edit policy for newly created tasks.'
),
'template'
=>
ManiphestTaskPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_EDIT
,
),
ManiphestEditStatusCapability
::
CAPABILITY
=>
array
(),
ManiphestEditAssignCapability
::
CAPABILITY
=>
array
(),
ManiphestEditPoliciesCapability
::
CAPABILITY
=>
array
(),
ManiphestEditPriorityCapability
::
CAPABILITY
=>
array
(),
ManiphestEditProjectsCapability
::
CAPABILITY
=>
array
(),
ManiphestBulkEditCapability
::
CAPABILITY
=>
array
(),
);
}
public
function
getMailCommandObjects
()
{
return
array
(
'task'
=>
array
(
'name'
=>
pht
(
'Email Commands: Tasks'
),
'header'
=>
pht
(
'Interacting with Maniphest Tasks'
),
'object'
=>
new
ManiphestTask
(),
'summary'
=>
pht
(
'This page documents the commands you can use to interact with '
.
'tasks in Maniphest. These commands work when creating new tasks '
.
'via email and when replying to existing tasks.'
),
),
);
}
public
function
getApplicationSearchDocumentTypes
()
{
return
array
(
ManiphestTaskPHIDType
::
TYPECONST
,
);
}
}
Event Timeline
Log In to Comment