mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-02 19:52:44 +01:00
48561a8b1f
Summary: Created with spatch: lang=diff - phutil_render_tag + phutil_tag (X, Y, - phutil_escape_html( Z - ) ) Test Plan: Loaded homepage Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4501
28 lines
542 B
PHP
28 lines
542 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_tag(
|
|
'a',
|
|
array(
|
|
'href' => $this->baseURI.'?symbol='.$symbol,
|
|
'target' => $this->isFramed ? '_top' : null,
|
|
),
|
|
$symbol);
|
|
}
|
|
|
|
}
|