2013-06-21 21:54:29 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class DifferentialTransactionComment
|
|
|
|
extends PhabricatorApplicationTransactionComment {
|
|
|
|
|
|
|
|
protected $revisionPHID;
|
|
|
|
protected $changesetID;
|
|
|
|
protected $isNewFile;
|
|
|
|
protected $lineNumber;
|
|
|
|
protected $lineLength;
|
|
|
|
protected $fixedState;
|
|
|
|
protected $hasReplies = 0;
|
|
|
|
protected $replyToCommentPHID;
|
2013-06-24 20:00:35 +02:00
|
|
|
protected $legacyCommentID;
|
2013-06-21 21:54:29 +02:00
|
|
|
|
|
|
|
public function getApplicationTransactionObject() {
|
|
|
|
return new DifferentialTransaction();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function shouldUseMarkupCache($field) {
|
|
|
|
// Only cache submitted comments.
|
|
|
|
return ($this->getTransactionPHID() != null);
|
|
|
|
}
|
|
|
|
}
|