Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F546936
PhabricatorDifferentialApplication.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
PhabricatorDifferentialApplication.php
View Options
<?php
final
class
PhabricatorDifferentialApplication
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/differential/'
;
}
public
function
getName
()
{
return
pht
(
'Differential'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Pre-Commit Review'
);
}
public
function
getIcon
()
{
return
'fa-cog'
;
}
public
function
isPinnedByDefault
(
PhabricatorUser
$viewer
)
{
return
true
;
}
public
function
getHelpDocumentationArticles
(
PhabricatorUser
$viewer
)
{
return
array
(
array
(
'name'
=>
pht
(
'Differential User Guide'
),
'href'
=>
PhabricatorEnv
::
getDoclink
(
'Differential User Guide'
),
),
);
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
9A
\x
99"
;
}
public
function
getOverview
()
{
return
pht
(
'Differential is a **code review application** which allows '
.
'engineers to review, discuss and approve changes to software.'
);
}
public
function
getMonograms
()
{
return
array
(
'D'
);
}
public
function
getRoutes
()
{
return
array
(
'/D(?P<id>[1-9]
\d
*)'
=>
array
(
''
=>
'DifferentialRevisionViewController'
,
'/(?P<filter>new)/'
=>
'DifferentialRevisionViewController'
,
),
'/differential/'
=>
array
(
$this
->
getQueryRoutePattern
()
=>
'DifferentialRevisionListController'
,
'diff/'
=>
array
(
'(?P<id>[1-9]
\d
*)/'
=>
array
(
''
=>
'DifferentialDiffViewController'
,
'changesets/'
=>
array
(
$this
->
getQueryRoutePattern
()
=>
'DifferentialChangesetListController'
,
),
),
'create/'
=>
'DifferentialDiffCreateController'
,
),
'changeset/'
=>
'DifferentialChangesetViewController'
,
'revision/'
=>
array
(
$this
->
getEditRoutePattern
(
'edit/'
)
=>
'DifferentialRevisionEditController'
,
$this
->
getEditRoutePattern
(
'attach/(?P<diffID>[^/]+)/to/'
)
=>
'DifferentialRevisionEditController'
,
'closedetails/(?P<phid>[^/]+)/'
=>
'DifferentialRevisionCloseDetailsController'
,
'update/(?P<revisionID>[1-9]
\d
*)/'
=>
'DifferentialDiffCreateController'
,
'operation/(?P<id>[1-9]
\d
*)/'
=>
'DifferentialRevisionOperationController'
,
'inlines/(?P<id>[1-9]
\d
*)/'
=>
'DifferentialRevisionInlinesController'
,
'paths/(?P<id>[1-9]
\d
*)/'
=>
'DifferentialRevisionAffectedPathsController'
,
),
'comment/'
=>
array
(
'inline/'
=>
array
(
'edit/(?P<id>[1-9]
\d
*)/'
=>
'DifferentialInlineCommentEditController'
,
),
),
'preview/'
=>
'PhabricatorMarkupPreviewController'
,
),
);
}
public
function
getApplicationOrder
()
{
return
0.100
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
DifferentialRemarkupRule
(),
);
}
public
function
supportsEmailIntegration
()
{
return
true
;
}
public
function
getAppEmailBlurb
()
{
return
pht
(
'Send email to these addresses to create revisions. The body of the '
.
'message and / or one or more attachments should be the output of a '
.
'"diff" command. %s'
,
phutil_tag
(
'a'
,
array
(
'href'
=>
$this
->
getInboundEmailSupportLink
(),
),
pht
(
'Learn More'
)));
}
protected
function
getCustomCapabilities
()
{
return
array
(
DifferentialDefaultViewCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for newly created revisions.'
),
'template'
=>
DifferentialRevisionPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_VIEW
,
),
);
}
public
function
getMailCommandObjects
()
{
return
array
(
'revision'
=>
array
(
'name'
=>
pht
(
'Email Commands: Revisions'
),
'header'
=>
pht
(
'Interacting with Differential Revisions'
),
'object'
=>
new
DifferentialRevision
(),
'summary'
=>
pht
(
'This page documents the commands you can use to interact with '
.
'revisions in Differential.'
),
),
);
}
public
function
getApplicationSearchDocumentTypes
()
{
return
array
(
DifferentialRevisionPHIDType
::
TYPECONST
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:24 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
99095
Default Alt Text
PhabricatorDifferentialApplication.php (4 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment