/** * Count DlePolls * by NewsId Index(es) * @param integer $intNewsId * @return int */ public static function CountByNewsId($intNewsId) { // Call DlePoll::QueryCount to perform the CountByNewsId query return DlePoll::QueryCount(QQ::Equal(QQN::DlePoll()->NewsId, $intNewsId)); }