Changeset View
Changeset View
Standalone View
Standalone View
src/applications/legalpad/storage/LegalpadTransactionComment.php
Show All 13 Lines | public function getApplicationTransactionObject() { | ||||
return new LegalpadTransaction(); | return new LegalpadTransaction(); | ||||
} | } | ||||
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( | |||||
'documentID' => 'id?', | |||||
'lineNumber' => 'uint32', | |||||
'lineLength' => 'uint32', | |||||
'fixedState' => 'text12?', | |||||
'hasReplies' => 'bool', | |||||
'replyToCommentPHID' => 'phid?', | |||||
) + $config[self::CONFIG_COLUMN_SCHEMA]; | |||||
$config[self::CONFIG_KEY_SCHEMA] = array( | |||||
'key_draft' => array( | |||||
'columns' => array('authorPHID', 'documentID', 'transactionPHID'), | |||||
), | |||||
) + $config[self::CONFIG_KEY_SCHEMA]; | |||||
return $config; | |||||
} | |||||
} | } |