Differential D19428 Diff 46475 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 156 Lines • ▼ Show 20 Lines | return array( | ||||
| ->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) | ->setIsConduitOnly(true) | ||||
| ->setValue($object->getStatus()) | ->setValue($object->getStatus()) | ||||
| ->setOptions($object->getStatusNameMap()), | ->setOptions($object->getStatusNameMap()), | ||||
| id(new PhabricatorStringListEditField()) | |||||
| ->setKey('ignored') | |||||
| ->setLabel(pht('Ignored Attributes')) | |||||
| ->setDescription(pht('Ignore paths with any of these attributes.')) | |||||
| ->setTransactionType( | |||||
| PhabricatorOwnersPackageIgnoredTransaction::TRANSACTIONTYPE) | |||||
| ->setValue(array_keys($object->getIgnoredPathAttributes())), | |||||
| id(new PhabricatorConduitEditField()) | id(new PhabricatorConduitEditField()) | ||||
| ->setKey('paths.set') | ->setKey('paths.set') | ||||
| ->setLabel(pht('Paths')) | ->setLabel(pht('Paths')) | ||||
| ->setIsConduitOnly(true) | ->setIsConduitOnly(true) | ||||
| ->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), | ||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||