+ // +X2C Operation 199
+ /**
+ * @return void
+ * @access public
+ */
+ function getLinks() // ~X2C
+ {
+ $db = IntranetDB::Connect();
+ $sql = "SELECT R.link_id, A.headline
+ FROM MEconDAV.Relations R, MEconDAV.Articles A
+ WHERE R.link_id = A.article_id
+ AND R.article_id = ".$this->noticia;
+ $result =& $db->query($sql);
+ $links = array();
+ while($row =& $result->fetchRow())
+ $links[] = array('numero'=>$row[0], 'texto'=>$row[1]);
+ return $links;
+ }
+ // -X2C
+
+ // +X2C Operation 200
+ /**
+ * @return void
+ * @access public
+ */
+ function getArchivos() // ~X2C
+ {
+ $db = IntranetDB::Connect();
+ $sql = "SELECT file_for_article_id, caption FROM MEconDAV.FilesForArticle WHERE article_id = ".$this->noticia;
+ $result =& $db->query($sql);
+ $archivos = array();
+ while($row =& $result->fetchRow())
+ $archivos[] = array('numero'=>$row[0], 'texto'=>$row[1]);
+ return $archivos;
+ }
+ // -X2C
+