Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92727845
PhabricatorApplicationDiviner.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
Sat, Nov 23, 04:54
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Nov 25, 04:54 (2 d)
Engine
blob
Format
Raw Data
Handle
22498544
Attached To
rPH Phabricator
PhabricatorApplicationDiviner.php
View Options
<?php
final
class
PhabricatorApplicationDiviner
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/diviner/'
;
}
public
function
getIconName
()
{
return
'diviner'
;
}
public
function
getShortDescription
()
{
return
pht
(
'Documentation'
);
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
97
\x
89"
;
}
public
function
getRoutes
()
{
return
array
(
'/diviner/'
=>
array
(
''
=>
'DivinerLegacyController'
,
'query/((?<key>[^/]+)/)?'
=>
'DivinerAtomListController'
,
'find/'
=>
'DivinerFindController'
,
),
'/docs/(?P<keyword>[^/]+)/'
=>
'DivinerJumpController'
,
'/book/(?P<book>[^/]+)/'
=>
'DivinerBookController'
,
'/book/'
.
'(?P<book>[^/]+)/'
.
'(?P<type>[^/]+)/'
.
'(?:(?P<context>[^/]+)/)?'
.
'(?P<name>[^/]+)/'
.
'(?:(?P<index>
\d
+)/)?'
=>
'DivinerAtomController'
,
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_COMMUNICATION
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
DivinerRemarkupRuleSymbol
(),
);
}
public
function
buildMainMenuItems
(
PhabricatorUser
$user
,
PhabricatorController
$controller
=
null
)
{
$items
=
array
();
$application
=
null
;
if
(
$controller
)
{
$application
=
$controller
->
getCurrentApplication
();
}
if
(
$application
&&
$application
->
getHelpURI
())
{
$item
=
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'%s Help'
,
$application
->
getName
()))
->
addClass
(
'core-menu-item'
)
->
setIcon
(
'info-sm'
)
->
setOrder
(
200
)
->
setHref
(
$application
->
getHelpURI
());
$items
[]
=
$item
;
}
return
$items
;
}
}
Event Timeline
Log In to Comment