Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93538512
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, Nov 29, 13:46
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Dec 1, 13:46 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22648707
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
();
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
$title
);
$crumbs
->
setBorder
(
true
);
$nav
=
$this
->
buildSideNavView
();
$nav
->
selectFilter
(
'module/'
.
$key
.
'/'
);
$header
=
id
(
new
PHUIHeaderView
())
->
setHeader
(
$title
)
->
setProfileHeader
(
true
);
$content
=
id
(
new
PhabricatorConfigPageView
())
->
setHeader
(
$header
)
->
setContent
(
$content
);
return
$this
->
newPage
()
->
setTitle
(
$title
)
->
setCrumbs
(
$crumbs
)
->
setNavigation
(
$nav
)
->
appendChild
(
$content
)
->
addClass
(
'white-background'
);
}
}
Event Timeline
Log In to Comment