Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13990931
D11112.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
D11112.diff
View Options
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -1989,8 +1989,8 @@
'PhabricatorObjectListQueryTestCase' => 'applications/phid/query/__tests__/PhabricatorObjectListQueryTestCase.php',
'PhabricatorObjectMailReceiver' => 'applications/metamta/receiver/PhabricatorObjectMailReceiver.php',
'PhabricatorObjectMailReceiverTestCase' => 'applications/metamta/receiver/__tests__/PhabricatorObjectMailReceiverTestCase.php',
- 'PhabricatorObjectMentionedByObject' => 'applications/transactions/edges/PhabricatorObjectMentionedByObject.php',
- 'PhabricatorObjectMentionsObject' => 'applications/transactions/edges/PhabricatorObjectMentionsObject.php',
+ 'PhabricatorObjectMentionedByObjectEdgeType' => 'applications/transactions/edges/PhabricatorObjectMentionedByObjectEdgeType.php',
+ 'PhabricatorObjectMentionsObjectEdgeType' => 'applications/transactions/edges/PhabricatorObjectMentionsObjectEdgeType.php',
'PhabricatorObjectQuery' => 'applications/phid/query/PhabricatorObjectQuery.php',
'PhabricatorObjectRemarkupRule' => 'infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php',
'PhabricatorObjectSelectorDialog' => 'view/control/PhabricatorObjectSelectorDialog.php',
@@ -5162,8 +5162,8 @@
'PhabricatorObjectListQueryTestCase' => 'PhabricatorTestCase',
'PhabricatorObjectMailReceiver' => 'PhabricatorMailReceiver',
'PhabricatorObjectMailReceiverTestCase' => 'PhabricatorTestCase',
- 'PhabricatorObjectMentionedByObject' => 'PhabricatorEdgeType',
- 'PhabricatorObjectMentionsObject' => 'PhabricatorEdgeType',
+ 'PhabricatorObjectMentionedByObjectEdgeType' => 'PhabricatorEdgeType',
+ 'PhabricatorObjectMentionsObjectEdgeType' => 'PhabricatorEdgeType',
'PhabricatorObjectQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
'PhabricatorObjectRemarkupRule' => 'PhutilRemarkupRule',
'PhabricatorOffsetPagedQuery' => 'PhabricatorQuery',
diff --git a/src/applications/transactions/edges/PhabricatorObjectMentionedByObject.php b/src/applications/transactions/edges/PhabricatorObjectMentionedByObjectEdgeType.php
rename from src/applications/transactions/edges/PhabricatorObjectMentionedByObject.php
rename to src/applications/transactions/edges/PhabricatorObjectMentionedByObjectEdgeType.php
--- a/src/applications/transactions/edges/PhabricatorObjectMentionedByObject.php
+++ b/src/applications/transactions/edges/PhabricatorObjectMentionedByObjectEdgeType.php
@@ -1,11 +1,12 @@
<?php
-final class PhabricatorObjectMentionedByObject extends PhabricatorEdgeType {
+final class PhabricatorObjectMentionedByObjectEdgeType
+ extends PhabricatorEdgeType {
const EDGECONST = 51;
public function getInverseEdgeConstant() {
- return PhabricatorObjectMentionsObject::EDGECONST;
+ return PhabricatorObjectMentionsObjectEdgeType::EDGECONST;
}
public function shouldWriteInverseTransactions() {
diff --git a/src/applications/transactions/edges/PhabricatorObjectMentionsObject.php b/src/applications/transactions/edges/PhabricatorObjectMentionsObjectEdgeType.php
rename from src/applications/transactions/edges/PhabricatorObjectMentionsObject.php
rename to src/applications/transactions/edges/PhabricatorObjectMentionsObjectEdgeType.php
--- a/src/applications/transactions/edges/PhabricatorObjectMentionsObject.php
+++ b/src/applications/transactions/edges/PhabricatorObjectMentionsObjectEdgeType.php
@@ -1,11 +1,12 @@
<?php
-final class PhabricatorObjectMentionsObject extends PhabricatorEdgeType {
+final class PhabricatorObjectMentionsObjectEdgeType
+ extends PhabricatorEdgeType {
const EDGECONST = 52;
public function getInverseEdgeConstant() {
- return PhabricatorObjectMentionedByObject::EDGECONST;
+ return PhabricatorObjectMentionedByObjectEdgeType::EDGECONST;
}
public function shouldWriteInverseTransactions() {
diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
--- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
+++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
@@ -1249,7 +1249,7 @@
}
}
if ($mentionable_phids) {
- $edge_type = PhabricatorObjectMentionsObject::EDGECONST;
+ $edge_type = PhabricatorObjectMentionsObjectEdgeType::EDGECONST;
$block_xactions[] = newv(get_class(head($xactions)), array())
->setIgnoreOnNoEffect(true)
->setTransactionType(PhabricatorTransactions::TYPE_EDGE)
diff --git a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
--- a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
+++ b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
@@ -452,10 +452,10 @@
case PhabricatorTransactions::TYPE_EDGE:
$edge_type = $this->getMetadataValue('edge:type');
switch ($edge_type) {
- case PhabricatorObjectMentionsObject::EDGECONST:
+ case PhabricatorObjectMentionsObjectEdgeType::EDGECONST:
return true;
break;
- case PhabricatorObjectMentionedByObject::EDGECONST:
+ case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST:
$new = ipull($this->getNewValue(), 'dst');
$old = ipull($this->getOldValue(), 'dst');
$add = array_diff($new, $old);
@@ -491,8 +491,8 @@
case PhabricatorTransactions::TYPE_EDGE:
$edge_type = $this->getMetadataValue('edge:type');
switch ($edge_type) {
- case PhabricatorObjectMentionsObject::EDGECONST:
- case PhabricatorObjectMentionedByObject::EDGECONST:
+ case PhabricatorObjectMentionsObjectEdgeType::EDGECONST:
+ case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST:
return true;
break;
default:
@@ -521,8 +521,8 @@
case PhabricatorTransactions::TYPE_EDGE:
$edge_type = $this->getMetadataValue('edge:type');
switch ($edge_type) {
- case PhabricatorObjectMentionsObject::EDGECONST:
- case PhabricatorObjectMentionedByObject::EDGECONST:
+ case PhabricatorObjectMentionsObjectEdgeType::EDGECONST:
+ case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST:
return true;
break;
default:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 23, 7:24 AM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6738539
Default Alt Text
D11112.diff (6 KB)
Attached To
Mode
D11112: Rename classes for consistency
Attached
Detach File
Event Timeline
Log In to Comment