Guest User

Untitled

a guest
Jun 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. * other free or open source software licenses.
  2. * See COPYRIGHT.php for copyright notices and details.
  3. */
  4.  
  5. // no direct access
  6. defined('_JEXEC') or die('Restricted access');
  7.  
  8. require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');
  9.  
  10. class modLatestNewsHelper
  11. {
  12. function getList(&$params, $limit)
  13. {
  14. global $mainframe;
  15.  
  16. $db =& JFactory::getDBO();
  17. $user =& JFactory::getUser();
  18. $userId = (int) $user->get('id');
  19.  
  20. if($limit){
  21. $count = $limit
  22. }else{
  23. $count = (int) $params->get('count', 5);
  24. }
  25. $catid = trim( $params->get('catid') );
  26. $secid = trim( $params->get('secid') );
  27. $show_front = $params->get('show_front', 1);
  28. $aid = $user->get('aid', 0);
Add Comment
Please, Sign In to add comment