[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorContentSourceView extends AphrontView { 4 5 private $contentSource; 6 7 public function setContentSource(PhabricatorContentSource $content_source) { 8 $this->contentSource = $content_source; 9 return $this; 10 } 11 12 public function render() { 13 require_celerity_resource('phabricator-content-source-view-css'); 14 15 $map = PhabricatorContentSource::getSourceNameMap(); 16 17 $source = $this->contentSource->getSource(); 18 $type = idx($map, $source, null); 19 20 if (!$type) { 21 return null; 22 } 23 24 return phutil_tag( 25 'span', 26 array( 27 'class' => 'phabricator-content-source-view', 28 ), 29 "Via {$type}"); 30 } 31 32 }
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 |