public function get_ended_activity($channel_id, $count) { $table = new ActivityTable(); return $table->get_after_time(date('Y-m-d H:i:s'), $channel_id, $count); }