Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96801460
PhabricatorAuthSessionEngineExtensionModule.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
Mon, Dec 30, 23:32
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Jan 1, 23:32 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23212506
Attached To
rPH Phabricator
PhabricatorAuthSessionEngineExtensionModule.php
View Options
<?php
final
class
PhabricatorAuthSessionEngineExtensionModule
extends
PhabricatorConfigModule
{
public
function
getModuleKey
()
{
return
'sessionengine'
;
}
public
function
getModuleName
()
{
return
pht
(
'Engine: Session'
);
}
public
function
renderModuleStatus
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
();
$extensions
=
PhabricatorAuthSessionEngineExtension
::
getAllExtensions
();
$rows
=
array
();
foreach
(
$extensions
as
$extension
)
{
$rows
[]
=
array
(
get_class
(
$extension
),
$extension
->
getExtensionKey
(),
$extension
->
getExtensionName
(),
);
}
$table
=
id
(
new
AphrontTableView
(
$rows
))
->
setNoDataString
(
pht
(
'There are no registered session engine extensions.'
))
->
setHeaders
(
array
(
pht
(
'Class'
),
pht
(
'Key'
),
pht
(
'Name'
),
))
->
setColumnClasses
(
array
(
null
,
null
,
'wide pri'
,
));
return
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'SessionEngine Extensions'
))
->
setTable
(
$table
);
}
}
Event Timeline
Log In to Comment