[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/files/storage/ -> PhabricatorFileTransactionComment.php (source)

   1  <?php
   2  
   3  final class PhabricatorFileTransactionComment
   4    extends PhabricatorApplicationTransactionComment {
   5  
   6    public function getApplicationTransactionObject() {
   7      return new PhabricatorFileTransaction();
   8    }
   9  
  10    public function shouldUseMarkupCache($field) {
  11      // Only cache submitted comments.
  12      return ($this->getTransactionPHID() != null);
  13    }
  14  
  15    public function getConfiguration() {
  16      $config = parent::getConfiguration();
  17      $config[self::CONFIG_KEY_SCHEMA] = array(
  18        'key_draft' => array(
  19          'columns' => array('authorPHID', 'transactionPHID'),
  20          'unique' => true,
  21        ),
  22      ) + $config[self::CONFIG_KEY_SCHEMA];
  23      return $config;
  24    }
  25  
  26  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1