3 final class DivinerBookItemView
extends AphrontTagView
{
10 public function setTitle($title) {
11 $this->title
= $title;
15 public function setSubtitle($subtitle) {
16 $this->subtitle
= $subtitle;
20 public function setType($type) {
25 public function setHref($href) {
30 protected function getTagName() {
34 protected function getTagAttributes() {
36 'class' => 'diviner-book-item',
37 'href' => $this->href
,
41 protected function getTagContent() {
42 require_celerity_resource('diviner-shared-css');
47 'class' => 'diviner-book-item-title',
51 $subtitle = phutil_tag(
54 'class' => 'diviner-book-item-subtitle',
61 'class' => 'diviner-book-item-type',
65 return array($title, $type, $subtitle);