Page MenuHomec4science

PhabricatorPasteTransactionComment.php
No OneTemporary

File Metadata

Created
Sun, Jun 23, 11:55

PhabricatorPasteTransactionComment.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);
}
protected function getConfiguration() {
$config = parent::getConfiguration();
$config[self::CONFIG_COLUMN_SCHEMA] = array(
'lineNumber' => 'uint32?',
'lineLength' => 'uint32?',
) + $config[self::CONFIG_COLUMN_SCHEMA];
return $config;
}
}

Event Timeline