@@ -87,6 +87,9 @@ |
||
| 87 | 87 | $this->addItem($function($object)); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | + /** |
|
| 91 | + * @param \Closure $callBack |
|
| 92 | + */ |
|
| 90 | 93 | public function apply($callBack){ |
| 91 | 94 | foreach ($this->content as $item){ |
| 92 | 95 | $callBack($item); |
@@ -21,6 +21,11 @@ discard block |
||
| 21 | 21 | protected $_contentSeparator=""; |
| 22 | 22 | |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param string $identifier |
|
| 26 | + * @param string $tagName |
|
| 27 | + * @param string $baseClass |
|
| 28 | + */ |
|
| 24 | 29 | public function __construct($identifier,$tagName,$baseClass){ |
| 25 | 30 | parent::__construct($identifier,$tagName,$baseClass); |
| 26 | 31 | $this->root=""; |
@@ -31,8 +36,7 @@ discard block |
||
| 31 | 36 | * Associate an ajax get to the elements, displayed in $targetSelector |
| 32 | 37 | * $attr member is used to build each element url |
| 33 | 38 | * @param string $targetSelector the target of the get |
| 34 | - * @param string $attr the html attribute used to build the elements url |
|
| 35 | - * @return HtmlNavElement |
|
| 39 | + * @return HtmlSemNavElement |
|
| 36 | 40 | */ |
| 37 | 41 | public function autoGetOnClick($targetSelector){ |
| 38 | 42 | return $this->getOnClick($this->root, $targetSelector,array("attr"=>$this->attr)); |
@@ -64,7 +68,7 @@ discard block |
||
| 64 | 68 | /** |
| 65 | 69 | * Define the html attribute for each element url in ajax |
| 66 | 70 | * @param string $attr html attribute |
| 67 | - * @return HtmlNavElement |
|
| 71 | + * @return HtmlSemNavElement |
|
| 68 | 72 | */ |
| 69 | 73 | public function setAttr($attr) { |
| 70 | 74 | $this->attr = $attr; |
@@ -55,8 +55,7 @@ discard block |
||
| 55 | 55 | * Associate an ajax get to the breadcrumb elements, displayed in $targetSelector |
| 56 | 56 | * $attr member is used to build each element url |
| 57 | 57 | * @param string $targetSelector the target of the get |
| 58 | - * @param string $attr the html attribute used to build the elements url |
|
| 59 | - * @return HtmlBreadcrumbs |
|
| 58 | + * @return HtmlBreadcrumb |
|
| 60 | 59 | */ |
| 61 | 60 | public function autoGetOnClick($targetSelector){ |
| 62 | 61 | return $this->getOnClick($this->root, $targetSelector,array("attr"=>$this->attr)); |
@@ -118,7 +117,7 @@ discard block |
||
| 118 | 117 | /** |
| 119 | 118 | * sets the function who generates the href elements. default : function($element){return $element->getContent()} |
| 120 | 119 | * @param function $_hrefFunction |
| 121 | - * @return \Ajax\bootstrap\html\HtmlBreadcrumbs |
|
| 120 | + * @return HtmlBreadcrumb |
|
| 122 | 121 | */ |
| 123 | 122 | public function setHrefFunction($_hrefFunction) { |
| 124 | 123 | $this->_hrefFunction = $_hrefFunction; |