2013-08-02 21:56:58 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorPasteTransactionComment
|
|
|
|
extends PhabricatorApplicationTransactionComment {
|
|
|
|
|
|
|
|
protected $lineNumber;
|
|
|
|
protected $lineLength;
|
|
|
|
|
|
|
|
public function getApplicationTransactionObject() {
|
|
|
|
return new PhabricatorPasteTransaction();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function shouldUseMarkupCache($field) {
|
|
|
|
// Only cache submitted comments.
|
|
|
|
return ($this->getTransactionPHID() != null);
|
|
|
|
}
|
2014-07-10 00:12:48 +02:00
|
|
|
|
2015-01-13 20:47:05 +01:00
|
|
|
protected function getConfiguration() {
|
2014-09-24 22:50:57 +02:00
|
|
|
$config = parent::getConfiguration();
|
|
|
|
$config[self::CONFIG_COLUMN_SCHEMA] = array(
|
|
|
|
'lineNumber' => 'uint32?',
|
|
|
|
'lineLength' => 'uint32?',
|
|
|
|
) + $config[self::CONFIG_COLUMN_SCHEMA];
|
|
|
|
return $config;
|
|
|
|
}
|
|
|
|
|
2013-08-02 21:56:58 +02:00
|
|
|
}
|