1 | <?php |
||
24 | class ItemList extends Item |
||
25 | { |
||
26 | /** |
||
27 | * __construct |
||
28 | * |
||
29 | * @param array $attributes array of attribute name => value pairs |
||
30 | * |
||
31 | * Possible attributes: |
||
32 | * 'items' - Item[] (optional, can be added with addItem()) |
||
33 | * 'caption' - link caption (required for dropdowns) |
||
34 | * 'icon' - css classes for icon, i.e. "glyphicon glyphicon-ok" |
||
35 | * 'id' - element id for container association (i.e. aria-labelledby) |
||
36 | * 'dropdown' - override "dropdown" class, i.e. "dropup" |
||
37 | */ |
||
38 | 1 | public function __construct($attributes = array()) |
|
46 | |||
47 | /** |
||
48 | * Add an item to the ItemList |
||
49 | * |
||
50 | * @param Item $item item to add |
||
51 | * |
||
52 | * @return $this for fluent access |
||
53 | */ |
||
54 | public function addItem(Item $item) |
||
59 | } |
||
60 |