properties[$key] = $value; return $this; } public function render() { require_celerity_resource('phabricator-property-list-view-css'); $items = array(); foreach ($this->properties as $key => $value) { $items[] = phutil_render_tag( 'dt', array( 'class' => 'phabricator-property-key', ), phutil_escape_html($key)); $items[] = phutil_render_tag( 'dd', array( 'class' => 'phabricator-property-value', ), $this->renderSingleView($value)); } $list = phutil_render_tag( 'dl', array( ), $this->renderSingleView($items)); return phutil_render_tag( 'div', array( 'class' => 'phabricator-property-list-view', ), $list); } }