Location: PHPKode > scripts > dyna_menue > dyna_menue/menueblock.class.inc
<?
// ----------------------------------------------------------------------
// GSIBC DATA CLASS SYSTEM
// Copyright (C) 2004 by gsibc.net.
// GSIBC.net stands behind the software with support, training, certification and consulting.
// ----------------------------------------------------------------------
// LICENSE

// This program is open source product; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Filename: menueblock.class.php
// Original  Author(s): Rafat Katta hide@address.com
// ----------------------------------------------------------------------//
class CMenueBlock {
	var $oarrElement;
	var $bStatus='none';// can be none or true
	var $strMenueblockName;

	function CMenueBlock($strHead){
		$this->strMenueblockName=$strHead;

	}
	function setListID($strlist){$this->strfoldinglist=$strlist;}
	function setUlID($strUl){$this->strfoldheader=$strUl;}
	function setElement(&$oElement){ $this->oElement=$oElement;}
	function getElement(){return $this->oElement;}
	function setStatus($bStatus){ $this->bStatus=$bStatus;}
	function getStatus(){return $this->bStatus;}
 	function showHtml(){
 	//	 echo 'Element=';echo $this->oarrElement;//->showHtml(); // just for debug
 	//	 echo "<b>TEST<b>";		// just for debug
	 while (list($key,$value)=each($this->oarrElement))
		 {
//		 echo $value; // just for debug
		 $value->showHtml();
		 echo "\n";
		 }
	  }
}
class CMBlock extends CMenueBlock {
	function CMBlock($strHead,&$oMenueList){
		parent::CMenueBlock($strHead);
		$oMenueList->oarrElement[$strHead]=&$this;	
	}
}	 
 ?>
Return current item: dyna_menue