Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101095102
PhabricatorProjectProfilePanelEngine.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, Feb 5, 17:09
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Feb 7, 17:09 (2 d)
Engine
blob
Format
Raw Data
Handle
24093709
Attached To
rPH Phabricator
PhabricatorProjectProfilePanelEngine.php
View Options
<?php
final
class
PhabricatorProjectProfilePanelEngine
extends
PhabricatorProfilePanelEngine
{
protected
function
isPanelEngineConfigurable
()
{
return
true
;
}
protected
function
getPanelURI
(
$path
)
{
$project
=
$this
->
getProfileObject
();
$id
=
$project
->
getID
();
return
"/project/{$id}/panel/{$path}"
;
}
protected
function
getBuiltinProfilePanels
(
$object
)
{
$panels
=
array
();
$panels
[]
=
$this
->
newPanel
()
->
setBuiltinKey
(
PhabricatorProject
::
PANEL_PROFILE
)
->
setPanelKey
(
PhabricatorProjectDetailsProfilePanel
::
PANELKEY
);
$panels
[]
=
$this
->
newPanel
()
->
setBuiltinKey
(
PhabricatorProject
::
PANEL_WORKBOARD
)
->
setPanelKey
(
PhabricatorProjectWorkboardProfilePanel
::
PANELKEY
);
$panels
[]
=
$this
->
newPanel
()
->
setBuiltinKey
(
PhabricatorProject
::
PANEL_MEMBERS
)
->
setPanelKey
(
PhabricatorProjectMembersProfilePanel
::
PANELKEY
);
$panels
[]
=
$this
->
newPanel
()
->
setBuiltinKey
(
PhabricatorProject
::
PANEL_SUBPROJECTS
)
->
setPanelKey
(
PhabricatorProjectSubprojectsProfilePanel
::
PANELKEY
);
$panels
[]
=
$this
->
newPanel
()
->
setBuiltinKey
(
PhabricatorProject
::
PANEL_MANAGE
)
->
setPanelKey
(
PhabricatorProjectManageProfilePanel
::
PANELKEY
);
return
$panels
;
}
}
Event Timeline
Log In to Comment