Differential D14509 Diff 35177 src/applications/transactions/storage/PhabricatorEditEngineConfigurationTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorEditEngineConfigurationTransaction.php
| <?php | <?php | ||||
| final class PhabricatorEditEngineConfigurationTransaction | final class PhabricatorEditEngineConfigurationTransaction | ||||
| extends PhabricatorApplicationTransaction { | extends PhabricatorApplicationTransaction { | ||||
| const TYPE_NAME = 'editengine.config.name'; | const TYPE_NAME = 'editengine.config.name'; | ||||
| const TYPE_PREAMBLE = 'editengine.config.preamble'; | const TYPE_PREAMBLE = 'editengine.config.preamble'; | ||||
| const TYPE_ORDER = 'editengine.config.order'; | const TYPE_ORDER = 'editengine.config.order'; | ||||
| const TYPE_DEFAULT = 'editengine.config.default'; | const TYPE_DEFAULT = 'editengine.config.default'; | ||||
| const TYPE_LOCKS = 'editengine.config.locks'; | |||||
| public function getApplicationName() { | public function getApplicationName() { | ||||
| return 'search'; | return 'search'; | ||||
| } | } | ||||
| public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
| return PhabricatorEditEngineConfigurationPHIDType::TYPECONST; | return PhabricatorEditEngineConfigurationPHIDType::TYPECONST; | ||||
| } | } | ||||
| Show All 32 Lines | switch ($type) { | ||||
| '%s reordered the fields in this form.', | '%s reordered the fields in this form.', | ||||
| $this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid)); | ||||
| case self::TYPE_DEFAULT: | case self::TYPE_DEFAULT: | ||||
| $key = $this->getMetadataValue('field.key'); | $key = $this->getMetadataValue('field.key'); | ||||
| return pht( | return pht( | ||||
| '%s changed the default value for field "%s".', | '%s changed the default value for field "%s".', | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| $key); | $key); | ||||
| case self::TYPE_LOCKS: | |||||
| return pht( | |||||
| '%s changed locked and hidden fields.', | |||||
| $this->renderHandleLink($author_phid)); | |||||
| } | } | ||||
| return parent::getTitle(); | return parent::getTitle(); | ||||
| } | } | ||||
| } | } | ||||