Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F430267
PhabricatorConfigSiteModuleController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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'
)),
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 10:11 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
60169
Default Alt Text
PhabricatorConfigSiteModuleController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment