mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 17:52:43 +01:00
30345cfbdd
Test Plan: Viewed the new options. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2255 Differential Revision: https://secure.phabricator.com/D4401
51 lines
1.8 KiB
PHP
51 lines
1.8 KiB
PHP
<?php
|
|
|
|
final class PhabricatorManiphestConfigOptions
|
|
extends PhabricatorApplicationConfigOptions {
|
|
|
|
public function getName() {
|
|
return pht("Maniphest");
|
|
}
|
|
|
|
public function getDescription() {
|
|
return pht("Configure Maniphest.");
|
|
}
|
|
|
|
public function getOptions() {
|
|
return array(
|
|
$this->newOption('maniphest.enabled', 'bool', true)
|
|
->setDescription(pht("Enable Maniphest")),
|
|
$this->newOption('maniphest.custom-fields', 'wild', array())
|
|
->setSummary(pht("Custom Maniphest fields."))
|
|
->setDescription(
|
|
pht(
|
|
"Array of custom fields for Maniphest tasks. For details on ".
|
|
"adding custom fields to Maniphest, see 'Maniphest User Guide: ".
|
|
"Adding Custom Fields'."))
|
|
->addExample(
|
|
'{"mycompany:estimated-hours": {"label": "Estimated Hours", '.
|
|
'"type": "int", "caption": "Estimated number of hours this will '.
|
|
'take.", "required": false}}',
|
|
pht('Valid Setting')),
|
|
$this->newOption(
|
|
'maniphest.custom-task-extensions-class',
|
|
'class',
|
|
'ManiphestDefaultTaskExtensions')
|
|
->setBaseClass('ManiphestTaskExtensions')
|
|
->setSummary(pht("Class which drives custom field construction."))
|
|
->setDescription(
|
|
pht(
|
|
"Class which drives custom field construction. See 'Maniphest ".
|
|
"User Guide: Adding Custom Fields' in the documentation for more ".
|
|
"information.")),
|
|
$this->newOption('maniphest.default-priority', 'int', 90)
|
|
->setSummary(pht("Default task priority for create flows."))
|
|
->setDescription(
|
|
pht(
|
|
"What should the default task priority be in create flows? See ".
|
|
"the constants in @{class:ManiphestTaskPriority} for valid ".
|
|
"values. Defaults to 'needs triage'.")),
|
|
);
|
|
}
|
|
|
|
}
|