Changeset View
Changeset View
Standalone View
Standalone View
src/applications/badges/editor/PhabricatorBadgesEditEngine.php
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | return array( | ||||
->setLabel(pht('Description')) | ->setLabel(pht('Description')) | ||||
->setDescription(pht('Badge long description.')) | ->setDescription(pht('Badge long description.')) | ||||
->setConduitTypeDescription(pht('New badge description.')) | ->setConduitTypeDescription(pht('New badge description.')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorBadgesBadgeDescriptionTransaction::TRANSACTIONTYPE) | PhabricatorBadgesBadgeDescriptionTransaction::TRANSACTIONTYPE) | ||||
->setValue($object->getDescription()), | ->setValue($object->getDescription()), | ||||
id(new PhabricatorUsersEditField()) | id(new PhabricatorUsersEditField()) | ||||
->setKey('award') | ->setKey('award') | ||||
->setIsConduitOnly(true) | ->setIsFormField(false) | ||||
->setDescription(pht('New badge award recipients.')) | ->setDescription(pht('New badge award recipients.')) | ||||
->setConduitTypeDescription(pht('New badge award recipients.')) | ->setConduitTypeDescription(pht('New badge award recipients.')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorBadgesBadgeAwardTransaction::TRANSACTIONTYPE) | PhabricatorBadgesBadgeAwardTransaction::TRANSACTIONTYPE) | ||||
->setLabel(pht('Award Recipients')), | ->setLabel(pht('Award Recipients')), | ||||
id(new PhabricatorUsersEditField()) | id(new PhabricatorUsersEditField()) | ||||
->setKey('revoke') | ->setKey('revoke') | ||||
->setIsConduitOnly(true) | ->setIsFormField(false) | ||||
->setDescription(pht('Revoke badge award recipients.')) | ->setDescription(pht('Revoke badge award recipients.')) | ||||
->setConduitTypeDescription(pht('Revoke badge award recipients.')) | ->setConduitTypeDescription(pht('Revoke badge award recipients.')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorBadgesBadgeRevokeTransaction::TRANSACTIONTYPE) | PhabricatorBadgesBadgeRevokeTransaction::TRANSACTIONTYPE) | ||||
->setLabel(pht('Revoke Recipients')), | ->setLabel(pht('Revoke Recipients')), | ||||
); | ); | ||||
} | } | ||||
} | } |