Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893353
PhabricatorDashboardPortalProfileMenuEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorDashboardPortalProfileMenuEngine.php
View Options
<?php
final
class
PhabricatorDashboardPortalProfileMenuEngine
extends
PhabricatorProfileMenuEngine
{
protected
function
isMenuEngineConfigurable
(
)
{
return
true
;
}
protected
function
isMenuEnginePersonalizable
(
)
{
return
false
;
}
public
function
getItemURI
(
$path
)
{
$portal
=
$this
->
getProfileObject
(
)
;
return
$portal
->
getURI
(
)
.
$path
;
}
protected
function
getBuiltinProfileItems
(
$object
)
{
$items
=
array
(
)
;
$items
[
]
=
$this
->
newDividerItem
(
'tail'
)
;
$items
[
]
=
$this
->
newManageItem
(
)
;
$items
[
]
=
$this
->
newItem
(
)
->
setMenuItemKey
(
PhabricatorDashboardPortalMenuItem
::
MENUITEMKEY
)
->
setBuiltinKey
(
'manage'
)
->
setIsTailItem
(
true
)
;
return
$items
;
}
protected
function
newNoMenuItemsView
(
array
$items
)
{
$object
=
$this
->
getProfileObject
(
)
;
$builtins
=
$this
->
getBuiltinProfileItems
(
$object
)
;
if
(
count
(
$items
)
<=
count
(
$builtins
)
)
{
return
$this
->
newEmptyView
(
pht
(
'New Portal'
)
,
pht
(
'Use "Edit Menu" to add menu items to this portal.'
)
)
;
}
else
{
return
$this
->
newNoContentView
(
pht
(
'No Portal Content'
)
,
pht
(
'None of the visible menu items in this portal can render any '
.
'content.'
)
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:15 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1117767
Default Alt Text
PhabricatorDashboardPortalProfileMenuEngine.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment