Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F970766
PhabricatorHomeMenuItemController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
869 B
Referenced Files
None
Subscribers
None
PhabricatorHomeMenuItemController.php
View Options
<?php
final
class
PhabricatorHomeMenuItemController
extends
PhabricatorHomeController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
isGlobalDragAndDropUploadEnabled
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
if
(
$viewer
->
getPHID
())
{
$custom_phid
=
$viewer
->
getPHID
();
}
else
{
$custom_phid
=
null
;
}
$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
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 5:23 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
229124
Default Alt Text
PhabricatorHomeMenuItemController.php (869 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment