[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorProjectConfigOptions 4 extends PhabricatorApplicationConfigOptions { 5 6 public function getName() { 7 return pht('Projects'); 8 } 9 10 public function getDescription() { 11 return pht('Configure Projects.'); 12 } 13 14 public function getOptions() { 15 $default_fields = array( 16 'std:project:internal:description' => true, 17 ); 18 19 foreach ($default_fields as $key => $enabled) { 20 $default_fields[$key] = array( 21 'disabled' => !$enabled, 22 ); 23 } 24 25 $custom_field_type = 'custom:PhabricatorCustomFieldConfigOptionType'; 26 27 return array( 28 $this->newOption('projects.custom-field-definitions', 'wild', array()) 29 ->setSummary(pht('Custom Projects fields.')) 30 ->setDescription( 31 pht( 32 'Array of custom fields for Projects.')) 33 ->addExample( 34 '{"mycompany:motto": {"name": "Project Motto", '. 35 '"type": "text"}}', 36 pht('Valid Setting')), 37 $this->newOption('projects.fields', $custom_field_type, $default_fields) 38 ->setCustomData(id(new PhabricatorProject())->getCustomFieldBaseClass()) 39 ->setDescription(pht('Select and reorder project fields.')), 40 ); 41 } 42 43 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |