Differential D10577 Diff 25445 src/applications/differential/storage/DifferentialTransactionComment.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialTransactionComment.php
Show All 10 Lines | final class DifferentialTransactionComment | ||||
protected $fixedState; | protected $fixedState; | ||||
protected $hasReplies = 0; | protected $hasReplies = 0; | ||||
protected $replyToCommentPHID; | protected $replyToCommentPHID; | ||||
public function getApplicationTransactionObject() { | public function getApplicationTransactionObject() { | ||||
return new DifferentialTransaction(); | return new DifferentialTransaction(); | ||||
} | } | ||||
public function getConfiguration() { | |||||
$config = parent::getConfiguration(); | |||||
$config[self::CONFIG_COLUMN_SCHEMA] = array( | |||||
'revisionPHID' => 'phid?', | |||||
'changesetID' => 'id?', | |||||
'isNewFile' => 'bool', | |||||
'lineNumber' => 'uint32', | |||||
'lineLength' => 'uint32', | |||||
'fixedState' => 'text12?', | |||||
'hasReplies' => 'bool', | |||||
'replyToCommentPHID' => 'phid?', | |||||
) + $config[self::CONFIG_COLUMN_SCHEMA]; | |||||
$config[self::CONFIG_KEY_SCHEMA] = array( | |||||
'key_draft' => array( | |||||
'columns' => array('authorPHID', 'transactionPHID'), | |||||
), | |||||
'key_changeset' => array( | |||||
'columns' => array('changesetID'), | |||||
), | |||||
'key_revision' => array( | |||||
'columns' => array('revisionPHID'), | |||||
), | |||||
) + $config[self::CONFIG_KEY_SCHEMA]; | |||||
return $config; | |||||
} | |||||
public function shouldUseMarkupCache($field) { | public function shouldUseMarkupCache($field) { | ||||
// Only cache submitted comments. | // Only cache submitted comments. | ||||
return ($this->getTransactionPHID() != null); | return ($this->getTransactionPHID() != null); | ||||
} | } | ||||
public static function sortAndGroupInlines( | public static function sortAndGroupInlines( | ||||
array $inlines, | array $inlines, | ||||
array $changesets) { | array $changesets) { | ||||
Show All 38 Lines |