Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106901817
PhabricatorConfigRequestExceptionHandlerModule.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, Apr 2, 07:25
Size
939 B
Mime Type
text/x-php
Expires
Fri, Apr 4, 07:25 (2 d)
Engine
blob
Format
Raw Data
Handle
25277000
Attached To
rPH Phabricator
PhabricatorConfigRequestExceptionHandlerModule.php
View Options
<?php
final
class
PhabricatorConfigRequestExceptionHandlerModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'exception-handler'
;
}
public
function
getModuleName
()
{
return
pht
(
'Exception Handlers'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$handlers
=
AphrontRequestExceptionHandler
::
getAllHandlers
();
$rows
=
array
();
foreach
(
$handlers
as
$key
=>
$handler
)
{
$rows
[]
=
array
(
$handler
->
getRequestExceptionHandlerPriority
(),
$key
,
$handler
->
getRequestExceptionHandlerDescription
(),
);
}
return
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Priority'
),
pht
(
'Class'
),
pht
(
'Description'
),
))
->
setColumnClasses
(
array
(
null
,
'pri'
,
'wide'
,
));
}
}
Event Timeline
Log In to Comment