function get_talk_by_type($tag_id, $next_id, $pagesize, $type) { return array(); $act_modules = new ActivityModule(); if (empty($next_id) || empty($pagesize)) { $next_id = 0; $pagesize = 10; } return $act_modules->get_all_by_type($tag_id, $next_id, $pagesize, ActivityModel::type_talk, $type); }
public function get_all($tag_id, $next_id, $pagesize, $stage) { if ($next_id === NULL || $pagesize === NULL) { $next_id = 0; $pagesize = 10; } if ($tag_id === NULL) { $tag_id = 0; } $act = new ActivityModule(); return $act_list = $act->get_all_by_type($tag_id, $next_id, $pagesize, 1, $stage); }
/** * 查询全部公开课 */ public function get_all($next_id, $pagesize, $stage) { $mooc_ac = new ActivityModule(); if (empty($next_id) || empty($pagesize)) { $next_id = 0; $pagesize = 10; } $mooc_list = $mooc_ac->get_all_by_type(@$tag_id, $next_id, $pagesize, 2, $stage); if ($mooc_list != 1000) { $activity_array = array(); foreach ($mooc_list as $mooc) { $section_list = $mooc_ac->get_sec_by_actId($mooc->id); if ($section_list != 1000 && !empty($section_list)) { foreach ($section_list as $section) { array_push($mooc->content, $section); } } array_push($activity_array, $mooc); } return $activity_array; } else { return 1000; } }