Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96992792
PhabricatorConfigPHIDModule.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 1, 10:30
Size
984 B
Mime Type
text/x-php
Expires
Fri, Jan 3, 10:30 (2 d)
Engine
blob
Format
Raw Data
Handle
23308320
Attached To
rPH Phabricator
PhabricatorConfigPHIDModule.php
View Options
<?php
final
class
PhabricatorConfigPHIDModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'phid'
;
}
public
function
getModuleName
()
{
return
pht
(
'PHID Types'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$types
=
PhabricatorPHIDType
::
getAllTypes
();
$types
=
msort
(
$types
,
'getTypeConstant'
);
$rows
=
array
();
foreach
(
$types
as
$key
=>
$type
)
{
$rows
[]
=
array
(
$type
->
getTypeConstant
(),
get_class
(
$type
),
$type
->
getTypeName
(),
);
}
$table
=
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Constant'
),
pht
(
'Class'
),
pht
(
'Name'
),
))
->
setColumnClasses
(
array
(
null
,
'pri'
,
'wide'
,
));
return
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'PHID Types'
))
->
setTable
(
$table
);
}
}
Event Timeline
Log In to Comment