public function getThreads($pagesize = null, $page = null) { $threads = array(); $conditionalStatement = "forum_id = {$this->id} AND is_active = 1"; $orderby = " created_at"; $sort = "DESC"; $thrds_obj = new PaForumThread($conditionalStatement, $orderby, $sort, $pagesize); $threads = $thrds_obj->getPage($page); return $threads; }