-<?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 'PEAR.php';
require_once 'MECON/Marco/Copete.php';
* Clase que se encarga del manejo del marco en general en los sistemas de intranet.
Trabaja de forma general, llamando a los demas objetos para la realizacion del marco.
*
+ * @package MECON
* @access public
*/
class Marco extends HTML_Page {
*/
var $_espacios;
+ /**
+ * Menu vertical para agregar en la pantalla.
+ *
+ * @var mixed $menuVertical
+ * @access private
+ */
+ var $_menuVertical;
+
// ~X2C
// +X2C Operation 26
* @return void
* @access public
*/
- function Marco($arch_configuracion)// ~X2C
+ function Marco($arch_configuracion) // ~X2C
{
parent::HTML_Page(array ('doctype'=>'HTML 4.01 Transitional',
'charset' => 'iso-8859-1',
$this->_contenido = array ();
$this->_espacios = true;
$this->_titulo2 = '';
+ $this->_menuVertical = null;
}
// -X2C
* @return void
* @access public
*/
- function agregarScript($archivo)// ~X2C
+ function agregarScript($archivo) // ~X2C
{
$tmp = $this->_directorio.SCRIPT_DIR_BASE.$archivo;
$this->addScript($tmp);
* @return void
* @access public
*/
- function agregarEstilo($archivo)// ~X2C
+ function agregarEstilo($archivo) // ~X2C
{
$tmp = $this->_directorio.ESTILO_DIR_BASE.$archivo;
$this->addStyleSheet($tmp);
* @return array
* @access private
*/
- function _obtenerConfiguracion($archivo)// ~X2C
+ function _obtenerConfiguracion($archivo) // ~X2C
{
$this->_configuracion = include $archivo;
//Verifico que existan los directorios, si no es asi los reemplazo por los defaults
* @return string
* @access public
*/
- function display()// ~X2C
+ function display() // ~X2C
{
//Agrego el header
$this->_header_display();
* @return void
* @access public
*/
- function addBody($body)// ~X2C
+ function addBody($body) // ~X2C
{
$this->_contenido[] = $body;
}
* @return void
* @access private
*/
- function _header_display()// ~X2C
+ function _header_display() // ~X2C
{
$tmp = $this->_titulo->darTitulo().$this->_titulo2;
$this->setTitle($tmp);
* @return void
* @access private
*/
- function _body_display()// ~X2C
+ function _body_display() // ~X2C
{
- $body = array ( 'copete' => $this->_copete->toHtml(),
- 'espacios' => $this->_espacios,
- 'body' => $this->_contenido,
- 'pie' => $this->_pie->toHtml(),
+ $body = array ( 'copete' => $this->_copete->toHtml(),
+ 'espacios' => $this->_espacios,
+ 'body' => $this->_contenido,
+ 'menuVertical' => $this->_menuVertical,
+ 'pie' => $this->_pie->toHtml(),
);
$this->_menu->addBody($body);
$this->addBodyContent($this->_menu->toHtml());
* @return void
* @access public
*/
- function addTitle($titulo)// ~X2C
+ function addTitle($titulo) // ~X2C
{
$this->_titulo2.= ' - '.$titulo;
}
* @return void
* @access public
*/
- function setEspacios($espacios = true)// ~X2C
+ function setEspacios($espacios = true) // ~X2C
{
$this->_espacios = $espacios;
}
// -X2C
+ // +X2C Operation 214
+ /**
+ * Agrega un menu vertical a la izquierda en la pantalla. Por ahora solo funciona con MenuOculto
+ *
+ * @param mixed $menuVertical Objeto u Html que representa el menu a mostrar.
+ *
+ * @return void
+ * @access public
+ */
+ function addMenuVertical($menuVertical) // ~X2C
+ {
+ $this->_menuVertical = $menuVertical;
+ }
+ // -X2C
+
} // -X2C Class :Marco
?>
\ No newline at end of file