From: Gonzalo Merayo Date: Thu, 3 Jul 2003 18:40:19 +0000 (+0000) Subject: Agrego las clases noticias, seccion y html_noticia con su xmi X-Git-Tag: svn_import~249 X-Git-Url: https://git.llucax.com/mecon/intranet.git/commitdiff_plain/a86f431a5340d5326500070cc17e47208c029ca1?ds=inline Agrego las clases noticias, seccion y html_noticia con su xmi --- diff --git a/doc/noticias.xmi b/doc/noticias.xmi new file mode 100644 index 0000000..3828b70 --- /dev/null +++ b/doc/noticias.xmi @@ -0,0 +1,102 @@ + + + + + umbrello uml modeller http://uml.sf.net + 1.1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/xmi2code.config b/doc/xmi2code.config index 26e1e48..ce50d4d 100644 --- a/doc/xmi2code.config +++ b/doc/xmi2code.config @@ -31,11 +31,11 @@ diff --git a/lib/noticia.php b/lib/noticia.php new file mode 100644 index 0000000..0580e8d --- /dev/null +++ b/lib/noticia.php @@ -0,0 +1,60 @@ + | +// +--------------------------------------------------------------------+ +// +// $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 diff --git a/lib/seccion.php b/lib/seccion.php new file mode 100644 index 0000000..a2670e9 --- /dev/null +++ b/lib/seccion.php @@ -0,0 +1,92 @@ + | +// +--------------------------------------------------------------------+ +// +// $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 diff --git a/sistema/local_lib/HTML_Noticia.php b/sistema/local_lib/HTML_Noticia.php new file mode 100644 index 0000000..38a7407 --- /dev/null +++ b/sistema/local_lib/HTML_Noticia.php @@ -0,0 +1,113 @@ + | +// +--------------------------------------------------------------------+ +// +// $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 diff --git a/sistema/local_lib/configuracion.php b/sistema/local_lib/configuracion.php new file mode 100644 index 0000000..5a31be1 --- /dev/null +++ b/sistema/local_lib/configuracion.php @@ -0,0 +1,36 @@ + +// +----------------------------------------------------------------------+ +// +// $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', + ); + +?> diff --git a/sistema/local_lib/intranetdb.php b/sistema/local_lib/intranetdb.php new file mode 100644 index 0000000..f47978c --- /dev/null +++ b/sistema/local_lib/intranetdb.php @@ -0,0 +1,57 @@ + +// +----------------------------------------------------------------------+ +// +// $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 +?>