//
require_once 'mecondavdb.php';
+require_once 'Date.php';
// +X2C Class 161 :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);
$row = $result->fetchRow();
- $this->titulo2 = $row[0];
- $this->titulo = $row[1];
- $this->abstracto = $row[2];
+ $this->titulo = $row[0];
+ $this->titulo2 = $row[1];
+ $this->sintesis = $row[2];
$this->texto = $row[3];
+ $this->fecha = new Date($row[4]);
}
// -X2C
* @return string
* @access public
*/
- function getAbstracto() // ~X2C
+ function getSintesis() // ~X2C
{
- return $this->abstracto;
+ return $this->sintesis;
}
// -X2C
}
// -X2C
+ // +X2C Operation 186
+ /**
+ * @return string
+ * @access public
+ */
+ function getFecha() // ~X2C
+ {
+ return $this->fecha;
+ }
+ // -X2C
+
} // -X2C Class :noticia
?>