Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/paste/storage/PhabricatorPasteTransactionComment.php
12242 views
1
<?php
2
3
final class PhabricatorPasteTransactionComment
4
extends PhabricatorApplicationTransactionComment {
5
6
protected $lineNumber;
7
protected $lineLength;
8
9
public function getApplicationTransactionObject() {
10
return new PhabricatorPasteTransaction();
11
}
12
13
public function shouldUseMarkupCache($field) {
14
// Only cache submitted comments.
15
return ($this->getTransactionPHID() != null);
16
}
17
18
protected function getConfiguration() {
19
$config = parent::getConfiguration();
20
$config[self::CONFIG_COLUMN_SCHEMA] = array(
21
'lineNumber' => 'uint32?',
22
'lineLength' => 'uint32?',
23
) + $config[self::CONFIG_COLUMN_SCHEMA];
24
return $config;
25
}
26
27
}
28
29