Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98835721
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
Thu, Jan 16, 19:04
Size
984 B
Mime Type
text/x-php
Expires
Sat, Jan 18, 19:04 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
23653660
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