Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/files/edge/PhabricatorFileHasObjectEdgeType.php b/src/applications/files/edge/PhabricatorFileHasObjectEdgeType.php
index 50ff9ceafa..c4a3c2af87 100644
--- a/src/applications/files/edge/PhabricatorFileHasObjectEdgeType.php
+++ b/src/applications/files/edge/PhabricatorFileHasObjectEdgeType.php
@@ -1,15 +1,27 @@
<?php
final class PhabricatorFileHasObjectEdgeType extends PhabricatorEdgeType {
const EDGECONST = 26;
public function getInverseEdgeConstant() {
return PhabricatorObjectHasFileEdgeType::EDGECONST;
}
public function shouldWriteInverseTransactions() {
return true;
}
+ public function getConduitKey() {
+ return 'file.attached-objects';
+ }
+
+ public function getConduitName() {
+ return pht('File Has Object');
+ }
+
+ public function getConduitDescription() {
+ return pht('The source file is attached to the destination object.');
+ }
+
}
diff --git a/src/applications/transactions/edges/PhabricatorObjectHasFileEdgeType.php b/src/applications/transactions/edges/PhabricatorObjectHasFileEdgeType.php
index 864665e45b..6ed89ff91b 100644
--- a/src/applications/transactions/edges/PhabricatorObjectHasFileEdgeType.php
+++ b/src/applications/transactions/edges/PhabricatorObjectHasFileEdgeType.php
@@ -1,103 +1,115 @@
<?php
final class PhabricatorObjectHasFileEdgeType extends PhabricatorEdgeType {
const EDGECONST = 25;
public function getInverseEdgeConstant() {
return PhabricatorFileHasObjectEdgeType::EDGECONST;
}
public function shouldWriteInverseTransactions() {
return true;
}
+ public function getConduitKey() {
+ return 'object.attached-files';
+ }
+
+ public function getConduitName() {
+ return pht('Object Has Files');
+ }
+
+ public function getConduitDescription() {
+ return pht('The source object is associated with the destination file.');
+ }
+
public function getTransactionAddString(
$actor,
$add_count,
$add_edges) {
return pht(
'%s added %s file(s): %s.',
$actor,
$add_count,
$add_edges);
}
public function getTransactionRemoveString(
$actor,
$rem_count,
$rem_edges) {
return pht(
'%s removed %s file(s): %s.',
$actor,
$rem_count,
$rem_edges);
}
public function getTransactionEditString(
$actor,
$total_count,
$add_count,
$add_edges,
$rem_count,
$rem_edges) {
return pht(
'%s edited file(s), added %s: %s; removed %s: %s.',
$actor,
$add_count,
$add_edges,
$rem_count,
$rem_edges);
}
public function getFeedAddString(
$actor,
$object,
$add_count,
$add_edges) {
return pht(
'%s added %s file(s) for %s: %s.',
$actor,
$add_count,
$object,
$add_edges);
}
public function getFeedRemoveString(
$actor,
$object,
$rem_count,
$rem_edges) {
return pht(
'%s removed %s file(s) for %s: %s.',
$actor,
$rem_count,
$object,
$rem_edges);
}
public function getFeedEditString(
$actor,
$object,
$total_count,
$add_count,
$add_edges,
$rem_count,
$rem_edges) {
return pht(
'%s edited file(s) for %s, added %s: %s; removed %s: %s.',
$actor,
$object,
$add_count,
$add_edges,
$rem_count,
$rem_edges);
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sun, Nov 24, 6:12 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1058
Default Alt Text
(3 KB)

Event Timeline