Differential D21184 Diff 50520 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; | ||||
| protected $attributes = array(); | |||||
| private $replyToComment = self::ATTACHABLE; | private $replyToComment = self::ATTACHABLE; | ||||
| public function getApplicationTransactionObject() { | public function getApplicationTransactionObject() { | ||||
| return new PhabricatorAuditTransaction(); | return new PhabricatorAuditTransaction(); | ||||
| } | } | ||||
| public function shouldUseMarkupCache($field) { | public function shouldUseMarkupCache($field) { | ||||
| Show All 26 Lines | $config[self::CONFIG_KEY_SCHEMA] = array( | ||||
| 'key_commit' => array( | 'key_commit' => array( | ||||
| 'columns' => array('commitPHID'), | 'columns' => array('commitPHID'), | ||||
| ), | ), | ||||
| 'key_legacy' => array( | 'key_legacy' => array( | ||||
| 'columns' => array('legacyCommentID'), | 'columns' => array('legacyCommentID'), | ||||
| ), | ), | ||||
| ) + $config[self::CONFIG_KEY_SCHEMA]; | ) + $config[self::CONFIG_KEY_SCHEMA]; | ||||
| $config[self::CONFIG_SERIALIZATION] = array( | |||||
| 'attributes' => self::SERIALIZATION_JSON, | |||||
| ) + idx($config, self::CONFIG_SERIALIZATION, array()); | |||||
| return $config; | return $config; | ||||
| } | } | ||||
| public function attachReplyToComment( | public function attachReplyToComment( | ||||
| PhabricatorAuditTransactionComment $comment = null) { | PhabricatorAuditTransactionComment $comment = null) { | ||||
| $this->replyToComment = $comment; | $this->replyToComment = $comment; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getReplyToComment() { | public function getReplyToComment() { | ||||
| return $this->assertAttached($this->replyToComment); | return $this->assertAttached($this->replyToComment); | ||||
| } | } | ||||
| } | } | ||||