3 final class AphrontMoreView
extends AphrontView
{
9 public function setSome($some) {
14 public function setMore($more) {
19 public function setExpandText($text) {
20 $this->expandtext
= $text;
24 public function render() {
27 $content[] = $this->some
;
29 if ($this->more
&& $this->more
!= $this->some
) {
30 $text = "(".pht('Show More')."\xE2\x80\xA6)";
31 if ($this->expandtext
!== null) {
32 $text = $this->expandtext
;
35 Javelin
::initBehavior('aphront-more');
37 $content[] = javelin_tag(
40 'sigil' => 'aphront-more-view-show-more',
41 'mustcapture' => true,
44 'more' => $this->more
,
53 'sigil' => 'aphront-more-view',