mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 11:12:42 +01:00
29 lines
569 B
PHP
29 lines
569 B
PHP
|
<?php
|
||
|
|
||
|
abstract class PhabricatorXHProfProfileView extends AphrontView {
|
||
|
|
||
|
private $baseURI;
|
||
|
private $isFramed;
|
||
|
|
||
|
public function setIsFramed($is_framed) {
|
||
|
$this->isFramed = $is_framed;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function setBaseURI($uri) {
|
||
|
$this->baseURI = $uri;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
protected function renderSymbolLink($symbol) {
|
||
|
return phutil_render_tag(
|
||
|
'a',
|
||
|
array(
|
||
|
'href' => $this->baseURI.'?symbol='.$symbol,
|
||
|
'target' => $this->isFramed ? '_top' : null,
|
||
|
),
|
||
|
phutil_escape_html($symbol));
|
||
|
}
|
||
|
|
||
|
}
|