-<?php
-// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
-// +----------------------------------------------------------------------+
-// | PHP Version 4 |
-// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2003 The PHP Group |
-// +----------------------------------------------------------------------+
-// | This source file is subject to version 2.02 of the PHP license, |
-// | that is bundled with this package in the file LICENSE, and is |
-// | available at through the world-wide-web at |
-// | http://www.php.net/license/2_02.txt. |
-// | If you did not receive a copy of the PHP license and are unable to |
-// | obtain it through the world-wide-web, please send a note to |
-// | license@php.net so we can mail you a copy immediately. |
-// +----------------------------------------------------------------------+
-// | Created: Mon Apr 14 16:23:22 2003
-// | Author: Martin Marrese <mmarre@mecon.gov.ar>
-// +----------------------------------------------------------------------+
-//
-// $Id$
-// $Author$
-// $URL$
-// $Date$
-// $Rev$
-//
+<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
+-------------------------------------------------------------------------------
+ Ministerio de EconomÃa
+ meconlib
+-------------------------------------------------------------------------------
+This file is part of meconlib.
+
+meconlib is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2 of the License, or (at your option)
+any later version.
+
+meconlib 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.
+
+You should have received a copy of the GNU General Public License; if not,
+write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+Boston, MA 02111-1307 USA
+-------------------------------------------------------------------------------
+Creado: Mon Apr 14 16:23:22 2003
+Autor: Martin Marrese <mmarre@mecon.gov.ar>
+-------------------------------------------------------------------------------
+$Id$
+-----------------------------------------------------------------------------*/
require_once 'MECON/Marco/Seccion.php';
require_once 'MECON/Marco/ImagenAnimada.php';
define ('MENU_SERIALIZADO' , 'MenuSerializado');
define ('ARRAYSECCIONES_SERIALIZADO', 'ArraySeccionesSerializado');
-// +X2C Class 14 :Menu
+// +X2C Class 14 :MECON_Marco_Menu
/**
* Clase para el manejo de los menues y secciones de los sistemas.
*
+ * @package MECON_Marco
* @access public
*/
-class Menu {
+class MECON_Marco_Menu {
/**
* Array con la configuracion de las secciones del sistema;.
*
* @var array $configuracion
* @access private
*/
- var $_configuracion;
+ var $_configuracion = array();
/**
* Array de array con los componentes del menu
* @var array $componentes
* @access private
*/
- var $_componentes;
+ var $_componentes = array();
/**
* Variable que contiene la tabla general de menues que se va a mostrar en pantalla
* @var string $titulo
* @access private
*/
- var $_titulo;
+ var $_titulo = '';
/**
* Array con los objetos seccion.
* @var array $secciones
* @access private
*/
- var $_secciones;
+ var $_secciones = array();
/**
* @var string $componentesVertical
* @access private
*/
- var $_componentesVertical;
+ var $_componentesVertical = array();
// ~X2C
* @return void
* @access public
*/
- function Menu($configuracion = null) // ~X2C
+ function MECON_Marco_Menu($configuracion = null) // ~X2C
{
- $this->_componentes = array (); //Inicializo vacio el array de componentes del menu
- $this->_componentesVertical = array (); //Inicializo vacio el array de componentes del menu
- $this->_secciones = array (); //Inicializo vacio el array de los objetos secciones
- $this->_tabla = new HTML_Table('width=760 align="center" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0"');
+ $this->_tabla = new HTML_Table('width=760
+ align="center"
+ bgcolor="#FFFFFF"
+ cellspacing="0"
+ cellpadding="0"
+ border="0"');
$this->_configuracion = $configuracion;
}
// -X2C
$cuenta = count ($confSec);
$i = 1;
foreach ($confSec as $sec) {
- $tmp = new Seccion ($sec, $this->_configuracion);
+ $tmp = new MECON_Marco_Seccion ($sec, $this->_configuracion);
array_push($this->_componentes,$tmp->toHtml($linksel));
if ($cuenta == $i) {
$ultimo = 1;
$tmp = array();
$tmp2 = array();
- $PATH = $this->_configuracion['directorios']['www'];
+ $PATH = $this->_configuracion['directorios']['root'];
foreach ($secciones as $sec) { //Chequeo las secciones
$tmp[$sec['nombre']] = array ($PATH.'/'.$sec['link']);
}
// -X2C
-} // -X2C Class :Menu
+} // -X2C Class :MECON_Marco_Menu
-?>
+?>
\ No newline at end of file