Ejemplo n.º 1
0
 public function get_users_who_applauded_text_page()
 {
     // Get the application object.
     $app = JFactory::getApplication();
     $text_id = JRequest::getInt('text_id');
     $limit = JRequest::getInt('limit');
     $offset = JRequest::getInt('offset');
     $users = Ideary::getUsersWhoApplaudedText($text_id, $offset, $limit);
     $usersHtml = Ideary::generateUserListContent($users);
     echo json_encode(array('usersHtml' => $usersHtml));
     $app->close();
 }