[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/paste/storage/ -> PhabricatorPasteTransactionComment.php (source)

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


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