Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121806748
PhabricatorProjectConfigOptions.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
Mon, Jul 14, 01:17
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Jul 16, 01:17 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27386701
Attached To
rPH Phabricator
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
()
{
$default_fields
=
array
(
'std:project:internal:description'
=>
true
,
);
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": "text"}}'
,
pht
(
'Valid Setting'
)),
$this
->
newOption
(
'projects.fields'
,
$custom_field_type
,
$default_fields
)
->
setCustomData
(
id
(
new
PhabricatorProject
())->
getCustomFieldBaseClass
())
->
setDescription
(
pht
(
'Select and reorder project fields.'
)),
);
}
}
Event Timeline
Log In to Comment