3 final class PHUIBigInfoView
extends AphrontTagView
{
9 private $actions = array();
11 public function setIcon($icon) {
16 public function setTitle($title) {
17 $this->title
= $title;
21 public function setDescription($description) {
22 $this->description
= $description;
26 public function setImage($image) {
27 $this->image
= $image;
31 public function addAction(PHUIButtonView
$button) {
32 $this->actions
[] = $button;
36 protected function getTagName() {
40 protected function getTagAttributes() {
42 $classes[] = 'phui-big-info-view';
45 'class' => implode(' ', $classes),
49 protected function getTagContent() {
50 require_celerity_resource('phui-big-info-view-css');
54 $icon = id(new PHUIIconView())
55 ->setIcon($this->icon
)
56 ->addClass('phui-big-info-icon');
61 'class' => 'phui-big-info-icon-container',
70 'class' => 'phui-big-info-image',
71 'src' => $this->image
,
76 'class' => 'phui-big-info-icon-container',
84 'class' => 'phui-big-info-title',
88 $description = phutil_tag(
91 'class' => 'phui-big-info-description',
96 foreach ($this->actions
as $button) {
97 $buttons[] = phutil_tag(
100 'class' => 'phui-big-info-button',
107 $actions = phutil_tag(
110 'class' => 'phui-big-info-actions',
115 return array($icon, $title, $description, $actions);