public function getWallData($user_id) { $query = "select * from (select * from user_info t1 where user_id in ( select friend_id as user_id from friend_info where user_id=" . $user_id . " and friend_status='confirmed'))t2 natural join post_info order by post_time desc"; $records = $this->db->query($query); return Wall_data::instantiate($records); }
public function getWallData() { $user_id = $this->session->userdata('user_id'); return Wall_data::getWallData($this->session->userdata('user_id')); }