Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104796668
PhabricatorHomeMenuItemController.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, Mar 12, 11:23
Size
757 B
Mime Type
text/x-php
Expires
Fri, Mar 14, 11:23 (2 d)
Engine
blob
Format
Raw Data
Handle
24856124
Attached To
rPH Phabricator
PhabricatorHomeMenuItemController.php
View Options
<?php
final
class
PhabricatorHomeMenuItemController
extends
PhabricatorHomeController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$type
=
$request
->
getURIData
(
'type'
);
$custom_phid
=
null
;
if
(
$type
==
'personal'
)
{
$custom_phid
=
$viewer
->
getPHID
();
}
$application
=
'PhabricatorHomeApplication'
;
$home_app
=
id
(
new
PhabricatorApplicationQuery
())
->
setViewer
(
$viewer
)
->
withClasses
(
array
(
$application
))
->
withInstalled
(
true
)
->
executeOne
();
$engine
=
id
(
new
PhabricatorHomeProfileMenuEngine
())
->
setProfileObject
(
$home_app
)
->
setCustomPHID
(
$custom_phid
)
->
setController
(
$this
);
return
$engine
->
buildResponse
();
}
}
Event Timeline
Log In to Comment