mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
502d18ede4
Summary: Ref T1191. Nothing notable in these. Test Plan: Viewed web UI. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T1191 Differential Revision: https://secure.phabricator.com/D10528
27 lines
674 B
PHP
27 lines
674 B
PHP
<?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);
|
|
}
|
|
|
|
public function getConfiguration() {
|
|
$config = parent::getConfiguration();
|
|
$config[self::CONFIG_COLUMN_SCHEMA] = array(
|
|
'lineNumber' => 'uint32?',
|
|
'lineLength' => 'uint32?',
|
|
) + $config[self::CONFIG_COLUMN_SCHEMA];
|
|
return $config;
|
|
}
|
|
|
|
}
|