Skip to content

Commit 3509848

Browse files
committed
return types in doc Semantic file
1 parent 4051fc8 commit 3509848

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.project
2+
*.buildpath
3+
.settings/*

Ajax/Semantic.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct($autoCompile=true) {
3535
*
3636
* @param string $identifier
3737
* @param array $items
38-
* @return Ajax\semantic\html\collections\HtmlMenu
38+
* @return Ajax\semantic\html\collections\menus\HtmlMenu
3939
*/
4040
public function htmlMenu($identifier, $items=array()) {
4141
return $this->addHtmlComponent(new HtmlMenu($identifier, $items));
@@ -45,6 +45,7 @@ public function htmlMenu($identifier, $items=array()) {
4545
* Adds an icon menu
4646
* @param string $identifier
4747
* @param array $items icons
48+
* @return Ajax\semantic\html\collections\menus\HtmlIconMenu
4849
*/
4950
public function htmlIconMenu($identifier, $items=array()) {
5051
return $this->addHtmlComponent(new HtmlIconMenu($identifier, $items));
@@ -54,6 +55,7 @@ public function htmlIconMenu($identifier, $items=array()) {
5455
* Adds an labeled icon menu
5556
* @param string $identifier
5657
* @param array $items icons
58+
* @return HtmlLabeledIconMenu
5759
*/
5860
public function htmlLabeledIconMenu($identifier, $items=array()) {
5961
return $this->addHtmlComponent(new HtmlLabeledIconMenu($identifier, $items));
@@ -64,6 +66,7 @@ public function htmlLabeledIconMenu($identifier, $items=array()) {
6466
* @param string $identifier
6567
* @param string $value
6668
* @param array $items
69+
* @return HtmlDropdown
6770
*/
6871
public function htmlDropdown($identifier, $value="", $items=array()) {
6972
return $this->addHtmlComponent(new HtmlDropdown($identifier, $value, $items));
@@ -73,6 +76,7 @@ public function htmlDropdown($identifier, $value="", $items=array()) {
7376
* Adds a new message
7477
* @param string $identifier
7578
* @param string $content
79+
* @return HtmlMessage
7680
*/
7781
public function htmlMessage($identifier, $content="") {
7882
return $this->addHtmlComponent(new HtmlMessage($identifier, $content));
@@ -82,6 +86,7 @@ public function htmlMessage($identifier, $content="") {
8286
*
8387
* @param string $identifier
8488
* @param mixed $content
89+
* @return HtmlPopup
8590
*/
8691
public function htmlPopup(BaseHtml $container, $identifier, $content) {
8792
return $this->addHtmlComponent(new HtmlPopup($container, $identifier, $content));
@@ -94,6 +99,7 @@ public function htmlPopup(BaseHtml $container, $identifier, $content) {
9499
* @param int $numCols
95100
* @param boolean $createCols
96101
* @param boolean $implicitRows
102+
* @return HtmlGrid
97103
*/
98104
public function htmlGrid($identifier, $numRows=1, $numCols=NULL, $createCols=true, $implicitRows=false) {
99105
return $this->addHtmlComponent(new HtmlGrid($identifier, $numRows, $numCols, $createCols, $implicitRows));
@@ -133,11 +139,17 @@ public function htmlAccordionMenu($identifier, $items=array()) {
133139
* Returns a new Semantic Form
134140
* @param string $identifier
135141
* @param array $elements
142+
* @return HtmlForm
136143
*/
137144
public function htmlForm($identifier, $elements=array()) {
138145
return $this->addHtmlComponent(new HtmlForm($identifier, $elements));
139146
}
140147

148+
/**
149+
* @param string $identifier
150+
* @param array $content
151+
* @return HtmlSticky
152+
*/
141153
public function htmlSticky($identifier, $content=array()) {
142154
return $this->addHtmlComponent(new HtmlSticky($identifier, $content));
143155
}

0 commit comments

Comments
 (0)