Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/view/DivinerBookItemView.php
Show All 21 Lines | public function setType($type) { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function setHref($href) { | public function setHref($href) { | ||||
$this->href = $href; | $this->href = $href; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getTagName() { | protected function getTagName() { | ||||
return 'a'; | return 'a'; | ||||
} | } | ||||
public function getTagAttributes() { | protected function getTagAttributes() { | ||||
return array( | return array( | ||||
'class' => 'diviner-book-item', | 'class' => 'diviner-book-item', | ||||
'href' => $this->href, | 'href' => $this->href, | ||||
); | ); | ||||
} | } | ||||
public function getTagContent() { | protected function getTagContent() { | ||||
require_celerity_resource('diviner-shared-css'); | require_celerity_resource('diviner-shared-css'); | ||||
$title = phutil_tag( | $title = phutil_tag( | ||||
'span', | 'span', | ||||
array( | array( | ||||
'class' => 'diviner-book-item-title', | 'class' => 'diviner-book-item-title', | ||||
), | ), | ||||
$this->title); | $this->title); | ||||
Show All 19 Lines |