Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93828485
PhabricatorGuideModuleController.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
Sun, Dec 1, 20:23
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Dec 3, 20:23 (2 d)
Engine
blob
Format
Raw Data
Handle
22711353
Attached To
rPH Phabricator
PhabricatorGuideModuleController.php
View Options
<?php
final
class
PhabricatorGuideModuleController
extends
PhabricatorGuideController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$key
=
$request
->
getURIData
(
'module'
);
$all_modules
=
PhabricatorGuideModule
::
getEnabledModules
();
if
(!
$key
)
{
$key
=
key
(
$all_modules
);
}
$nav
=
$this
->
buildSideNavView
();
$nav
->
selectFilter
(
$key
.
'/'
);
$module
=
$all_modules
[
$key
];
$content
=
$module
->
renderModuleStatus
(
$request
);
$title
=
$module
->
getModuleName
();
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
$title
);
$crumbs
->
setBorder
(
true
);
$header
=
id
(
new
PHUIHeaderView
())
->
setHeader
(
$title
)
->
setProfileHeader
(
true
);
$view
=
id
(
new
PHUICMSView
())
->
setCrumbs
(
$crumbs
)
->
setNavigation
(
$nav
)
->
setHeader
(
$header
)
->
setContent
(
$content
);
return
$this
->
newPage
()
->
setTitle
(
$title
)
->
addClass
(
'phui-cms-body'
)
->
appendChild
(
$view
);
}
}
Event Timeline
Log In to Comment