[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/view/phui/calendar/ -> PHUICalendarWidgetView.php (source)

   1  <?php
   2  
   3  final class PHUICalendarWidgetView extends AphrontTagView {
   4  
   5    private $header;
   6    private $list;
   7  
   8    public function setHeader($date) {
   9      $this->header = $date;
  10      return $this;
  11    }
  12  
  13    public function setCalendarList(PHUICalendarListView $list) {
  14      $this->list = $list;
  15      return $this;
  16    }
  17  
  18    public function getTagName() {
  19      return 'div';
  20    }
  21  
  22    public function getTagAttributes() {
  23      require_celerity_resource('phui-calendar-list-css');
  24      return array('class' => 'phui-calendar-list-container');
  25    }
  26  
  27    protected function getTagContent() {
  28  
  29      $header = id(new PHUIHeaderView())
  30        ->setHeader($this->header);
  31  
  32      $box = id(new PHUIObjectBoxView())
  33        ->setHeader($header)
  34        ->setFlush(true)
  35        ->appendChild($this->list);
  36  
  37      return $box;
  38    }
  39  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1