Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99846050
PhabricatorProjectDetailsProfilePanel.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
Sun, Jan 26, 22:40
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Jan 28, 22:40 (2 d)
Engine
blob
Format
Raw Data
Handle
23832928
Attached To
rPH Phabricator
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
,
);
}
}
Event Timeline
Log In to Comment