mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-13 12:54:53 +01:00
Summary: Depends on D19318. Ref T13120. Ref T12414. Move transactions for Almanac Namespaces ("name" is the only meaningful one) to ModularTransactions. Test Plan: - Created a new namespace. - Edited a namespace. - Tried to choose no name, an invalid name, a duplicate name, and a name in a namespace I can't edit; got appropriate errors. - Grepped for `AlmanacNamespaceTransaction::TYPE_NAME`. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13120, T12414 Differential Revision: https://secure.phabricator.com/D19320
22 lines
445 B
PHP
22 lines
445 B
PHP
<?php
|
|
|
|
final class AlmanacNamespaceTransaction
|
|
extends PhabricatorModularTransaction {
|
|
|
|
public function getApplicationName() {
|
|
return 'almanac';
|
|
}
|
|
|
|
public function getApplicationTransactionType() {
|
|
return AlmanacNamespacePHIDType::TYPECONST;
|
|
}
|
|
|
|
public function getApplicationTransactionCommentObject() {
|
|
return null;
|
|
}
|
|
|
|
public function getBaseTransactionClass() {
|
|
return 'AlmanacNamespaceTransactionType';
|
|
}
|
|
|
|
}
|