[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class AphrontContextBarView extends AphrontView { 4 5 protected $buttons = array(); 6 7 public function addButton($button) { 8 $this->buttons[] = $button; 9 return $this; 10 } 11 12 public function render() { 13 $view = new AphrontNullView(); 14 $view->appendChild($this->buttons); 15 16 require_celerity_resource('aphront-contextbar-view-css'); 17 18 return phutil_tag_div( 19 'aphront-contextbar-view', 20 array( 21 phutil_tag_div('aphront-contextbar-core', array( 22 phutil_tag_div('aphront-contextbar-buttons', $view->render()), 23 phutil_tag_div('aphront-contextbar-content', $this->renderChildren()), 24 )), 25 phutil_tag('div', array('style' => 'clear: both;')), 26 )); 27 } 28 29 }
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 |