public function insert($post_id, $channel_id) { parent::insert($channel_id, array('id' => $post_id), false); $this->truncate($channel_id, 100); parent::insert(0, array('id' => $post_id), false); $this->truncate(0, 100); $users = channel_user_peer::instance()->get_list($channel_id); foreach ($users as $data) { $user_id = $data['id']; user_post_peer::instance()->insert($user_id, $post_id); } }
public function delete($channel_id, $user_id) { parent::delete($channel_id, array('id' => $user_id)); }
public function get_list($user_id) { return parent::get_list($user_id); }
public function insert($user_id, $post_id) { parent::insert($user_id, array('id' => $post_id), false); $this->truncate($user_id, 100); }