Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96994204
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, Jan 1, 10:53
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jan 3, 10:53 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23308298
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
(),
);
}
$table
=
id
(
new
AphrontTableView
(
$rows
))
->
setHeaders
(
array
(
pht
(
'Priority'
),
pht
(
'Class'
),
pht
(
'Description'
),
))
->
setColumnClasses
(
array
(
null
,
'pri'
,
'wide'
,
));
return
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'Exception Handlers'
))
->
setTable
(
$table
);
}
}
Event Timeline
Log In to Comment