[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class HarbormasterBuildStepTransaction 4 extends PhabricatorApplicationTransaction { 5 6 const TYPE_CREATE = 'harbormaster:step:create'; 7 const TYPE_NAME = 'harbormaster:step:name'; 8 const TYPE_DEPENDS_ON = 'harbormaster:step:depends'; 9 const TYPE_DESCRIPTION = 'harbormaster:step:description'; 10 11 public function getApplicationName() { 12 return 'harbormaster'; 13 } 14 15 public function getApplicationTransactionType() { 16 return HarbormasterBuildStepPHIDType::TYPECONST; 17 } 18 19 public function getTitle() { 20 $author_phid = $this->getAuthorPHID(); 21 22 $old = $this->getOldValue(); 23 $new = $this->getNewValue(); 24 25 switch ($this->getTransactionType()) { 26 case self::TYPE_CREATE: 27 return pht( 28 '%s created this build step.', 29 $this->renderHandleLink($author_phid)); 30 } 31 32 return parent::getTitle(); 33 } 34 35 public function getIcon() { 36 $author_phid = $this->getAuthorPHID(); 37 38 $old = $this->getOldValue(); 39 $new = $this->getNewValue(); 40 41 switch ($this->getTransactionType()) { 42 case self::TYPE_CREATE: 43 return 'fa-plus'; 44 } 45 46 return parent::getIcon(); 47 } 48 49 public function getColor() { 50 $author_phid = $this->getAuthorPHID(); 51 52 $old = $this->getOldValue(); 53 $new = $this->getNewValue(); 54 55 switch ($this->getTransactionType()) { 56 case self::TYPE_CREATE: 57 return 'green'; 58 } 59 60 return parent::getColor(); 61 } 62 63 }
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 |