[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/differential/customfield/ -> DifferentialApplyPatchField.php (source)

   1  <?php
   2  
   3  final class DifferentialApplyPatchField
   4    extends DifferentialCustomField {
   5  
   6    public function getFieldKey() {
   7      return 'differential:apply-patch';
   8    }
   9  
  10    public function getFieldName() {
  11      return pht('Apply Patch');
  12    }
  13  
  14    public function getFieldDescription() {
  15      return pht('Provides instructions for applying a local patch.');
  16    }
  17  
  18    public function shouldAppearInPropertyView() {
  19      return true;
  20    }
  21  
  22    public function renderPropertyViewLabel() {
  23      return $this->getFieldName();
  24    }
  25  
  26    public function renderPropertyViewValue(array $handles) {
  27      $mono = $this->getObject()->getMonogram();
  28  
  29      return phutil_tag('tt', array(), "arc patch {$mono}");
  30    }
  31  
  32  }


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