]> git.llucax.com Git - mecon/meconlib.git/commitdiff
Se agrega la clase MECON_HTML_Error para mostrar errores.
authorLeandro Lucarella <llucax@gmail.com>
Mon, 14 Jul 2003 22:32:55 +0000 (22:32 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Mon, 14 Jul 2003 22:32:55 +0000 (22:32 +0000)
doc/HTML/html.xmi [new file with mode: 0644]
doc/HTML/xmi2code.config [new file with mode: 0644]
doc/meconlib.xmi
doc/xmi2code.config
doc/xmi2code.tpl.php
lib/MECON/HTML/Error.php [new file with mode: 0644]

diff --git a/doc/HTML/html.xmi b/doc/HTML/html.xmi
new file mode 100644 (file)
index 0000000..bda4a1c
--- /dev/null
@@ -0,0 +1,46 @@
+<?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="html" href="/home/luca/public_html/meconlib/doc/HTML/html.xmi" />
+  <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
+ </XMI.header>
+ <XMI.content>
+  <docsettings viewid="167" documentation="x2e:extern
+" uniqueid="167" />
+  <umlobjects>
+   <UML:Class stereotype="" package="" xmi.id="163" abstract="0" documentation="Dibuja un mensaje de error en HTML." name="MECON_HTML_Error" static="0" scope="200" >
+    <UML:Operation stereotype="" package="" xmi.id="165" type="void" abstract="0" documentation="Constructor." name="MECON_HTML_Error" static="0" scope="200" >
+     <UML:Parameter stereotype="" package="" xmi.id="1" value="''" type="string" abstract="0" documentation="Mensaje de error." name="msg" static="0" scope="200" />
+    </UML:Operation>
+    <UML:Operation stereotype="" package="" xmi.id="166" type="string" abstract="0" documentation="Dibuja el HTML." name="toHtml" static="0" scope="200" />
+    <UML:Attribute stereotype="" package="" xmi.id="164" value="''" type="string" abstract="0" documentation="Mensaje de error." name="msg" 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="167" documentation="" type="402" showops="1" showpackage="0" name="HTML Classes" localid="30000" showstereotype="0" showscope="1" font="Helvetica,12,-1,5,50,0,0,0,0,0" linecolor="#ff0000" >
+    <widgets>
+     <UML:ConceptWidget usesdiagramfillcolour="1" width="373" showattsigs="601" usesdiagramusefillcolour="1" x="43" linecolour="none" y="37" showopsigs="601" usesdiagramlinecolour="1" fillcolour="none" height="84" usefillcolor="1" showattributes="1" xmi.id="163" showoperations="1" showpackage="0" showscope="1" showstereotype="0" font="Helvetica,12,-1,5,50,0,0,0,0,0" />
+    </widgets>
+    <messages/>
+    <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="0" type="807" id="167" label="HTML Classes" />
+     <listitem open="0" type="813" id="163" label="MECON_HTML_Error" >
+      <listitem open="0" type="815" id="165" label="MECON_HTML_Error" />
+      <listitem open="0" type="814" id="164" label="msg" />
+      <listitem open="0" type="815" id="166" label="toHtml" />
+     </listitem>
+    </listitem>
+    <listitem open="1" type="802" id="-1" label="Use Case View" />
+   </listitem>
+  </listview>
+ </XMI.content>
+</XMI>
diff --git a/doc/HTML/xmi2code.config b/doc/HTML/xmi2code.config
new file mode 100644 (file)
index 0000000..5210112
--- /dev/null
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ! vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
+ ! **********************************************************************
+ ! *                      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  *
+ ! * along with Hooks; if not, write to the Free Software Foundation,   *
+ ! * Inc., 59 Temple Place, Suite 330, Boston, MA  02111*1307  USA      *
+ ! **********************************************************************
+ ! * Creado: lun jun 23 15:21:18 ART 2003                               *
+ ! * Autor:  Leandro Lucarella <llucar@mecon.gov.ar>                    *
+ ! **********************************************************************
+ ! 
+ ! $Id$
+ ! 
+ !-->
+
+<xmi2code>
+  <option key="target" value="*"/>
+  <option key="xmi-input" value="html.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="../../lib"/>
+  <option key="use-package-as-dir" value="false"/>
+  <option key="use-underscores-as-dirs" value="true"/>
+  <option key="indent" value="    "/>
+  <option key="files-case" value="preserve"/>
+  <option key="generator" value="php.pear"/>
+  <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="false"/>
+  <option key="php.pear.underscore-in-nonpublic" value="true"/>
+</xmi2code>
index 62ed1fb8faef12bf4781ae8310da9734ff0e3ea0..e824ee27fca5efa9cc348254e4c2efd2d3b34377 100644 (file)
@@ -5,12 +5,12 @@
    <XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter>
    <XMI.exporterVersion>1.1</XMI.exporterVersion>
   </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="meconlib" href="/home/matias/sistemas/meconlib/tronco/doc/meconlib.xmi" />
+  <XMI.model xmi.name="meconlib" href="/home/luca/public_html/meconlib/doc/meconlib.xmi" />
   <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
  </XMI.header>
  <XMI.content>
   <docsettings viewid="1" documentation="x2e:extern
   <XMI.metamodel xmi.name="UML" href="UML.xml" xmi.version="1.3" />
  </XMI.header>
  <XMI.content>
   <docsettings viewid="1" documentation="x2e:extern
-" uniqueid="154" />
+" uniqueid="162" />
   <umlobjects>
    <UML:Actor stereotype="" package="" xmi.id="3" abstract="0" documentation="Beatriz o alguien tan poderoso" name="Beti" static="0" scope="200" />
    <UML:UseCase stereotype="" package="" xmi.id="4" abstract="0" documentation="" name="Cambiar Credencial" static="0" scope="200" />
   <umlobjects>
    <UML:Actor stereotype="" package="" xmi.id="3" abstract="0" documentation="Beatriz o alguien tan poderoso" name="Beti" static="0" scope="200" />
    <UML:UseCase stereotype="" package="" xmi.id="4" abstract="0" documentation="" name="Cambiar Credencial" static="0" scope="200" />
@@ -196,8 +196,9 @@ El proceso puede ser muy largo." font="Helvetica,11,-1,5,50,0,0,0,0,0" />
    <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="131" label="Agente" >
    <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="131" label="Agente" >
-      <listitem open="0" type="815" id="135" label="Agente" />
       <listitem open="0" type="814" id="132" label="agente" />
       <listitem open="0" type="814" id="132" label="agente" />
+      <listitem open="0" type="815" id="135" label="Agente" />
+      <listitem open="0" type="815" id="154" label="buscarAgente" />
       <listitem open="0" type="814" id="137" label="datos" />
       <listitem open="0" type="815" id="149" label="getCuil" />
       <listitem open="0" type="815" id="133" label="getDependencia" />
       <listitem open="0" type="814" id="137" label="datos" />
       <listitem open="0" type="815" id="149" label="getCuil" />
       <listitem open="0" type="815" id="133" label="getDependencia" />
@@ -206,8 +207,8 @@ El proceso puede ser muy largo." font="Helvetica,11,-1,5,50,0,0,0,0,0" />
       <listitem open="0" type="815" id="138" label="getNombre" />
       <listitem open="0" type="815" id="151" label="getOtrosDatos" />
       <listitem open="0" type="815" id="134" label="getTipo" />
       <listitem open="0" type="815" id="138" label="getNombre" />
       <listitem open="0" type="815" id="151" label="getOtrosDatos" />
       <listitem open="0" type="815" id="134" label="getTipo" />
-      <listitem open="0" type="815" id="154" label="buscarAgente" />
      </listitem>
      </listitem>
+     <listitem open="0" type="807" id="1" label="class diagram" />
      <listitem open="1" type="813" id="125" label="DB" />
      <listitem open="0" type="813" id="145" label="Dependencia" >
       <listitem open="0" type="814" id="146" label="codep" />
      <listitem open="1" type="813" id="125" label="DB" />
      <listitem open="0" type="813" id="145" label="Dependencia" >
       <listitem open="0" type="814" id="146" label="codep" />
@@ -216,7 +217,6 @@ El proceso puede ser muy largo." font="Helvetica,11,-1,5,50,0,0,0,0,0" />
       <listitem open="0" type="815" id="150" label="getDependencias" />
      </listitem>
      <listitem open="1" type="813" id="39" label="Hora" />
       <listitem open="0" type="815" id="150" label="getDependencias" />
      </listitem>
      <listitem open="1" type="813" id="39" label="Hora" />
-     <listitem open="0" type="807" id="1" label="class diagram" />
     </listitem>
     <listitem open="1" type="802" id="-1" label="Use Case View" >
      <listitem open="1" type="811" id="76" label="Agente" />
     </listitem>
     <listitem open="1" type="802" id="-1" label="Use Case View" >
      <listitem open="1" type="811" id="76" label="Agente" />
index 1a9858ac32e3ba5492482ed7ce82193a59787681..657f0b124fdae6eb6f545d3187ff6ddaebfaf3f9 100644 (file)
@@ -16,7 +16,6 @@
     <option key="php.pear.use-package-in-classnames" value="false"/>
     <option key="php.pear.underscore-in-nonpublic" value="true"/>
     <!-- user defined variables (for templates)  -->
     <option key="php.pear.use-package-in-classnames" value="false"/>
     <option key="php.pear.underscore-in-nonpublic" value="true"/>
     <!-- user defined variables (for templates)  -->
-    <option key="project" value="Marco"/>
     <option key="author" value="Matias Sklar"/>
     <option key="email" value="msklar@mecon.gov.ar"/>
 </xmi2code>
     <option key="author" value="Matias Sklar"/>
     <option key="email" value="msklar@mecon.gov.ar"/>
 </xmi2code>
index 521d350a2bfbfd4bc957e4c2747b3e077911d87e..921116c8dae9632d681528d2bb804d7ea507c766 100644 (file)
@@ -1,5 +1,5 @@
 <?php
 <?php
-// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
+// vim: set binary expandtab tabstop=4 shiftwidth=4:
 // +----------------------------------------------------------------------+
 // | PHP Version 4                                                        |
 // +----------------------------------------------------------------------+
 // +----------------------------------------------------------------------+
 // | PHP Version 4                                                        |
 // +----------------------------------------------------------------------+
 // +----------------------------------------------------------------------+
 //
 // $Id$
 // +----------------------------------------------------------------------+
 //
 // $Id$
-// $Author$
-// $URL$
-// $Date$
-// $Rev$
-//
-
-@@system-base-include
+//
\ No newline at end of file
diff --git a/lib/MECON/HTML/Error.php b/lib/MECON/HTML/Error.php
new file mode 100644 (file)
index 0000000..489d88a
--- /dev/null
@@ -0,0 +1,71 @@
+<?php
+// vim: set binary expandtab tabstop=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 Jul 14 19:30:18 2003
+// | Author:  @@author <@@email>
+// +----------------------------------------------------------------------+
+//
+// $Id$
+//
+
+// +X2C Class 163 :MECON_HTML_Error
+/**
+ * Dibuja un mensaje de error en HTML.
+ *
+ * @access public
+ */
+class MECON_HTML_Error {
+    /**
+     * Mensaje de error.
+     *
+     * @var    string $msg
+     * @access public
+     */
+    var $msg = '';
+
+    // ~X2C
+
+    // +X2C Operation 165
+    /**
+     * Constructor.
+     *
+     * @param  string $msg Mensaje de error.
+     *
+     * @return void
+     * @access public
+     */
+    function MECON_HTML_Error($msg = '') // ~X2C
+    {
+        $this->msg = $msg;
+    }
+    // -X2C
+
+    // +X2C Operation 166
+    /**
+     * Dibuja el HTML.
+     *
+     * @return string
+     * @access public
+     */
+    function toHtml() // ~X2C
+    {
+        // FIXME - usar un estilo con class.
+        return '<DIV style="font-size: 11px; text-align: center; color: red">' . $this->msg . '</DIV>';
+    }
+    // -X2C
+
+} // -X2C Class :MECON_HTML_Error
+
+?>
\ No newline at end of file