@@ -36,7 +36,7 @@ class HtmlBreadcrumb extends HtmlSemNavElement {
3636
3737 /**
3838 *
39- * @var object<Closure> the function who generates the href elements. default : function($e){return $e->getContent()}
39+ * @var callable the function who generates the href elements. default : function($e){return $e->getContent()}
4040 */
4141 protected $ _hrefFunction ;
4242
@@ -91,17 +91,18 @@ public function setActive($index=null) {
9191 }
9292
9393 /**
94- * Add new elements in breadcrumbs corresponding to request dispatcher : controllerName, actionName, parameters
94+ * Adds new elements in breadcrumbs corresponding to request dispatcher : controllerName, actionName, parameters
9595 * @param JsUtils $js
9696 * @param object $dispatcher the request dispatcher
97- * @return \Ajax\bootstrap\html\HtmlBreadcrumbs
97+ * @return HtmlBreadcrumb
9898 */
9999 public function fromDispatcher (JsUtils $ js ,$ dispatcher , $ startIndex =0 ) {
100+ $ this ->startIndex =$ startIndex ;
100101 return $ this ->addItems ($ js ->fromDispatcher ($ dispatcher ));
101102 }
102103
103104 /**
104- * Return the url of the element at $index or the breadcrumbs url if $index is ommited
105+ * Returns the url of the element at $index or the breadcrumbs url if $index is ommited
105106 * @param int $index
106107 * @param string $separator
107108 * @return string
@@ -123,7 +124,7 @@ public function getHref($index=null, $separator="/") {
123124 * sets the function who generates the href elements.
124125 * default : function($element){return $element->getContent()}
125126 * @param callable $_hrefFunction
126- * @return \Ajax\bootstrap\html\HtmlBreadcrumbs
127+ * @return HtmlBreadcrumb
127128 */
128129 public function setHrefFunction ($ _hrefFunction ) {
129130 $ this ->_hrefFunction =$ _hrefFunction ;
0 commit comments