Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101856968
PhabricatorConfigModuleController.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, Feb 14, 10:53
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Feb 16, 10:53 (2 d)
Engine
blob
Format
Raw Data
Handle
24243086
Attached To
rPH Phabricator
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
);
$title
=
$module
->
getModuleName
();
$nav
=
$this
->
buildSideNavView
();
$nav
->
selectFilter
(
'module/'
.
$key
.
'/'
);
$header
=
$this
->
buildHeaderView
(
$title
);
$view
=
$this
->
buildConfigBoxView
(
$title
,
$content
);
$crumbs
=
$this
->
buildApplicationCrumbs
()
->
addTextCrumb
(
$title
)
->
setBorder
(
true
);
$content
=
id
(
new
PHUITwoColumnView
())
->
setHeader
(
$header
)
->
setNavigation
(
$nav
)
->
setFixed
(
true
)
->
setMainColumn
(
$view
);
return
$this
->
newPage
()
->
setTitle
(
$title
)
->
setCrumbs
(
$crumbs
)
->
appendChild
(
$content
);
}
}
Event Timeline
Log In to Comment