Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103257296
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
Fri, Feb 28, 14:59
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Mar 2, 14:59 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
24528442
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