X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/a86f431a5340d5326500070cc17e47208c029ca1..e54c0e22cd808855fdc1171d1bc70d00175e1ad0:/lib/noticia.php?ds=sidebyside diff --git a/lib/noticia.php b/lib/noticia.php index 0580e8d..6a07def 100644 --- a/lib/noticia.php +++ b/lib/noticia.php @@ -27,7 +27,7 @@ // $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $ // - +require_once 'mecondavdb.php'; // +X2C Class 161 :noticia @@ -52,7 +52,61 @@ class noticia { */ function noticia($noticia) // ~X2C { - trigger_error('Not implemented!', E_USER_WARNING); + $this->noticia; + $db = MEconDAVDB::Connect(); + $query = "SELECT headline, title, abstract, article + FROM Articles + WHERE Article_id = $noticia"; + $result = $db->query($query); + $row = $result->fetchRow(); + $this->titulo2 = $row[0]; + $this->titulo = $row[1]; + $this->abstracto = $row[2]; + $this->texto = $row[3]; + } + // -X2C + + // +X2C Operation 180 + /** + * @return string + * @access public + */ + function getTitulo() // ~X2C + { + return $this->titulo; + } + // -X2C + + // +X2C Operation 181 + /** + * @return string + * @access public + */ + function getTexto() // ~X2C + { + return $this->texto; + } + // -X2C + + // +X2C Operation 182 + /** + * @return string + * @access public + */ + function getAbstracto() // ~X2C + { + return $this->abstracto; + } + // -X2C + + // +X2C Operation 183 + /** + * @return string + * @access public + */ + function getTitulo2() // ~X2C + { + return $this->titulo2; } // -X2C