Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100247610
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
Wed, Jan 29, 08:49
Size
913 B
Mime Type
text/x-php
Expires
Fri, Jan 31, 08:49 (2 d)
Engine
blob
Format
Raw Data
Handle
23930034
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