--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<XMI xmlns:UML="org.omg/standards/UML" verified="false" timestamp="" xmi.version="1.2" >
+ <XMI.header>
+ <XMI.documentation>
+ <XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter>
+ <XMI.exporterVersion>1.1</XMI.exporterVersion>
+ </XMI.documentation>
+ <XMI.model xmi.name="noticias" href="/home/gmeray/747/public_html/intranet/doc/noticias.xmi" />
+ <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
+ </XMI.header>
+ <XMI.content>
+ <docsettings viewid="160" documentation="
+" uniqueid="179" />
+ <umlobjects>
+ <UML:Class stereotype="" package="lib" xmi.id="161" abstract="0" documentation="" name="noticia" static="0" scope="200" >
+ <UML:Operation stereotype="" package="" xmi.id="169" type="void" abstract="0" documentation="" name="noticia" static="0" scope="200" >
+ <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="int" abstract="0" documentation="codigo de la noticia" name="noticia" static="0" scope="200" />
+ </UML:Operation>
+ <UML:Attribute stereotype="" package="" xmi.id="168" value="" type="int" abstract="0" documentation="" name="Noticia" static="0" scope="200" />
+ </UML:Class>
+ <UML:Class stereotype="" package="sistema/local_lib" xmi.id="162" abstract="0" documentation="" name="HTML_Noticia" static="0" scope="200" >
+ <UML:Operation stereotype="" package="" xmi.id="166" type="void" abstract="0" documentation="" name="toHTML" static="0" scope="200" />
+ <UML:Operation stereotype="" package="" xmi.id="167" type="void" abstract="0" documentation="" name="HTML_Noticia" static="0" scope="200" >
+ <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="noticia" abstract="0" documentation="" name="noticia" static="0" scope="200" />
+ </UML:Operation>
+ <UML:Operation stereotype="" package="" xmi.id="174" type="void" abstract="0" documentation="" name="setConFoto" static="0" scope="200" >
+ <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="bool" abstract="0" documentation="" name="foto" static="0" scope="200" />
+ </UML:Operation>
+ <UML:Operation stereotype="" package="" xmi.id="175" type="void" abstract="0" documentation="" name="setCompleta" static="0" scope="200" >
+ <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="bool" abstract="0" documentation="" name="completa" static="0" scope="200" />
+ </UML:Operation>
+ <UML:Operation stereotype="" package="" xmi.id="176" type="void" abstract="0" documentation="" name="setNuevo" static="0" scope="200" >
+ <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="bool" abstract="0" documentation="" name="nuevo" static="0" scope="200" />
+ </UML:Operation>
+ <UML:Attribute stereotype="" package="" xmi.id="172" value="" type="noticia" abstract="0" documentation="" name="noticia" static="0" scope="200" />
+ </UML:Class>
+ <UML:Class stereotype="" package="" xmi.id="164" abstract="0" documentation="x2c:extern" name="HTML_Table" static="0" scope="200" />
+ <UML:Class stereotype="" package="lib" xmi.id="170" abstract="0" documentation="" name="seccion" static="0" scope="200" >
+ <UML:Operation stereotype="" package="" xmi.id="171" type="void" abstract="0" documentation="obtiene los objetos seccion de los codigos de seccion pasados, o todos." name="ObtenerSecciones" static="1" scope="200" >
+ <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="array[int]" abstract="0" documentation="codigos de las secciones" name="secciones" static="0" scope="200" />
+ </UML:Operation>
+ <UML:Operation stereotype="" package="" xmi.id="177" type="void" abstract="0" documentation="" name="seccion" static="0" scope="200" >
+ <UML:Parameter stereotype="" package="" xmi.id="1" value="" type="int" abstract="0" documentation="seccion" name="seccion" static="0" scope="200" />
+ </UML:Operation>
+ <UML:Operation stereotype="" package="" xmi.id="178" type="string" abstract="0" documentation="" name="getNombre" static="0" scope="200" />
+ <UML:Operation stereotype="" package="" xmi.id="179" type="void" abstract="0" documentation="" name="getNoticias" static="0" scope="200" />
+ </UML:Class>
+ </umlobjects>
+ <diagrams>
+ <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" snapy="10" showatts="1" xmi.id="160" documentation="" type="402" showops="1" showpackage="0" name="class diagram" localid="30000" showstereotype="0" showscope="1" font="Helvetica,8,-1,5,50,0,0,0,0,0" linecolor="#ff0000" >
+ <widgets>
+ <UML:ConceptWidget usesdiagramfillcolour="0" width="160" showattsigs="601" usesdiagramusefillcolour="0" x="128" linecolour="#ff0000" y="220" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="48" usefillcolor="1" showattributes="1" xmi.id="161" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+ <UML:ConceptWidget usesdiagramfillcolour="0" width="220" showattsigs="601" usesdiagramusefillcolour="0" x="406" linecolour="#ff0000" y="188" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="112" usefillcolor="1" showattributes="1" xmi.id="162" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+ <UML:ConceptWidget usesdiagramfillcolour="0" width="80" showattsigs="601" usesdiagramusefillcolour="0" x="477" linecolour="#ff0000" y="47" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="32" usefillcolor="1" showattributes="1" xmi.id="164" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+ <UML:ConceptWidget usesdiagramfillcolour="0" width="272" showattsigs="601" usesdiagramusefillcolour="0" x="65" linecolour="#ff0000" y="62" showopsigs="601" usesdiagramlinecolour="0" fillcolour="#ffffc0" height="88" usefillcolor="1" showattributes="1" xmi.id="170" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,8,-1,5,50,0,0,0,0,0" />
+ </widgets>
+ <messages/>
+ <associations>
+ <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="2" indexb="1" widgetbid="164" widgetaid="162" documentation="" type="500" >
+ <linepath>
+ <startpoint startx="516" starty="188" />
+ <endpoint endx="517" endy="79" />
+ </linepath>
+ </UML:AssocWidget>
+ <UML:AssocWidget totalcounta="2" indexa="1" totalcountb="2" indexb="1" widgetbid="162" widgetaid="161" documentation="" type="510" >
+ <linepath>
+ <startpoint startx="288" starty="244" />
+ <endpoint endx="406" endy="244" />
+ </linepath>
+ </UML:AssocWidget>
+ </associations>
+ </diagram>
+ </diagrams>
+ <listview>
+ <listitem open="1" type="800" id="-1" label="Views" >
+ <listitem open="1" type="801" id="-1" label="Logical View" >
+ <listitem open="1" type="813" id="162" label="HTML_Noticia" >
+ <listitem open="0" type="815" id="167" label="HTML_Noticia" />
+ <listitem open="0" type="814" id="172" label="noticia" />
+ <listitem open="0" type="815" id="175" label="setCompleta" />
+ <listitem open="0" type="815" id="174" label="setConFoto" />
+ <listitem open="0" type="815" id="176" label="setNuevo" />
+ <listitem open="0" type="815" id="166" label="toHTML" />
+ </listitem>
+ <listitem open="1" type="813" id="164" label="HTML_Table" />
+ <listitem open="0" type="807" id="160" label="class diagram" />
+ <listitem open="1" type="813" id="161" label="noticia" >
+ <listitem open="0" type="814" id="168" label="Noticia" />
+ <listitem open="0" type="815" id="169" label="noticia" />
+ </listitem>
+ <listitem open="1" type="813" id="170" label="seccion" >
+ <listitem open="0" type="815" id="171" label="ObtenerSecciones" />
+ <listitem open="0" type="815" id="178" label="getNombre" />
+ <listitem open="0" type="815" id="179" label="getNoticias" />
+ <listitem open="0" type="815" id="177" label="seccion" />
+ </listitem>
+ </listitem>
+ <listitem open="1" type="802" id="-1" label="Use Case View" />
+ </listitem>
+ </listview>
+ </XMI.content>
+</XMI>
<xmi2code>
<option key="target" value="*"/>
- <option key="xmi-input" value="uml.xmi"/>
+ <option key="xmi-input" value="noticias.xmi"/>
<option key="config-file" value="xmi2code.config"/>
<option key="config-file-set" value="false"/>
<option key="handler" value="umbrello"/>
- <option key="generator-path" value="../sistema/local_lib"/>
+ <option key="generator-path" value=".."/>
<option key="use-package-as-dir" value="true"/>
<option key="indent" value=" "/>
<option key="files-case" value="preserve"/>
<option key="template-path" value="."/>
<option key="php.template" value="xmi2code.tpl.php"/>
<option key="php.default-code" value="trigger_error('Not implemented!', E_USER_WARNING);"/>
- <option key="php.pear.use-package-in-classnames" value="true"/>
+ <option key="php.pear.use-package-in-classnames" value="false"/>
<option key="php.pear.underscore-in-nonpublic" value="true"/>
</xmi2code>
--- /dev/null
+<?php
+// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
+// +--------------------------------------------------------------------+
+// | Ministerio de Economía |
+// | Intranet |
+// +--------------------------------------------------------------------+
+// | This file is part of Intranet. |
+// | |
+// | Intranet 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. |
+// | |
+// | Intranet 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 |
+// | along with Hooks; if not, write to the Free Software Foundation, |
+// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
+// +--------------------------------------------------------------------+
+// | Creado: Thu Jul 3 14:49:15 2003 |
+// | Autor: Gonzalo Merayo <gmeray@mecon.gov.ar> |
+// +--------------------------------------------------------------------+
+//
+// $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $
+//
+
+
+
+
+// +X2C Class 161 :noticia
+/**
+ * @access public
+ */
+class noticia {
+ /**
+ * @var int $Noticia
+ * @access public
+ */
+ var $Noticia;
+
+ // ~X2C
+
+ // +X2C Operation 169
+ /**
+ * @param int $noticia codigo de la noticia
+ *
+ * @return void
+ * @access public
+ */
+ function noticia($noticia) // ~X2C
+ {
+ trigger_error('Not implemented!', E_USER_WARNING);
+ }
+ // -X2C
+
+} // -X2C Class :noticia
+?>
\ No newline at end of file
--- /dev/null
+<?php
+// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
+// +--------------------------------------------------------------------+
+// | Ministerio de Economía |
+// | Intranet |
+// +--------------------------------------------------------------------+
+// | This file is part of Intranet. |
+// | |
+// | Intranet 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. |
+// | |
+// | Intranet 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 |
+// | along with Hooks; if not, write to the Free Software Foundation, |
+// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
+// +--------------------------------------------------------------------+
+// | Creado: Thu Jul 3 14:49:15 2003 |
+// | Autor: Gonzalo Merayo <gmeray@mecon.gov.ar> |
+// +--------------------------------------------------------------------+
+//
+// $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $
+//
+
+
+
+
+// +X2C Class 170 :seccion
+/**
+ * @access public
+ */
+class seccion {
+ // ~X2C
+
+ // +X2C Operation 171
+ /**
+ * obtiene los objetos seccion de los codigos de seccion pasados, o todos.
+ *
+ * @param array[int] $secciones codigos de las secciones
+ *
+ * @return void
+ * @access public
+ * @static
+ */
+ function ObtenerSecciones($secciones) // ~X2C
+ {
+ trigger_error('Not implemented!', E_USER_WARNING);
+ }
+ // -X2C
+
+ // +X2C Operation 177
+ /**
+ * @param int $seccion seccion
+ *
+ * @return void
+ * @access public
+ */
+ function seccion($seccion) // ~X2C
+ {
+ trigger_error('Not implemented!', E_USER_WARNING);
+ }
+ // -X2C
+
+ // +X2C Operation 178
+ /**
+ * @return string
+ * @access public
+ */
+ function getNombre() // ~X2C
+ {
+ trigger_error('Not implemented!', E_USER_WARNING);
+ }
+ // -X2C
+
+ // +X2C Operation 179
+ /**
+ * @return void
+ * @access public
+ */
+ function getNoticias() // ~X2C
+ {
+ trigger_error('Not implemented!', E_USER_WARNING);
+ }
+ // -X2C
+
+} // -X2C Class :seccion
+?>
\ No newline at end of file
--- /dev/null
+<?php
+// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
+// +--------------------------------------------------------------------+
+// | Ministerio de Economía |
+// | Intranet |
+// +--------------------------------------------------------------------+
+// | This file is part of Intranet. |
+// | |
+// | Intranet 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. |
+// | |
+// | Intranet 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 |
+// | along with Hooks; if not, write to the Free Software Foundation, |
+// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
+// +--------------------------------------------------------------------+
+// | Creado: Thu Jul 3 14:43:38 2003 |
+// | Autor: Gonzalo Merayo <gmeray@mecon.gov.ar> |
+// +--------------------------------------------------------------------+
+//
+// $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $
+//
+
+
+
+// +X2C includes
+require_once 'HTML_Table.php';
+// ~X2C
+
+// +X2C Class 162 :HTML_Noticia
+/**
+ * @access public
+ */
+class HTML_Noticia extends HTML_Table {
+ /**
+ * @var noticia $noticia
+ * @access public
+ */
+ var $noticia;
+
+ // ~X2C
+
+ // +X2C Operation 166
+ /**
+ * @return void
+ * @access public
+ */
+ function toHTML() // ~X2C
+ {
+ trigger_error('Not implemented!', E_USER_WARNING);
+ }
+ // -X2C
+
+ // +X2C Operation 167
+ /**
+ * @param noticia $noticia
+ *
+ * @return void
+ * @access public
+ */
+ function HTML_Noticia($noticia) // ~X2C
+ {
+ trigger_error('Not implemented!', E_USER_WARNING);
+ }
+ // -X2C
+
+ // +X2C Operation 174
+ /**
+ * @param bool $foto
+ *
+ * @return void
+ * @access public
+ */
+ function setConFoto($foto) // ~X2C
+ {
+ trigger_error('Not implemented!', E_USER_WARNING);
+ }
+ // -X2C
+
+ // +X2C Operation 175
+ /**
+ * @param bool $completa
+ *
+ * @return void
+ * @access public
+ */
+ function setCompleta($completa) // ~X2C
+ {
+ trigger_error('Not implemented!', E_USER_WARNING);
+ }
+ // -X2C
+
+ // +X2C Operation 176
+ /**
+ * @param bool $nuevo
+ *
+ * @return void
+ * @access public
+ */
+ function setNuevo($nuevo) // ~X2C
+ {
+ trigger_error('Not implemented!', E_USER_WARNING);
+ }
+ // -X2C
+
+} // -X2C Class :HTML_Noticia
+?>
\ No newline at end of file
--- /dev/null
+<?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: thu apr 15 15:22:58 ART 2003
+// | Author: Martin Marrese <mmarre@mecon.gov.ar>
+// +----------------------------------------------------------------------+
+//
+// $Id: configuracion.php 2 2003-06-24 16:54:23Z gmeray $
+// $Author: gmeray $
+// $URL: http://portal.mecon.ar/svn/bandas/sistema/lib/configuracion.php $
+// $Date: 2003-06-24 13:54:23 -0300 (Tue, 24 Jun 2003) $
+// $Rev: 2 $
+//
+ return array (
+ 'titulo_sistema' => 'Intranet',
+ 'pie_sistema' => 'Ministerio de Economia',
+ 'db_type' => 'mysql',
+ 'db_user' => 'intranet',
+ 'db_pass' => 'intranet',
+ 'db_host' => 'bal747f',
+ 'db_name' => 'intranet',
+ );
+
+?>
--- /dev/null
+<?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 Jun 9 17:53:31 2003
+// | Author: Gonzalo Merayo <gmeray@mecon.gov.ar>
+// +----------------------------------------------------------------------+
+//
+// $Id: bandadb.php 12 2003-06-24 16:54:23Z gmeray $
+// $Author: gmeray $
+// $URL: http://portal.mecon.ar/svn/bandas/sistema/lib/bandadb.php $
+// $Date: 2003-06-24 13:54:23 -0300 (Tue, 24 Jun 2003) $
+// $Rev: 12 $
+//
+
+#require_once 'PEAR.php';
+require_once 'DB.php';
+
+
+
+// +X2C Class 121 :BandaDB
+/**
+ * @access public
+ */
+class IntranetDB extends DB {
+ // ~X2C
+
+ // +X2C Operation 122
+ /**
+ * @return void
+ * @access public
+ */
+ function connect() // ~X2C
+ {
+ $conf = include 'configuracion.php';
+ $dsn = $conf['db_type'].'://'.$conf['db_user'].':'.$conf['db_pass'].'@'.$conf['db_host'].'/'.$conf['db_name'];
+ $db = DB::connect($dsn,true);
+ if (DB::isError($db)) {
+ die ($db->getMessage());
+ }
+ return $db;
+ }
+ // -X2C
+
+} // -X2C Class :BandaDB
+?>