[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class DrydockBlueprintTransaction 4 extends PhabricatorApplicationTransaction { 5 6 const TYPE_NAME = 'drydock:blueprint:name'; 7 8 public function getApplicationName() { 9 return 'drydock'; 10 } 11 12 public function getApplicationTransactionType() { 13 return DrydockBlueprintPHIDType::TYPECONST; 14 } 15 16 public function getTitle() { 17 $old = $this->getOldValue(); 18 $new = $this->getNewValue(); 19 $author_handle = $this->renderHandleLink($this->getAuthorPHID()); 20 21 switch ($this->getTransactionType()) { 22 case self::TYPE_NAME: 23 if (!strlen($old)) { 24 return pht( 25 '%s created this blueprint.', 26 $author_handle); 27 } else { 28 return pht( 29 '%s renamed this blueprint from "%s" to "%s".', 30 $author_handle, 31 $old, 32 $new); 33 } 34 } 35 36 return parent::getTitle(); 37 } 38 39 }
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 |