Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99168351
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, Jan 21, 22:30
Size
686 B
Mime Type
text/x-php
Expires
Thu, Jan 23, 22:30 (2 d)
Engine
blob
Format
Raw Data
Handle
23727470
Attached To
rPH Phabricator
PhabricatorApplicationAuth.php
View Options
<?php
final
class
PhabricatorApplicationAuth
extends
PhabricatorApplication
{
public
function
shouldAppearInLaunchView
()
{
return
false
;
}
public
function
canUninstall
()
{
return
false
;
}
public
function
buildMainMenuItems
(
PhabricatorUser
$user
,
PhabricatorController
$controller
=
null
)
{
$items
=
array
();
if
(
$user
->
isLoggedIn
())
{
$item
=
new
PHUIListItemView
();
$item
->
setName
(
pht
(
'Log Out'
));
$item
->
setIcon
(
'power'
);
$item
->
setWorkflow
(
true
);
$item
->
setHref
(
'/logout/'
);
$item
->
setSelected
((
$controller
instanceof
PhabricatorLogoutController
));
$items
[]
=
$item
;
}
return
$items
;
}
}
Event Timeline
Log In to Comment