Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93032777
PhabricatorProjectProfileMenuEngine.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
Mon, Nov 25, 17:02
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Nov 27, 17:02 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22561949
Attached To
rPH Phabricator
PhabricatorProjectProfileMenuEngine.php
View Options
<?php
final
class
PhabricatorProjectProfileMenuEngine
extends
PhabricatorProfileMenuEngine
{
protected
function
isMenuEngineConfigurable
()
{
return
true
;
}
public
function
getItemURI
(
$path
)
{
$project
=
$this
->
getProfileObject
();
$id
=
$project
->
getID
();
return
"/project/{$id}/item/{$path}"
;
}
protected
function
getBuiltinProfileItems
(
$object
)
{
$items
=
array
();
$items
[]
=
$this
->
newItem
()
->
setBuiltinKey
(
PhabricatorProject
::
ITEM_PROFILE
)
->
setMenuItemKey
(
PhabricatorProjectDetailsProfileMenuItem
::
MENUITEMKEY
);
$items
[]
=
$this
->
newItem
()
->
setBuiltinKey
(
PhabricatorProject
::
ITEM_POINTS
)
->
setMenuItemKey
(
PhabricatorProjectPointsProfileMenuItem
::
MENUITEMKEY
);
$items
[]
=
$this
->
newItem
()
->
setBuiltinKey
(
PhabricatorProject
::
ITEM_WORKBOARD
)
->
setMenuItemKey
(
PhabricatorProjectWorkboardProfileMenuItem
::
MENUITEMKEY
);
$items
[]
=
$this
->
newItem
()
->
setBuiltinKey
(
PhabricatorProject
::
ITEM_MEMBERS
)
->
setMenuItemKey
(
PhabricatorProjectMembersProfileMenuItem
::
MENUITEMKEY
);
$items
[]
=
$this
->
newItem
()
->
setBuiltinKey
(
PhabricatorProject
::
ITEM_SUBPROJECTS
)
->
setMenuItemKey
(
PhabricatorProjectSubprojectsProfileMenuItem
::
MENUITEMKEY
);
$items
[]
=
$this
->
newItem
()
->
setBuiltinKey
(
PhabricatorProject
::
ITEM_MANAGE
)
->
setMenuItemKey
(
PhabricatorProjectManageProfileMenuItem
::
MENUITEMKEY
);
return
$items
;
}
}
Event Timeline
Log In to Comment