Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101599103
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
Tue, Feb 11, 22:46
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Feb 13, 22:46 (2 d)
Engine
blob
Format
Raw Data
Handle
24197845
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