[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/infrastructure/customfield/standard/ -> PhabricatorStandardCustomFieldHeader.php (source)

   1  <?php
   2  
   3  final class PhabricatorStandardCustomFieldHeader
   4    extends PhabricatorStandardCustomField {
   5  
   6    public function getFieldType() {
   7      return 'header';
   8    }
   9  
  10    public function renderEditControl(array $handles) {
  11      $header = phutil_tag(
  12        'div',
  13        array(
  14          'class' => 'phabricator-standard-custom-field-header',
  15        ),
  16        $this->getFieldName());
  17      return id(new AphrontFormStaticControl())
  18        ->setValue($header);
  19    }
  20  
  21    public function shouldUseStorage() {
  22      return false;
  23    }
  24  
  25    public function getStyleForPropertyView() {
  26      return 'header';
  27    }
  28  
  29    public function renderPropertyViewValue(array $handles) {
  30      return $this->getFieldName();
  31    }
  32  
  33  }


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