<?
// ----------------------------------------------------------------------
// 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: menuegrafikelem.class.php
// Original Author(s): Rafat Katta hide@address.com
// ----------------------------------------------------------------------//
include_once("grafiklink.class.inc");
class CGTMenueElem extends CGLinks {
var $strText;
function CGTMenueElem($strURL,$strIMG,$strText,&$oMenue){
parent::CGLinks($strURL,$strIMG);
$this->strText=$strText;
$oMenue->oarrElement[$strURL]=&$this;
// $oMenue->oarrElement[$strURL]->showHtml();
}
function setText($strText){$this->strText=$strText;}
function getText(){return $this->strText;}
function showHtml(){
echo "<li>\n";
parent::showHtml();
echo '<a href="'.parent::getURL().'">'.$this->getText()."</a>";
echo "</li>";
}
}
?>