Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104591628
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
Mon, Mar 10, 17:41
Size
1011 B
Mime Type
text/x-php
Expires
Wed, Mar 12, 17:41 (2 d)
Engine
blob
Format
Raw Data
Handle
24817276
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