Differential D21480 Diff 51126 src/applications/transactions/edges/PhabricatorObjectHasFileEdgeType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/edges/PhabricatorObjectHasFileEdgeType.php
<?php | <?php | ||||
final class PhabricatorObjectHasFileEdgeType extends PhabricatorEdgeType { | final class PhabricatorObjectHasFileEdgeType extends PhabricatorEdgeType { | ||||
const EDGECONST = 25; | const EDGECONST = 25; | ||||
public function getInverseEdgeConstant() { | public function getInverseEdgeConstant() { | ||||
return PhabricatorFileHasObjectEdgeType::EDGECONST; | return PhabricatorFileHasObjectEdgeType::EDGECONST; | ||||
} | } | ||||
public function shouldWriteInverseTransactions() { | public function shouldWriteInverseTransactions() { | ||||
return true; | 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( | public function getTransactionAddString( | ||||
$actor, | $actor, | ||||
$add_count, | $add_count, | ||||
$add_edges) { | $add_edges) { | ||||
return pht( | return pht( | ||||
'%s added %s file(s): %s.', | '%s added %s file(s): %s.', | ||||
$actor, | $actor, | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |