Differential D19842 Diff 47384 src/applications/owners/editor/PhabricatorOwnersPackageEditEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/owners/editor/PhabricatorOwnersPackageEditEngine.php
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | return array( | ||||
PhabricatorOwnersPackageDescriptionTransaction::TRANSACTIONTYPE) | PhabricatorOwnersPackageDescriptionTransaction::TRANSACTIONTYPE) | ||||
->setValue($object->getDescription()), | ->setValue($object->getDescription()), | ||||
id(new PhabricatorSelectEditField()) | id(new PhabricatorSelectEditField()) | ||||
->setKey('status') | ->setKey('status') | ||||
->setLabel(pht('Status')) | ->setLabel(pht('Status')) | ||||
->setDescription(pht('Archive or enable the package.')) | ->setDescription(pht('Archive or enable the package.')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorOwnersPackageStatusTransaction::TRANSACTIONTYPE) | PhabricatorOwnersPackageStatusTransaction::TRANSACTIONTYPE) | ||||
->setIsConduitOnly(true) | ->setIsFormField(false) | ||||
->setValue($object->getStatus()) | ->setValue($object->getStatus()) | ||||
->setOptions($object->getStatusNameMap()), | ->setOptions($object->getStatusNameMap()), | ||||
id(new PhabricatorCheckboxesEditField()) | id(new PhabricatorCheckboxesEditField()) | ||||
->setKey('ignored') | ->setKey('ignored') | ||||
->setLabel(pht('Ignored Attributes')) | ->setLabel(pht('Ignored Attributes')) | ||||
->setDescription(pht('Ignore paths with any of these attributes.')) | ->setDescription(pht('Ignore paths with any of these attributes.')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorOwnersPackageIgnoredTransaction::TRANSACTIONTYPE) | PhabricatorOwnersPackageIgnoredTransaction::TRANSACTIONTYPE) | ||||
->setValue(array_keys($object->getIgnoredPathAttributes())) | ->setValue(array_keys($object->getIgnoredPathAttributes())) | ||||
->setOptions( | ->setOptions( | ||||
array( | array( | ||||
'generated' => pht('Ignore generated files (review only).'), | 'generated' => pht('Ignore generated files (review only).'), | ||||
)), | )), | ||||
id(new PhabricatorConduitEditField()) | id(new PhabricatorConduitEditField()) | ||||
->setKey('paths.set') | ->setKey('paths.set') | ||||
->setLabel(pht('Paths')) | ->setLabel(pht('Paths')) | ||||
->setIsConduitOnly(true) | ->setIsFormField(false) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorOwnersPackagePathsTransaction::TRANSACTIONTYPE) | PhabricatorOwnersPackagePathsTransaction::TRANSACTIONTYPE) | ||||
->setConduitDescription( | ->setConduitDescription( | ||||
pht('Overwrite existing package paths with new paths.')) | pht('Overwrite existing package paths with new paths.')) | ||||
->setConduitTypeDescription( | ->setConduitTypeDescription( | ||||
pht('List of dictionaries, each describing a path.')) | pht('List of dictionaries, each describing a path.')) | ||||
->setConduitDocumentation($paths_help), | ->setConduitDocumentation($paths_help), | ||||
); | ); | ||||
} | } | ||||
} | } |