1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 04:50:55 +01:00
phorge-phorge/src/applications/paste/storage/PhabricatorPasteTransactionComment.php
Joshua Spence d6b882a804 Fix visiblity of LiskDAO::getConfiguration()
Summary: Ref T6822.

Test Plan: `grep`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: hach-que, Korvin, epriestley

Maniphest Tasks: T6822

Differential Revision: https://secure.phabricator.com/D11370
2015-01-14 06:54:13 +11:00

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