Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F955267
PhabricatorHelpApplication.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
PhabricatorHelpApplication.php
View Options
<?php
final
class
PhabricatorHelpApplication
extends
PhabricatorApplication
{
public
function
canUninstall
()
{
return
false
;
}
public
function
isUnlisted
()
{
return
true
;
}
public
function
getRoutes
()
{
return
array
(
'/help/'
=>
array
(
'keyboardshortcut/'
=>
'PhabricatorHelpKeyboardShortcutController'
,
'editorprotocol/'
=>
'PhabricatorHelpEditorProtocolController'
,
),
);
}
public
function
buildMainMenuItems
(
PhabricatorUser
$user
,
PhabricatorController
$controller
=
null
)
{
$items
=
array
();
$application
=
null
;
if
(
$controller
)
{
$application
=
$controller
->
getCurrentApplication
();
}
if
(
$application
&&
$application
->
getHelpURI
())
{
$help_name
=
pht
(
'%s Help'
,
$application
->
getName
());
$item
=
id
(
new
PHUIListItemView
())
->
setName
(
$help_name
)
->
addClass
(
'core-menu-item'
)
->
setIcon
(
'info-sm'
)
->
setAural
(
$help_name
)
->
setOrder
(
200
)
->
setHref
(
$application
->
getHelpURI
());
$items
[]
=
$item
;
}
return
$items
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 5:05 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
225945
Default Alt Text
PhabricatorHelpApplication.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment