+<?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 Sep 11 20:06:16 2003
+// | Autor: Matias Sklar <msklar@mecon.gov.ar>
+// +--------------------------------------------------------------------+
+//
+// $Id$
+//
+
+
+
+
+// +X2C Class 231 :Servicios_Bandas_Buscador
+/**
+ * Clase que se encarga de realizar todas las búsquedas provenientes de formularios
+ *
+ * @access public
+ */
+class Servicios_Bandas_Buscador {
+ /**
+ * Los meses que hay cargados en la base de datos
+ *
+ * @var array $meses
+ * @access private
+ */
+ var $_meses = NULL;
+
+ /**
+ * @var int $db
+ * @access private
+ */
+ var $_db;
+
+ // ~X2C
+
+ // +X2C Operation 233
+ /**
+ * Devuelve todos los meses cargados en la base de datos
+ *
+ * @param int $db El handler de conexión a la base de datos
+ *
+ * @return array()
+ * @access public
+ * @static
+ */
+ function getMeses($db) // ~X2C
+ {
+ $sql = "select distinct mes, anio from PrecalculoMensual order by anio desc, mes desc";
+ $result = $db->getAll($sql);
+ if(DB::isError($result))
+ die($result->getMessage("query mal hecho"));
+ return $result;
+ }
+ // -X2C
+
+} // -X2C Class :Servicios_Bandas_Buscador
+?>