]> git.llucax.com Git - mecon/intranet.git/blob - lib/noticia.php
(no commit message)
[mecon/intranet.git] / lib / noticia.php
1 <?php
2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +--------------------------------------------------------------------+
4 // |                      Ministerio de Economía                        |
5 // |                             Intranet                              |
6 // +--------------------------------------------------------------------+
7 // | This file is part of Intranet.                                    |
8 // |                                                                    |
9 // | Intranet is free software; you can redistribute it and/or modify  |
10 // | it under the terms of the GNU General Public License as published  |
11 // | by the Free Software Foundation; either version 2 of the License,  |
12 // | or (at your option) any later version.                             |
13 // |                                                                    |
14 // | Intranet is distributed in the hope that it will be useful, but   |
15 // | WITHOUT ANY WARRANTY; without even the implied warranty of         |
16 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   |
17 // | General Public License for more details.                           |
18 // |                                                                    |
19 // | You should have received a copy of the GNU General Public License  |
20 // | along with Hooks; if not, write to the Free Software Foundation,   |
21 // | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA      |
22 // +--------------------------------------------------------------------+
23 // | Creado: Thu Jul 3 14:49:15 2003                                   |
24 // | Autor:  Gonzalo Merayo <gmeray@mecon.gov.ar>                                                    |
25 // +--------------------------------------------------------------------+
26 //
27 // $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $
28 //
29
30 require_once 'mecondavdb.php';
31
32
33 // +X2C Class 161 :noticia
34 /**
35  * @access public
36  */
37 class noticia {
38     /**
39      * @var    int $Noticia
40      * @access public
41      */
42     var $Noticia;
43
44     // ~X2C
45
46     // +X2C Operation 169
47     /**
48      * @param  int $noticia codigo de la noticia
49      *
50      * @return void
51      * @access public
52      */
53     function noticia($noticia) // ~X2C
54     {
55         $this->noticia;
56         $db = MEconDAVDB::Connect();
57         $query = "SELECT headline, title, abstract, article
58                   FROM Articles
59                   WHERE Article_id = $noticia";
60         $result = $db->query($query);
61         $row = $result->fetchRow();
62         $this->titulo2 = $row[0];
63         $this->titulo = $row[1];
64         $this->abstracto = $row[2];
65         $this->texto = $row[3];
66     }
67     // -X2C
68
69     // +X2C Operation 180
70     /**
71      * @return string
72      * @access public
73      */
74     function getTitulo() // ~X2C
75     {
76         return $this->titulo;
77     }
78     // -X2C
79
80     // +X2C Operation 181
81     /**
82      * @return string
83      * @access public
84      */
85     function getTexto() // ~X2C
86     {
87         return $this->texto;
88     }
89     // -X2C
90
91     // +X2C Operation 182
92     /**
93      * @return string
94      * @access public
95      */
96     function getAbstracto() // ~X2C
97     {
98         return $this->abstracto;
99     }
100     // -X2C
101
102     // +X2C Operation 183
103     /**
104      * @return string
105      * @access public
106      */
107     function getTitulo2() // ~X2C
108     {
109         return $this->titulo2;
110     }
111     // -X2C
112
113 } // -X2C Class :noticia
114 ?>