Code Duplication    Length = 11-13 lines in 2 locations

Ajax/bootstrap/html/HtmlBreadcrumbs.php 1 location

@@ 44-56 (lines=13) @@
41
	 * @param boolean $autoActive sets the last element's class to <b>active</b> if true
42
	 * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()}
43
	 */
44
	public function __construct($identifier,$elements=array(),$autoActive=true,$startIndex=0,$hrefFunction=NULL){
45
		parent::__construct($identifier,"ol");
46
		$this->startIndex=$startIndex;
47
		$this->setProperty("class", "breadcrumb");
48
		$this->content=array();
49
		$this->autoActive=$autoActive;
50
		$this->absolutePaths;
51
		$this->_hrefFunction=function ($e){return $e->getContent();};
52
		if(isset($hrefFunction)){
53
			$this->_hrefFunction=$hrefFunction;
54
		}
55
		$this->addElements($elements);
56
	}
57
58
	/**
59
	 * @param mixed $element

Ajax/semantic/html/collections/HtmlBreadcrumb.php 1 location

@@ 42-52 (lines=11) @@
39
	 * @param boolean $autoActive sets the last element's class to <b>active</b> if true
40
	 * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()}
41
	 */
42
	public function __construct( $identifier,$items=array(),$autoActive=true,$startIndex=0,$hrefFunction=NULL){
43
		parent::__construct( $identifier, "div", "ui breadcrumb");
44
		$this->startIndex=$startIndex;
45
		$this->autoActive=$autoActive;
46
		$this->_contentSeparator="<div class='divider'> / </div>";
47
		$this->_hrefFunction=function ($e){return $e->getContent();};
48
		if(isset($hrefFunction)){
49
			$this->_hrefFunction=$hrefFunction;
50
		}
51
		$this->addItems($items);
52
	}
53
54
	/**
55
	 * Associate an ajax get to the breadcrumb elements, displayed in $targetSelector