Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96327407
PhabricatorContentSourceModule.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, Dec 25, 08:35
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Dec 27, 08:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23163632
Attached To
rPH Phabricator
PhabricatorContentSourceModule.php
View Options
<?php
final
class
PhabricatorContentSourceModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'contentsource'
;
}
public
function
getModuleName
()
{
return
pht
(
'Content Sources'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$sources
=
PhabricatorContentSource
::
getAllContentSources
();
ksort
(
$sources
);
$rows
=
array
();
foreach
(
$sources
as
$source
)
{
$rows
[]
=
array
(
$source
->
getSourceTypeConstant
(),
get_class
(
$source
),
$source
->
getSourceName
(),
$source
->
getSourceDescription
(),
);
}
$table
=
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Key'
),
pht
(
'Class'
),
pht
(
'Source'
),
pht
(
'Description'
),
))
->
setColumnClasses
(
array
(
null
,
null
,
'pri'
,
'wide'
,
));
return
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'Content Sources'
))
->
setTable
(
$table
);
}
}
Event Timeline
Log In to Comment