Ajax/bootstrap/html/HtmlDropdown.php
public function addItem($caption, $href="#") {
		if($caption instanceof HtmlDropdownItem){
			$item=$caption;
		}else{
			$iid=$this->getItemsCount()+1;
			$item=new HtmlDropdownItem($this->identifier."-dropdown-item-".$iid);
			$item->setCaption($caption)->setHref($href);
		}
		$this->items []=$item;
		return $item;
	}
public function addItem($caption, $href="#") {
		if($caption instanceof HtmlDropdownItem){
			$item=$caption;
		}else{
			$iid=$this->getItemsCount()+1;
			$item=new HtmlDropdownItem($this->identifier."-dropdown-item-".$iid);
			$item->setCaption($caption)->setHref($href);
		}
		$this->items []=$item;
		return $item;
	}
public function addItem ( $ caption , $ href = "#" ) { if ( $ caption instanceof HtmlDropdownItem ) { $ item = $ caption ; } else { $ iid = $ this -> getItemsCount ( ) + 1 ; $ item = new HtmlDropdownItem ( $ this -> identifier . "-dropdown-item-" . $ iid ) ; $ item -> setCaption ( $ caption ) -> setHref ( $ href ) ; } $ this -> items [ ] = $ item ; return $ item ; }
add an HtmlDropdownItem
@param string $caption
@param string $href
@return HtmlDropdownItem
add an HtmlDropdownItem