user = $user; return $this; } public function setHandles(array $handles) { assert_instances_of($handles, 'PhabricatorObjectHandle'); $this->handles = $handles; return $this; } public function setComments(array $comments) { assert_instances_of($comments, 'PonderComment'); $this->comments = $comments; return $this; } public function setQuestionID($id) { $this->questionID = $id; return $this; } public function setActionURI($uri) { $this->actionURI = $uri; return $this; } public function setTarget($target) { $this->target = $target; return $this; } public function render() { require_celerity_resource('phabricator-remarkup-css'); require_celerity_resource('ponder-comment-table-css'); $user = $this->user; $handles = $this->handles; $comments = $this->comments; $comment_markup = array(); foreach ($comments as $comment) { $handle = $handles[$comment->getAuthorPHID()]; $body = PhabricatorMarkupEngine::renderOneObject( $comment, $comment->getMarkupField(), $this->user); $comment_anchor = ''; $comment_markup[] = '