Beispiel #1
0
 public function get_all($next_id, $count)
 {
     $appointmentTable = new AppointmentTable();
     $appoint_list = $appointmentTable->get_all($next_id, $count);
     $activityTable = new ActivityTable();
     foreach ($appoint_list as $appoint) {
         $activity = $activityTable->get_by_id($appoint->activity->id);
         $appoint->activity = $activity;
     }
     return $appoint_list;
 }
Beispiel #2
0
 public function get_favors($next_id, $count)
 {
     $table = new FavorTable();
     $favors = $table->get_by_user($this->user->uuid, $next_id, $count);
     $acts = array();
     $act_table = new ActivityTable();
     foreach ($favors as $f) {
         $acts[] = $act_table->get_by_id($f->activity->id);
     }
     return $acts;
 }
Beispiel #3
0
 public function get_activity($ch_id)
 {
     $table = new ActivityTable();
     return $table->get_by_channel($ch_id);
 }
Beispiel #4
0
 public function get_act_by_ids($ids)
 {
     $act_tab = new ActivityTable();
     return $act_tab->get_act_by_ids($ids);
 }