X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/e54c0e22cd808855fdc1171d1bc70d00175e1ad0..534be32199334fd820115b65e0ccbded391945fd:/lib/noticia.php?ds=inline diff --git a/lib/noticia.php b/lib/noticia.php index 6a07def..96ba6b2 100644 --- a/lib/noticia.php +++ b/lib/noticia.php @@ -28,6 +28,7 @@ // require_once 'mecondavdb.php'; +require_once 'Date.php'; // +X2C Class 161 :noticia @@ -52,9 +53,9 @@ class noticia { */ function noticia($noticia) // ~X2C { - $this->noticia; + $this->noticia = $noticia; $db = MEconDAVDB::Connect(); - $query = "SELECT headline, title, abstract, article + $query = "SELECT headline, title, abstract, article, publication_date FROM Articles WHERE Article_id = $noticia"; $result = $db->query($query); @@ -63,6 +64,7 @@ class noticia { $this->titulo = $row[1]; $this->abstracto = $row[2]; $this->texto = $row[3]; + $this->fecha = new Date($row[4]); } // -X2C @@ -110,5 +112,16 @@ class noticia { } // -X2C + // +X2C Operation 186 + /** + * @return string + * @access public + */ + function getFecha() // ~X2C + { + return $this->fecha; + } + // -X2C + } // -X2C Class :noticia -?> \ No newline at end of file +?>