Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99366571
PhabricatorProfileMenuItem.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
Thu, Jan 23, 21:48
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Jan 25, 21:48 (2 d)
Engine
blob
Format
Raw Data
Handle
23783656
Attached To
rPH Phabricator
PhabricatorProfileMenuItem.php
View Options
<?php
abstract
class
PhabricatorProfileMenuItem
extends
Phobject
{
private
$viewer
;
final
public
function
buildNavigationMenuItems
(
PhabricatorProfileMenuItemConfiguration
$config
)
{
return
$this
->
newNavigationMenuItems
(
$config
);
}
abstract
protected
function
newNavigationMenuItems
(
PhabricatorProfileMenuItemConfiguration
$config
);
public
function
getMenuItemTypeIcon
()
{
return
null
;
}
abstract
public
function
getMenuItemTypeName
();
abstract
public
function
getDisplayName
(
PhabricatorProfileMenuItemConfiguration
$config
);
public
function
buildEditEngineFields
(
PhabricatorProfileMenuItemConfiguration
$config
)
{
return
array
();
}
public
function
canAddToObject
(
$object
)
{
return
false
;
}
public
function
shouldEnableForObject
(
$object
)
{
return
true
;
}
public
function
canHideMenuItem
(
PhabricatorProfileMenuItemConfiguration
$config
)
{
return
true
;
}
public
function
canMakeDefault
(
PhabricatorProfileMenuItemConfiguration
$config
)
{
return
false
;
}
public
function
setViewer
(
PhabricatorUser
$viewer
)
{
$this
->
viewer
=
$viewer
;
return
$this
;
}
public
function
getViewer
()
{
return
$this
->
viewer
;
}
final
public
function
getMenuItemKey
()
{
return
$this
->
getPhobjectClassConstant
(
'MENUITEMKEY'
);
}
final
public
static
function
getAllMenuItems
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getMenuItemKey'
)
->
execute
();
}
protected
function
newItem
()
{
return
new
PHUIListItemView
();
}
}
Event Timeline
Log In to Comment