Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98199118
PhabricatorAuthProviderConfigController.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
Fri, Jan 10, 23:39
Size
975 B
Mime Type
text/x-php
Expires
Sun, Jan 12, 23:39 (2 d)
Engine
blob
Format
Raw Data
Handle
23530057
Attached To
rPH Phabricator
PhabricatorAuthProviderConfigController.php
View Options
<?php
abstract
class
PhabricatorAuthProviderConfigController
extends
PhabricatorAuthController
{
public
function
shouldRequireAdmin
()
{
return
true
;
}
protected
function
buildSideNavView
(
$for_app
=
false
)
{
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
if
(
$for_app
)
{
$nav
->
addLabel
(
pht
(
'Create'
));
$nav
->
addFilter
(
''
,
pht
(
'Add Authentication Provider'
),
$this
->
getApplicationURI
(
'/config/new/'
));
}
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
(
$for_app
=
true
)->
getMenu
();
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Add Authentication Provider'
))
->
setHref
(
$this
->
getApplicationURI
(
'/config/new/'
))
->
setIcon
(
'create'
));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment