Page MenuHomePhorge

PhabricatorContentSourceModule.php
No OneTemporary

PhabricatorContentSourceModule.php

<?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(),
);
}
return id(new AphrontTableView($rows))
->setHeaders(
array(
pht('Key'),
pht('Class'),
pht('Source'),
pht('Description'),
))
->setColumnClasses(
array(
null,
null,
'pri',
'wide',
));
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Mar 27, 00:34 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1199855
Default Alt Text
PhabricatorContentSourceModule.php (979 B)

Event Timeline