Page MenuHomePhorge

PhabricatorHomeMenuItemController.php
No OneTemporary

Size
869 B
Referenced Files
None
Subscribers
None

PhabricatorHomeMenuItemController.php

<?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

Mime Type
text/x-php
Expires
Wed, Jun 18, 5:23 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
229124
Default Alt Text
PhabricatorHomeMenuItemController.php (869 B)

Event Timeline