Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F124462048
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
Sat, Aug 2, 16:03
Size
1011 B
Mime Type
text/x-php
Expires
Mon, Aug 4, 16:03 (2 d)
Engine
blob
Format
Raw Data
Handle
27835374
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