function _getRelatedArticles($section_id = null) { //deprecated, use SectionContentsManager:: or AMP_Content_Article:: methods instead require_once 'AMP/Content/Section/RelatedSet.inc.php'; if (!isset($section_id)) { $section_id = $this->_section->id; } $related = new SectionRelatedSet($this->_section->dbcon, $section_id); $relatedContent = $related->getLookup('typeid'); if (empty($relatedContent)) { return false; } return "id in (" . join(", ", array_keys($relatedContent)) . ")"; }