2012-01-28 20:17:19 +01:00
|
|
|
<?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) {
|
2013-01-18 03:43:35 +01:00
|
|
|
return phutil_tag(
|
2012-01-28 20:17:19 +01:00
|
|
|
'a',
|
|
|
|
array(
|
|
|
|
'href' => $this->baseURI.'?symbol='.$symbol,
|
|
|
|
'target' => $this->isFramed ? '_top' : null,
|
|
|
|
),
|
2013-01-18 03:43:35 +01:00
|
|
|
$symbol);
|
2012-01-28 20:17:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|