@@ 108-116 (lines=9) @@ | ||
105 | * |
|
106 | * @return Buttonbox |
|
107 | */ |
|
108 | public function addItem($title, $link, $icon, $extra = '') |
|
109 | { |
|
110 | $item['title'] = $title; |
|
111 | $item['link'] = $link; |
|
112 | $item['icon'] = $icon; |
|
113 | $item['extra'] = $extra; |
|
114 | $this->items[] = $item; |
|
115 | return $this; |
|
116 | } |
|
117 | ||
118 | /** |
|
119 | * render the buttonbox |
@@ 369-377 (lines=9) @@ | ||
366 | * |
|
367 | * @return bool |
|
368 | */ |
|
369 | public function addItemButton($title, $link, $icon = 'add', $extra = '') |
|
370 | { |
|
371 | $ret['title'] = $title; |
|
372 | $ret['link'] = $link; |
|
373 | $ret['icon'] = $icon; |
|
374 | $ret['extra'] = $extra; |
|
375 | $this->itemButton[] = $ret; |
|
376 | return true; |
|
377 | } |
|
378 | ||
379 | /** |
|
380 | * Add a tips |