Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92657485
PhabricatorProjectViewController.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
Fri, Nov 22, 11:34
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 11:34 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22480076
Attached To
rPH Phabricator
PhabricatorProjectViewController.php
View Options
<?php
final
class
PhabricatorProjectViewController
extends
PhabricatorProjectController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$request
=
$this
->
getRequest
();
$viewer
=
$request
->
getViewer
();
$response
=
$this
->
loadProject
();
if
(
$response
)
{
return
$response
;
}
$project
=
$this
->
getProject
();
$engine
=
$this
->
getProfileMenuEngine
();
$default
=
$engine
->
getDefaultItem
();
switch
(
$default
->
getBuiltinKey
())
{
case
PhabricatorProjectWikiProfileMenuItem
::
MENUITEM_WIKI
:
$controller_object
=
new
PhabricatorProjectWikiView
();
break
;
case
PhabricatorProject
::
ITEM_WORKBOARD
:
$controller_object
=
new
PhabricatorProjectBoardViewController
();
break
;
case
PhabricatorProject
::
ITEM_PROFILE
:
$controller_object
=
new
PhabricatorProjectProfileController
();
break
;
default
:
return
$engine
->
buildResponse
();
}
return
$this
->
delegateToController
(
$controller_object
);
}
}
Event Timeline
Log In to Comment