Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93923089
PhabricatorConfigSiteModuleController.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
Mon, Dec 2, 13:17
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Dec 4, 13:17 (2 d)
Engine
blob
Format
Raw Data
Handle
22721309
Attached To
rPH Phabricator
PhabricatorConfigSiteModuleController.php
View Options
<?php
final
class
PhabricatorConfigSiteModuleController
extends
PhabricatorConfigController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$sites
=
AphrontSite
::
getAllSites
();
$rows
=
array
();
foreach
(
$sites
as
$key
=>
$site
)
{
$rows
[]
=
array
(
$site
->
getPriority
(),
$key
,
$site
->
getDescription
(),
);
}
$table
=
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Priority'
),
pht
(
'Class'
),
pht
(
'Description'
),
))
->
setColumnClasses
(
array
(
null
,
'pri'
,
'wide'
,
));
$box
=
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'Site Modules'
))
->
appendChild
(
$table
);
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
pht
(
'Site Modules'
));
$nav
=
$this
->
buildSideNavView
();
$nav
->
selectFilter
(
'module/sites/'
);
$nav
->
appendChild
(
array
(
$crumbs
,
$box
,
));
return
$this
->
buildApplicationPage
(
$nav
,
array
(
'title'
=>
array
(
pht
(
'Site Modules'
)),
));
}
}
Event Timeline
Log In to Comment