[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorAuditTransactionComment 4 extends PhabricatorApplicationTransactionComment { 5 6 protected $commitPHID; 7 protected $pathID; 8 protected $isNewFile = 0; 9 protected $lineNumber = 0; 10 protected $lineLength = 0; 11 protected $fixedState; 12 protected $hasReplies = 0; 13 protected $replyToCommentPHID; 14 protected $legacyCommentID; 15 16 public function getApplicationTransactionObject() { 17 return new PhabricatorAuditTransaction(); 18 } 19 20 public function shouldUseMarkupCache($field) { 21 // Only cache submitted comments. 22 return ($this->getTransactionPHID() != null); 23 } 24 25 public function getConfiguration() { 26 $config = parent::getConfiguration(); 27 28 $config[self::CONFIG_COLUMN_SCHEMA] = array( 29 'commitPHID' => 'phid?', 30 'pathID' => 'id?', 31 'isNewFile' => 'bool', 32 'lineNumber' => 'uint32', 33 'lineLength' => 'uint32', 34 'fixedState' => 'text12?', 35 'hasReplies' => 'bool', 36 'replyToCommentPHID' => 'phid?', 37 'legacyCommentID' => 'id?', 38 ) + $config[self::CONFIG_COLUMN_SCHEMA]; 39 40 $config[self::CONFIG_KEY_SCHEMA] = array( 41 'key_path' => array( 42 'columns' => array('pathID'), 43 ), 44 'key_draft' => array( 45 'columns' => array('authorPHID', 'transactionPHID'), 46 ), 47 'key_commit' => array( 48 'columns' => array('commitPHID'), 49 ), 50 'key_legacy' => array( 51 'columns' => array('legacyCommentID'), 52 ), 53 ) + $config[self::CONFIG_KEY_SCHEMA]; 54 55 return $config; 56 } 57 58 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |