Ajax/semantic/html/modules/HtmlTab.php
public function setMenu($menu){
		$contentSize=\sizeof($this->content);
		for($i=0;$i<$contentSize;$i++){
			if($menu->getItem($i)!==NULL){
				if(isset($this->content[$i])){
					$menu->getItem($i)->addToProperty("data-tab",$this->content[$i]->getProperty("data-tab"));
				}
			}
		}
		$menuSize=$menu->count();
		for($i=0;$i<$menuSize;$i++){
			$menu->getItem($i)->removeProperty("href");
			if(isset($this->content[$i])===false){
				$this->content[$i]=$this->createSegment($i, "New content", $menu->getItem($i)->getIdentifier());
			}
			$menu->getItem($i)->addToProperty("data-tab",$this->content[$i]->getProperty("data-tab"));
		}

		$this->content["menu"]=$menu;
		return $this;
	}
public function setMenu($menu){
		$contentSize=\sizeof($this->content);
		for($i=0;$i<$contentSize;$i++){
			if($menu->getItem($i)!==NULL){
				if(isset($this->content[$i])){
					$menu->getItem($i)->addToProperty("data-tab",$this->content[$i]->getProperty("data-tab"));
				}
			}
		}
		$menuSize=$menu->count();
		for($i=0;$i<$menuSize;$i++){
			$menu->getItem($i)->removeProperty("href");
			if(isset($this->content[$i])===false){
				$this->content[$i]=$this->createSegment($i, "New content", $menu->getItem($i)->getIdentifier());
			}
			$menu->getItem($i)->addToProperty("data-tab",$this->content[$i]->getProperty("data-tab"));
		}

		$this->content["menu"]=$menu;
		return $this;
	}
public function setMenu ( $ menu ) { $ contentSize = \ sizeof ( $ this -> content ) ; for ( $ i = 0 ; $ i < $ contentSize ; $ i ++ ) { if ( $ menu -> getItem ( $ i ) !== NULL ) { if ( isset ( $ this -> content [ $ i ] ) ) { $ menu -> getItem ( $ i ) -> addToProperty ( "data-tab" , $ this -> content [ $ i ] -> getProperty ( "data-tab" ) ) ; } } } $ menuSize = $ menu -> count ( ) ; for ( $ i = 0 ; $ i < $ menuSize ; $ i ++ ) { $ menu -> getItem ( $ i ) -> removeProperty ( "href" ) ; if ( isset ( $ this -> content [ $ i ] ) === false ) { $ this -> content [ $ i ] = $ this -> createSegment ( $ i , "New content" , $ menu -> getItem ( $ i ) -> getIdentifier ( ) ) ; } $ menu -> getItem ( $ i ) -> addToProperty ( "data-tab" , $ this -> content [ $ i ] -> getProperty ( "data-tab" ) ) ; } $ this -> content [ "menu" ] = $ menu ; return $ this ; }
Sets the menu of tabs
@param HtmlMenu $menu
@return \Ajax\semantic\html\modules\HtmlTab
Sets the menu of tabs