Generate file attachment transactions for explicit Remarkup attachments on common...
[phabricator.git] / src / view / phui / PHUILinkView.php
blob33843c2ae9e8eabc3b23fb35fc58ad9510c8b95a
1 <?php
3 final class PHUILinkView
4 extends AphrontTagView {
6 private $uri;
7 private $text;
8 private $workflow;
10 public function setURI($uri) {
11 $this->uri = $uri;
12 return $this;
15 public function getURI() {
16 return $this->uri;
19 public function setText($text) {
20 $this->text = $text;
21 return $this;
24 public function setWorkflow($workflow) {
25 $this->workflow = $workflow;
26 return $this;
29 protected function getTagName() {
30 return 'a';
33 protected function getTagAttributes() {
34 $sigil = array();
36 if ($this->workflow) {
37 $sigil[] = 'workflow';
40 return array(
41 'href' => $this->getURI(),
42 'sigil' => $sigil,
46 protected function getTagContent() {
47 return $this->text;