Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F971299
PhabricatorProjectConfigOptions.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
PhabricatorProjectConfigOptions.php
View Options
<?php
final
class
PhabricatorProjectConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
"Projects"
);
}
public
function
getDescription
()
{
return
pht
(
"Configure Projects."
);
}
public
function
getOptions
()
{
// This is intentionally blank for now, until we can move more Project
// logic to custom fields.
$default_fields
=
array
();
foreach
(
$default_fields
as
$key
=>
$enabled
)
{
$default_fields
[
$key
]
=
array
(
'disabled'
=>
!
$enabled
,
);
}
$custom_field_type
=
'custom:PhabricatorCustomFieldConfigOptionType'
;
return
array
(
$this
->
newOption
(
'projects.custom-field-definitions'
,
'wild'
,
array
())
->
setSummary
(
pht
(
'Custom Projects fields.'
))
->
setDescription
(
pht
(
"Array of custom fields for Projects."
))
->
addExample
(
'{"mycompany:motto": {"name": "Project Motto", '
.
'"type": "string"}}'
,
pht
(
'Valid Setting'
)),
$this
->
newOption
(
'projects.fields'
,
$custom_field_type
,
$default_fields
)
->
setCustomData
(
id
(
new
PhabricatorProject
())->
getCustomFieldBaseClass
())
->
setDescription
(
pht
(
"Select and reorder project fields."
)),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 5:43 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
226043
Default Alt Text
PhabricatorProjectConfigOptions.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment