Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122066802
PhabricatorApplicationAuth.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
Tue, Jul 15, 14:03
Size
667 B
Mime Type
text/x-php
Expires
Thu, Jul 17, 14:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27357229
Attached To
rPH Phabricator
PhabricatorApplicationAuth.php
View Options
<?php
final
class
PhabricatorApplicationAuth
extends
PhabricatorApplication
{
public
function
shouldAppearInLaunchView
()
{
return
false
;
}
public
function
buildMainMenuItems
(
PhabricatorUser
$user
,
PhabricatorController
$controller
=
null
)
{
$items
=
array
();
if
(
$user
->
isLoggedIn
())
{
$item
=
new
PhabricatorMenuItemView
();
$item
->
setName
(
pht
(
'Log Out'
));
$item
->
setIcon
(
'power'
);
$item
->
setWorkflow
(
true
);
$item
->
setHref
(
'/logout/'
);
$item
->
setSortOrder
(
2.0
);
$item
->
setSelected
((
$controller
instanceof
PhabricatorLogoutController
));
$items
[]
=
$item
;
}
return
$items
;
}
}
Event Timeline
Log In to Comment