Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F435643
PhabricatorConfigModuleController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
856 B
Referenced Files
None
Subscribers
None
PhabricatorConfigModuleController.php
View Options
<?php
final
class
PhabricatorConfigModuleController
extends
PhabricatorConfigController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$key
=
$request
->
getURIData
(
'module'
);
$all_modules
=
PhabricatorConfigModule
::
getAllModules
();
if
(
empty
(
$all_modules
[
$key
]))
{
return
new
Aphront404Response
();
}
$module
=
$all_modules
[
$key
];
$content
=
$module
->
renderModuleStatus
(
$request
);
$name
=
$module
->
getModuleName
();
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
$name
);
$nav
=
$this
->
buildSideNavView
();
$nav
->
selectFilter
(
'module/'
.
$key
.
'/'
);
$nav
->
appendChild
(
array
(
$crumbs
,
$content
,
));
return
$this
->
buildApplicationPage
(
$nav
,
array
(
'title'
=>
$name
,
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 8:39 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
61493
Default Alt Text
PhabricatorConfigModuleController.php (856 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment