Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102365131
PhabricatorHomeController.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
Wed, Feb 19, 23:06
Size
1011 B
Mime Type
text/x-php
Expires
Fri, Feb 21, 23:06 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24339409
Attached To
rPH Phabricator
PhabricatorHomeController.php
View Options
<?php
abstract
class
PhabricatorHomeController
extends
PhabricatorController
{
private
$home
;
private
$profileMenu
;
public
function
buildApplicationMenu
()
{
$menu
=
$this
->
newApplicationMenu
();
$profile_menu
=
$this
->
getProfileMenu
();
if
(
$profile_menu
)
{
$menu
->
setProfileMenu
(
$profile_menu
);
}
return
$menu
;
}
protected
function
getProfileMenu
()
{
if
(!
$this
->
profileMenu
)
{
$viewer
=
$this
->
getViewer
();
$applications
=
id
(
new
PhabricatorApplicationQuery
())
->
setViewer
(
$viewer
)
->
withClasses
(
array
(
'PhabricatorHomeApplication'
))
->
withInstalled
(
true
)
->
execute
();
$home
=
head
(
$applications
);
if
(!
$home
)
{
return
null
;
}
$engine
=
id
(
new
PhabricatorHomeProfileMenuEngine
())
->
setViewer
(
$viewer
)
->
setProfileObject
(
$home
)
->
setCustomPHID
(
$viewer
->
getPHID
());
$this
->
profileMenu
=
$engine
->
buildNavigation
();
}
return
$this
->
profileMenu
;
}
}
Event Timeline
Log In to Comment