Exemple #1
0
 public function get_users_who_i_am_following_page()
 {
     // Get the application object.
     $app = JFactory::getApplication();
     $user_id = JRequest::getInt('user_id');
     $user_id = $user_id ? $user_id : JFactory::getUser()->get('id');
     $limit = JRequest::getInt('limit');
     $offset = JRequest::getInt('offset');
     $users = Ideary::getUsersWhoIAmFollowing($user_id, $offset, $limit);
     $usersHtml = Ideary::generateUserListContent($users);
     echo json_encode(array('usersHtml' => $usersHtml));
     $app->close();
 }