2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +----------------------------------------------------------------------+
5 // +----------------------------------------------------------------------+
6 // | Copyright (c) 1997-2003 The PHP Group |
7 // +----------------------------------------------------------------------+
8 // | This source file is subject to version 2.02 of the PHP license, |
9 // | that is bundled with this package in the file LICENSE, and is |
10 // | available at through the world-wide-web at |
11 // | http://www.php.net/license/2_02.txt. |
12 // | If you did not receive a copy of the PHP license and are unable to |
13 // | obtain it through the world-wide-web, please send a note to |
14 // | license@php.net so we can mail you a copy immediately. |
15 // +----------------------------------------------------------------------+
16 // | Created: Tue Apr 29 12:35:45 2003
17 // | Author: Martin Marrese <mmarre@mecon.gov.ar>
18 // +----------------------------------------------------------------------+
27 #require_once 'PEAR.php';
31 require_once 'Menu.php';
34 // +X2C Class 103 :MenuVertical
39 class MenuVertical extends Menu {
44 * Funcion que se encarga de devolver el html que hay que mostrar en pantalla.
50 function toHtml() // ~X2C
52 return "<a href=\"".$this->_link."\"><img name=\"".$this->_nombre."\" src=\"images/carp2_f2\" border=\"0\">".$this->_nombre."</a>";
58 * Constructor. Recibe el nombre del menu, el link y el nombre de la imagen.
60 * @param array $menu Array con los datos del menu
66 function MenuVertical($menu) // ~X2C
68 parent::Menu(null,null);
69 $this->_nombre = $menu['nombre'];
70 $this->_link = $menu['link'];
71 $this->_imagen = $menu['imagenComun'];
75 } // -X2C Class :MenuVertical