protected function getContentByCategoryId($category_id) { //pega a CategoryVO $CategoryVO = new CategoryVO(); $CategoryVO->setId($category_id, TRUE); $conteudos = $CategoryVO->getLinks("content", 1); if (is_array($conteudos) && count($conteudos) > 0) { $Link = $conteudos[0]; $ContentVO = new ContentVO(); $ContentVO->setId($Link->linked_table_id, TRUE); return $ContentVO->getContent(); //Debug::print_r($ContentVO); } return ""; }