profilePicture = $picture; return $this; } public function setName($name) { $this->profileName = $name; return $this; } public function setDescription($description) { $this->profileDescription = $description; return $this; } public function addAction($action) { $this->profileActions[] = $action; return $this; } public function setStatus($status) { $this->profileStatus = $status; return $this; } public function render() { require_celerity_resource('phabricator-profile-header-css'); $image = null; if ($this->profilePicture) { $image = phutil_tag( 'div', array( 'class' => 'profile-header-picture-frame', 'style' => 'background-image: url('.$this->profilePicture.');', ), ''); } $description = phutil_escape_html($this->profileDescription); if ($this->profileStatus != '') { $description = ''.phutil_escape_html($this->profileStatus).''. ($description != '' ? ' — ' : ''). $description; } return '
'. phutil_escape_html($this->profileName). ' '. self::renderSingleView($this->profileActions). ' '. $image. '
'. $description. '
'. $this->renderChildren(); } }