Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F452541
PhabricatorProjectDetailsProfilePanel.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorProjectDetailsProfilePanel.php
View Options
<?php
final
class
PhabricatorProjectDetailsProfilePanel
extends
PhabricatorProfilePanel
{
const
PANELKEY
=
'project.details'
;
public
function
getPanelTypeName
()
{
return
pht
(
'Project Details'
);
}
private
function
getDefaultName
()
{
return
pht
(
'Project Details'
);
}
public
function
getDisplayName
(
PhabricatorProfilePanelConfiguration
$config
)
{
$name
=
$config
->
getPanelProperty
(
'name'
);
if
(
strlen
(
$name
))
{
return
$name
;
}
return
$this
->
getDefaultName
();
}
public
function
buildEditEngineFields
(
PhabricatorProfilePanelConfiguration
$config
)
{
return
array
(
id
(
new
PhabricatorTextEditField
())
->
setKey
(
'name'
)
->
setLabel
(
pht
(
'Name'
))
->
setPlaceholder
(
$this
->
getDefaultName
())
->
setValue
(
$config
->
getPanelProperty
(
'name'
)),
);
}
protected
function
newNavigationMenuItems
(
PhabricatorProfilePanelConfiguration
$config
)
{
$project
=
$config
->
getProfileObject
();
$id
=
$project
->
getID
();
$picture
=
$project
->
getProfileImageURI
();
$name
=
$project
->
getName
();
$href
=
"/project/profile/{$id}/"
;
$item
=
$this
->
newItem
()
->
setHref
(
$href
)
->
setName
(
$name
)
->
setProfileImage
(
$picture
);
return
array
(
$item
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 12:43 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
68192
Default Alt Text
PhabricatorProjectDetailsProfilePanel.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment