Path: blob/master/src/applications/legalpad/storage/LegalpadTransactionComment.php
13456 views
<?php12final class LegalpadTransactionComment3extends PhabricatorApplicationTransactionComment {45protected $documentID;6protected $lineNumber = 0;7protected $lineLength = 0;8protected $fixedState;9protected $hasReplies = 0;10protected $replyToCommentPHID;1112public function getApplicationTransactionObject() {13return new LegalpadTransaction();14}1516public function shouldUseMarkupCache($field) {17// Only cache submitted comments.18return ($this->getTransactionPHID() != null);19}2021protected function getConfiguration() {22$config = parent::getConfiguration();23$config[self::CONFIG_COLUMN_SCHEMA] = array(24'documentID' => 'id?',25'lineNumber' => 'uint32',26'lineLength' => 'uint32',27'fixedState' => 'text12?',28'hasReplies' => 'bool',29'replyToCommentPHID' => 'phid?',30) + $config[self::CONFIG_COLUMN_SCHEMA];31$config[self::CONFIG_KEY_SCHEMA] = array(32'key_draft' => array(33'columns' => array('authorPHID', 'documentID', 'transactionPHID'),34'unique' => true,35),36) + $config[self::CONFIG_KEY_SCHEMA];37return $config;38}3940}414243