Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108351747
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, Apr 16, 02:56
Size
757 B
Mime Type
text/x-php
Expires
Fri, Apr 18, 02:56 (11 h, 18 m)
Engine
blob
Format
Raw Data
Handle
25512202
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