2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +--------------------------------------------------------------------+
4 // | Ministerio de Economía |
6 // +--------------------------------------------------------------------+
7 // | This file is part of Intranet. |
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. |
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. |
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 Sep 11 20:06:16 2003
24 // | Autor: Matias Sklar <msklar@mecon.gov.ar>
25 // +--------------------------------------------------------------------+
33 // +X2C Class 231 :Servicios_Bandas_Buscador
35 * Clase que se encarga de realizar todas las búsquedas provenientes de formularios
39 class Servicios_Bandas_Buscador {
41 * Los meses que hay cargados en la base de datos
58 * Devuelve todos los meses cargados en la base de datos
60 * @param int $db El handler de conexión a la base de datos
66 function getMeses($db) // ~X2C
68 $sql = "select distinct mes, anio from PrecalculoMensual order by anio desc, mes desc";
69 $result = $db->getAll($sql);
70 if(DB::isError($result))
71 die($result->getMessage("query mal hecho"));
76 } // -X2C Class :Servicios_Bandas_Buscador