Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97557874
PhabricatorAuthProviderController.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
Sun, Jan 5, 06:32
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Jan 7, 06:32 (2 d)
Engine
blob
Format
Raw Data
Handle
23339902
Attached To
rPH Phabricator
PhabricatorAuthProviderController.php
View Options
<?php
abstract
class
PhabricatorAuthProviderController
extends
PhabricatorAuthController
{
protected
function
newNavigation
()
{
$viewer
=
$this
->
getViewer
();
$nav
=
id
(
new
AphrontSideNavFilterView
())
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()))
->
setViewer
(
$viewer
);
$nav
->
addMenuItem
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Authentication'
))
->
setType
(
PHUIListItemView
::
TYPE_LABEL
));
$nav
->
addMenuItem
(
id
(
new
PHUIListItemView
())
->
setKey
(
'login'
)
->
setName
(
pht
(
'Login and Registration'
))
->
setType
(
PHUIListItemView
::
TYPE_LINK
)
->
setHref
(
$this
->
getApplicationURI
(
'/'
))
->
setIcon
(
'fa-key'
));
$nav
->
addMenuItem
(
id
(
new
PHUIListItemView
())
->
setKey
(
'mfa'
)
->
setName
(
pht
(
'Multi-Factor'
))
->
setType
(
PHUIListItemView
::
TYPE_LINK
)
->
setHref
(
$this
->
getApplicationURI
(
'mfa/'
))
->
setIcon
(
'fa-mobile'
));
$nav
->
addMenuItem
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Onboarding'
))
->
setType
(
PHUIListItemView
::
TYPE_LABEL
));
$nav
->
addMenuItem
(
id
(
new
PHUIListItemView
())
->
setKey
(
'message'
)
->
setName
(
pht
(
'Customize Messages'
))
->
setType
(
PHUIListItemView
::
TYPE_LINK
)
->
setHref
(
$this
->
getApplicationURI
(
'message/'
))
->
setIcon
(
'fa-commenting-o'
));
$nav
->
selectFilter
(
null
);
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
newNavigation
()->
getMenu
();
}
}
Event Timeline
Log In to Comment