Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F436137
PhabricatorConfigPHIDModule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
987 B
Referenced Files
None
Subscribers
None
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'
))
->
appendChild
(
$table
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 10:23 PM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
61517
Default Alt Text
PhabricatorConfigPHIDModule.php (987 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment