Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/storage/PhabricatorFileTransactionComment.php
<?php | <?php | ||||
final class PhabricatorFileTransactionComment | final class PhabricatorFileTransactionComment | ||||
extends PhabricatorApplicationTransactionComment { | extends PhabricatorApplicationTransactionComment { | ||||
public function getApplicationTransactionObject() { | public function getApplicationTransactionObject() { | ||||
return new PhabricatorFileTransaction(); | return new PhabricatorFileTransaction(); | ||||
} | } | ||||
public function shouldUseMarkupCache($field) { | public function shouldUseMarkupCache($field) { | ||||
// Only cache submitted comments. | // Only cache submitted comments. | ||||
return ($this->getTransactionPHID() != null); | return ($this->getTransactionPHID() != null); | ||||
} | } | ||||
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; | |||||
} | |||||
} | } |