Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F545647
PhabricatorHomeMenuItemController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
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
();
// Test if we should show mobile users the menu or the page content:
// if you visit "/", you just get the menu. If you visit "/home/", you
// get the content.
$is_content
=
$request
->
getURIData
(
'content'
);
$application
=
'PhabricatorHomeApplication'
;
$home_app
=
id
(
new
PhabricatorApplicationQuery
())
->
setViewer
(
$viewer
)
->
withClasses
(
array
(
$application
))
->
withInstalled
(
true
)
->
executeOne
();
$engine
=
id
(
new
PhabricatorHomeProfileMenuEngine
())
->
setProfileObject
(
$home_app
)
->
setCustomPHID
(
$viewer
->
getPHID
())
->
setController
(
$this
)
->
setShowContentCrumbs
(
false
);
if
(!
$is_content
)
{
$engine
->
addContentPageClass
(
'phabricator-home'
);
}
return
$engine
->
buildResponse
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 12:56 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
103233
Default Alt Text
PhabricatorHomeMenuItemController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment