Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96610755
PhabricatorConfigSiteModule.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
Sat, Dec 28, 21:29
Size
913 B
Mime Type
text/x-php
Expires
Mon, Dec 30, 21:29 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23215533
Attached To
rPH Phabricator
PhabricatorConfigSiteModule.php
View Options
<?php
final
class
PhabricatorConfigSiteModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'site'
;
}
public
function
getModuleName
()
{
return
pht
(
'Sites'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
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'
,
));
return
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'Sites'
))
->
setTable
(
$table
);
}
}
Event Timeline
Log In to Comment