@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3abstract class PhabricatorXHProfProfileView extends AphrontView {
4
5 private $baseURI;
6 private $isFramed;
7
8 public function setIsFramed($is_framed) {
9 $this->isFramed = $is_framed;
10 return $this;
11 }
12
13 public function setBaseURI($uri) {
14 $this->baseURI = $uri;
15 return $this;
16 }
17
18 protected function renderSymbolLink($symbol) {
19 return phutil_tag(
20 'a',
21 array(
22 'href' => $this->baseURI.'?symbol='.$symbol,
23 'target' => $this->isFramed ? '_top' : null,
24 ),
25 $symbol);
26 }
27
28}