/** * Returns all comment of kbarticle. * * @param kyKnowledgebaseArticle $kbarticle kyKnowledgebaseArticle item. * @return kyResultSet */ public static function getAll($kbarticle) { if ($kbarticle instanceof kyKnowledgebaseArticle) { $kbarticle_id = $kbarticle->getId(); } else { $kbarticle_id = $kbarticle; } return parent::getAll(array('ListAll', $kbarticle_id)); }
/** * Returns all comment of news item. * * @param kyNewsItem $knowledgebase_article News item. * @return kyResultSet */ public static function getAll($knowledgebase_article) { if ($knowledgebase_article instanceof kyNewsItem) { $news_item_id = $knowledgebase_article->getId(); } else { $news_item_id = $knowledgebase_article; } return parent::getAll(array('ListAll', $news_item_id)); }
/** * Returns all the troubleshooter step identifiers. * * @param array $troubleshooterstep * * @return kyResultSet */ public static function getAll($troubleshooterstep) { if ($troubleshooterstep instanceof kyTroubleshooterStep) { $troubleshooterstep_item_id = $troubleshooterstep->getId(); } else { $troubleshooterstep_item_id = $troubleshooterstep; } return parent::getAll(array('ListAll', $troubleshooterstep_item_id)); }