Differential D20121 Diff 48057 src/applications/transactions/engineextension/PhabricatorCommentEditEngineExtension.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/engineextension/PhabricatorCommentEditEngineExtension.php
Show All 17 Lines | public function getExtensionName() { | ||||
return pht('Comments'); | return pht('Comments'); | ||||
} | } | ||||
public function supportsObject( | public function supportsObject( | ||||
PhabricatorEditEngine $engine, | PhabricatorEditEngine $engine, | ||||
PhabricatorApplicationTransactionInterface $object) { | PhabricatorApplicationTransactionInterface $object) { | ||||
$xaction = $object->getApplicationTransactionTemplate(); | $xaction = $object->getApplicationTransactionTemplate(); | ||||
try { | |||||
$comment = $xaction->getApplicationTransactionCommentObject(); | $comment = $xaction->getApplicationTransactionCommentObject(); | ||||
} catch (PhutilMethodNotImplementedException $ex) { | |||||
$comment = null; | |||||
} | |||||
return (bool)$comment; | return (bool)$comment; | ||||
} | } | ||||
public function newBulkEditGroups(PhabricatorEditEngine $engine) { | public function newBulkEditGroups(PhabricatorEditEngine $engine) { | ||||
return array( | return array( | ||||
id(new PhabricatorBulkEditGroup()) | id(new PhabricatorBulkEditGroup()) | ||||
->setKey('comments') | ->setKey('comments') | ||||
Show All 34 Lines |