2013-09-05 22:11:02 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorFileTransactionComment
|
|
|
|
extends PhabricatorApplicationTransactionComment {
|
|
|
|
|
|
|
|
public function getApplicationTransactionObject() {
|
|
|
|
return new PhabricatorFileTransaction();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function shouldUseMarkupCache($field) {
|
|
|
|
// Only cache submitted comments.
|
|
|
|
return ($this->getTransactionPHID() != null);
|
|
|
|
}
|
2014-07-10 00:12:48 +02:00
|
|
|
|
2014-09-19 14:44:40 +02:00
|
|
|
public function getConfiguration() {
|
|
|
|
$config = parent::getConfiguration();
|
|
|
|
$config[self::CONFIG_KEY_SCHEMA] = array(
|
|
|
|
'key_draft' => array(
|
|
|
|
'columns' => array('authorPHID', 'transactionPHID'),
|
|
|
|
),
|
|
|
|
) + $config[self::CONFIG_KEY_SCHEMA];
|
|
|
|
return $config;
|
|
|
|
}
|
|
|
|
|
2013-09-05 22:11:02 +02:00
|
|
|
}
|