Differential D10528 Diff 25343 src/applications/paste/storage/PhabricatorPasteTransactionComment.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/storage/PhabricatorPasteTransactionComment.php
Show All 9 Lines | public function getApplicationTransactionObject() { | ||||
return new PhabricatorPasteTransaction(); | return new PhabricatorPasteTransaction(); | ||||
} | } | ||||
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_COLUMN_SCHEMA] = array( | |||||
'lineNumber' => 'uint32?', | |||||
'lineLength' => 'uint32?', | |||||
) + $config[self::CONFIG_COLUMN_SCHEMA]; | |||||
return $config; | |||||
} | |||||
} | } |