[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/nuance/storage/ -> NuanceSourceTransaction.php (source)

   1  <?php
   2  
   3  final class NuanceSourceTransaction
   4    extends NuanceTransaction {
   5  
   6    const TYPE_NAME   = 'name-source';
   7  
   8    public function getApplicationTransactionType() {
   9      return NuanceSourcePHIDType::TYPECONST;
  10    }
  11  
  12    public function getApplicationTransactionCommentObject() {
  13      return new NuanceSourceTransactionComment();
  14    }
  15  
  16    public function getTitle() {
  17      $old = $this->getOldValue();
  18      $new = $this->getNewValue();
  19      $author_phid = $this->getAuthorPHID();
  20  
  21      switch ($this->getTransactionType()) {
  22        case self::TYPE_NAME:
  23          if ($old === null) {
  24            return pht(
  25              '%s created this source.',
  26              $this->renderHandleLink($author_phid));
  27          } else {
  28            return pht(
  29              '%s renamed this source from "%s" to "%s".',
  30              $this->renderHandleLink($author_phid),
  31              $old,
  32              $new);
  33          }
  34          break;
  35      }
  36  
  37    }
  38  
  39  }


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