Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F549282
PhabricatorOwnersConfigOptions.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
PhabricatorOwnersConfigOptions.php
View Options
<?php
final
class
PhabricatorOwnersConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
'Owners'
);
}
public
function
getDescription
()
{
return
pht
(
'Configure Owners.'
);
}
public
function
getIcon
()
{
return
'fa-gift'
;
}
public
function
getGroup
()
{
return
'apps'
;
}
public
function
getOptions
()
{
$custom_field_type
=
'custom:PhabricatorCustomFieldConfigOptionType'
;
$default_fields
=
array
();
$field_base_class
=
id
(
new
PhabricatorOwnersPackage
())
->
getCustomFieldBaseClass
();
$fields_example
=
array
(
'mycompany:lore'
=>
array
(
'name'
=>
pht
(
'Package Lore'
),
'type'
=>
'remarkup'
,
'caption'
=>
pht
(
'Tales of adventure for this package.'
),
),
);
$fields_example
=
id
(
new
PhutilJSON
())->
encodeFormatted
(
$fields_example
);
return
array
(
$this
->
newOption
(
'owners.fields'
,
$custom_field_type
,
$default_fields
)
->
setCustomData
(
$field_base_class
)
->
setDescription
(
pht
(
'Select and reorder package fields.'
)),
$this
->
newOption
(
'owners.custom-field-definitions'
,
'wild'
,
array
())
->
setSummary
(
pht
(
'Custom Owners fields.'
))
->
setDescription
(
pht
(
'Map of custom fields for Owners packages. For details on '
.
'adding custom fields to Owners, see "Configuring Custom '
.
'Fields" in the documentation.'
))
->
addExample
(
$fields_example
,
pht
(
'Valid Setting'
)),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 2:05 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
106446
Default Alt Text
PhabricatorOwnersConfigOptions.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment