1 | <?php |
||
14 | trait SemanticHtmlCollectionsTrait { |
||
15 | |||
16 | public abstract function addHtmlComponent($htmlComponent); |
||
17 | |||
18 | /** |
||
19 | * @param string $identifier |
||
20 | * @param int $rowCount |
||
21 | * @param int $colCount |
||
22 | * @return HtmlTable |
||
23 | */ |
||
24 | public function htmlTable($identifier, $rowCount, $colCount){ |
||
27 | |||
28 | /** |
||
29 | * Adds a new message |
||
30 | * @param string $identifier |
||
31 | * @param string $content |
||
32 | * @param $styles string|array|NULL |
||
33 | * @return HtmlMessage |
||
34 | */ |
||
35 | public function htmlMessage($identifier, $content="",$styles=NULL) { |
||
41 | |||
42 | /** |
||
43 | * |
||
44 | * @param string $identifier |
||
45 | * @param array $items |
||
46 | * @return Ajax\semantic\html\collections\HtmlMenu |
||
47 | */ |
||
48 | public function htmlMenu($identifier, $items=array()) { |
||
51 | |||
52 | /** |
||
53 | * Adds an icon menu |
||
54 | * @param string $identifier |
||
55 | * @param array $items icons |
||
56 | */ |
||
57 | public function htmlIconMenu($identifier, $items=array()) { |
||
60 | |||
61 | /** |
||
62 | * Adds an labeled icon menu |
||
63 | * @param string $identifier |
||
64 | * @param array $items icons |
||
65 | */ |
||
66 | public function htmlLabeledIconMenu($identifier, $items=array()) { |
||
69 | |||
70 | /** |
||
71 | * Returns a new Semantic Html Breadcrumb |
||
72 | * @param string $identifier |
||
73 | * @param array $items |
||
74 | * @param boolean $autoActive sets the last element's class to <b>active</b> if true. default : true |
||
75 | * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()} |
||
76 | * @return HtmlBreadcrumb |
||
77 | */ |
||
78 | public function htmlBreadcrumb($identifier, $items=array(), $autoActive=true, $startIndex=0, $hrefFunction=NULL) { |
||
81 | |||
82 | |||
83 | /** |
||
84 | * Returns a new Semantic Form |
||
85 | * @param string $identifier |
||
86 | * @param array $elements |
||
87 | * @return HtmlForm |
||
88 | */ |
||
89 | public function htmlForm($identifier, $elements=array()) { |
||
92 | |||
93 | /** |
||
94 | * |
||
95 | * @param string $identifier |
||
96 | * @param int $numRows |
||
97 | * @param int $numCols |
||
98 | * @param boolean $createCols |
||
99 | * @param boolean $implicitRows |
||
100 | * @return HtmlGrid |
||
101 | */ |
||
102 | public function htmlGrid($identifier, $numRows=1, $numCols=NULL, $createCols=true, $implicitRows=false) { |
||
105 | } |