Differential D12025 Diff 28956 src/applications/audit/storage/PhabricatorAuditTransactionComment.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/storage/PhabricatorAuditTransactionComment.php
| <?php | <?php | ||||
| final class PhabricatorAuditTransactionComment | final class PhabricatorAuditTransactionComment | ||||
| extends PhabricatorApplicationTransactionComment { | extends PhabricatorApplicationTransactionComment { | ||||
| protected $commitPHID; | protected $commitPHID; | ||||
| protected $pathID; | protected $pathID; | ||||
| protected $isNewFile = 0; | protected $isNewFile = 0; | ||||
| protected $lineNumber = 0; | protected $lineNumber = 0; | ||||
| protected $lineLength = 0; | protected $lineLength = 0; | ||||
| protected $fixedState; | protected $fixedState; | ||||
| protected $hasReplies = 0; | protected $hasReplies = 0; | ||||
| protected $replyToCommentPHID; | protected $replyToCommentPHID; | ||||
| protected $legacyCommentID; | protected $legacyCommentID; | ||||
| private $replyToComment = self::ATTACHABLE; | |||||
| public function getApplicationTransactionObject() { | public function getApplicationTransactionObject() { | ||||
| return new PhabricatorAuditTransaction(); | return new PhabricatorAuditTransaction(); | ||||
| } | } | ||||
| public function shouldUseMarkupCache($field) { | public function shouldUseMarkupCache($field) { | ||||
| // Only cache submitted comments. | // Only cache submitted comments. | ||||
| return ($this->getTransactionPHID() != null); | return ($this->getTransactionPHID() != null); | ||||
| } | } | ||||
| Show All 26 Lines | $config[self::CONFIG_KEY_SCHEMA] = array( | ||||
| 'key_legacy' => array( | 'key_legacy' => array( | ||||
| 'columns' => array('legacyCommentID'), | 'columns' => array('legacyCommentID'), | ||||
| ), | ), | ||||
| ) + $config[self::CONFIG_KEY_SCHEMA]; | ) + $config[self::CONFIG_KEY_SCHEMA]; | ||||
| return $config; | return $config; | ||||
| } | } | ||||
| public function attachReplyToComment( | |||||
| PhabricatorAuditTransactionComment $comment = null) { | |||||
| $this->replyToComment = $comment; | |||||
| return $this; | |||||
| } | |||||
| public function getReplyToComment() { | |||||
| return $this->assertAttached($this->replyToComment); | |||||
| } | |||||
| } | } | ||||