Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUITextView.php
<?php | <?php | ||||
final class PHUITextView extends AphrontTagView { | final class PHUITextView extends AphrontTagView { | ||||
private $text; | private $text; | ||||
public function setText($text) { | public function setText($text) { | ||||
$this->appendChild($text); | $this->appendChild($text); | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getTagName() { | protected function getTagName() { | ||||
return 'span'; | return 'span'; | ||||
} | } | ||||
public function getTagAttributes() { | protected function getTagAttributes() { | ||||
require_celerity_resource('phui-text-css'); | require_celerity_resource('phui-text-css'); | ||||
return array(); | return array(); | ||||
} | } | ||||
} | } |