Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101183115
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
Thu, Feb 6, 13:49
Size
757 B
Mime Type
text/x-php
Expires
Sat, Feb 8, 13:49 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24107523
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