Differential D17170 Diff 41295 src/applications/differential/editor/DifferentialTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/editor/DifferentialTransactionEditor.php
Show All 12 Lines | final class DifferentialTransactionEditor | ||||
public function getEditorApplicationClass() { | public function getEditorApplicationClass() { | ||||
return 'PhabricatorDifferentialApplication'; | return 'PhabricatorDifferentialApplication'; | ||||
} | } | ||||
public function getEditorObjectsDescription() { | public function getEditorObjectsDescription() { | ||||
return pht('Differential Revisions'); | return pht('Differential Revisions'); | ||||
} | } | ||||
public function getCreateObjectTitle($author, $object) { | |||||
return pht('%s created this revision.', $author); | |||||
} | |||||
public function getCreateObjectTitleForFeed($author, $object) { | |||||
return pht('%s created %s.', $author, $object); | |||||
} | |||||
public function getDiffUpdateTransaction(array $xactions) { | public function getDiffUpdateTransaction(array $xactions) { | ||||
$type_update = DifferentialTransaction::TYPE_UPDATE; | $type_update = DifferentialTransaction::TYPE_UPDATE; | ||||
foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
if ($xaction->getTransactionType() == $type_update) { | if ($xaction->getTransactionType() == $type_update) { | ||||
return $xaction; | return $xaction; | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,948 Lines • Show Last 20 Lines |