createButton = phutil_render_tag( 'a', array( 'href' => $href, 'class' => 'create-button button green', ), $create_button); return $this; } public function setHeader($header) { $this->header = $header; return $this; } public function setWidth($width) { $this->width = $width; return $this; } public function render() { if ($this->header !== null) { $header = '

'.$this->header.'

'; } else { $header = null; } if ($this->createButton !== null) { $button = $this->createButton; } else { $button = null; } $table = $this->renderChildren(); $class = array('aphront-panel-view'); if ($this->width) { $class[] = 'aphront-panel-width-'.$this->width; } return '
'. $button. $header. $table. '
'; } }